2. Programming Concepts Can be used in master or slave mode. Supports ASCII/RTU communication format, baudrate (921kbps max), and modification on data length (data bits, parity bits, stop bits). D1109: COM3 (RS-485) communication protocol of master/slave PLC. (b8 - b15 are not used) Please refer to table below for setting. Example 1: Modifying COM1 communication format 1. Add the below instructions on top of the program to modify the communication format of COM1. When PLC switches from STOP to RUN, the program will detect whether M1138 is ON in the first scan. If M1138 is ON, the program will modify the communication settings of COM1 according to the value set in D1036 2.
Modify COM1 communication format to ASCII mode, 9600bps, 7 data bits, even parity, 1 stop bits (9600, 7, E, 1). M1002 Example 2: Modiying COM2 communication format 1. Add the below instructions on top of the program to modify the communication format of COM2. When PLC switches from STOP to RUN, the program will detect whether M1120 is ON in the first scan. If M1120 is ON, the program will modify the communication settings of COM2 according to the value set in D1120 2. Modify COM2 communication format to ASCII mode, 9600bps, 7 data bits, even parity, 1 stop bits (9600, 7, E, 1) 2-51 Content Data Length 0: 7 data bits, 1: 8 data bits (RTU supports 8 data bits only) b0 Parity bit 00: None 01:
Odd 11: Even b1 b2 b3 Stop bits 0: 1 bit, 1: 2bits b4 Baud rate 0001(H1): 110 0010(H2): 150 0011(H3): 300 0100(H4): 600 0101(H5): 1200 0110(H6): 2400 0111(H7): 4800 1000(H8): 9600 1001(H9): 19200 1010(HA): 38400 1011(HB): 57600 1100(HC): 115200 b5 b6 b7 500000 (COM2 / 1101(HD): COM3) 31250 (COM2 / 1110(HE): COM3) 921000 (COM2 / 1111(HF): COM3) b8 Select start bit 0: None 1: D1124 b9 Select the 1st end bit 0: None 1: D1125 b10 Select the 2nd end bit 0: None 1: D1126 b11~b15 Undefined MOV H86 D1036 SET M1138