Delta DVP-ES2 — 2.16 Applications of Special M Relays and D Registers

DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming Example 3: Modifying COM3 communication format 1. Add the below instructions on top of the program to modify the communication format of COM3. When PLC switches from STOP to RUN, the program will detect whether M1136 is ON in the first scan. If M1136 is ON, the program will modify the communication settings of COM3 according to the value set in D1109 2. Modify COM3 communication format to ASCII mode, 9600bps, 7 data bits, even parity, 1 stop bits (9600, 7, E, 1). M1002 Example 4: RTU mode setting of COM1 、 COM2 、 COM3 1. COM1, COM2 and COM3 support ASCII/RTU mode. COM1 is set by M1139, COM2 is set by M1143 and COM3 is set by M1320.

Set the flags ON to enable RTU mode or OFF to enable ASCII mode. 2. Modify COM1/COM2/COM3 communication format to RTU mode, 9600bps, 8 data bits, even parity, 1 stop bits (9600, 8, E, 1). COM1: M1002 COM2: M1002 COM3: M1002 Note: 1. The modified communication format will not be changed when PLC state turns from RUN to STOP. 2-52 M1 MOV H86 D1120 SET M1120 MOV H86 D1109 SET M1136 MOV H87 D1036 SET M1138 SET M1139 MOV H87 D1120 SET M1120 SET M1143 MOV H87 D1109 SET M1136 SET M1320