How to modify the baud rate of Wecon PLC?
Last modified by Devin Chen on 2024/12/19 20:05
When using COM1, there are two types: round port and port.
- COM1 (round port 8 pins): Serial port parameters (baud rate, data bit, check bit, stop bit, etc.) are fixed and cannot be modified.
- COM1 (Port): The baud rate can be modified in serial port parameters (baud rate, data bit, check digit, stop bit, etc.), and other parameters can not be modified. Baud rate is set by system special address D8110.
The definition of D8110 is as follows
Bit | Name | Bit value of D8110 | |
0(OFF) | 1(ON) | ||
B0 | Data bit | 7 | N/A |
B2B1 | Parity | 11(EVEN) | |
B3 | Stop bit | 1 | N/A |
B7B6B5B4 | Baud rate (Bps) | 0111:4800 1000:9600 1001:19200 1010:38400 1011:57600 1100:115200 |
When using COM2, the baud rate of the PLC and other serial port parameters can be set by writing a value to the special address D8120 by the program.