Delta DVP-ES2 User Manual Page 96

  • Download
  • Add to my manuals
  • Print
  • Page
    / 702
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 95
DVP-ES2/EX2/SS2/SA2/SX2/SE 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).
MOV
H86 D1109
SET M1136
M1002
Example 4: RTU mode setting of COM1COM2COM3
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:
MOV
D1036
SET M1138
M1002
SET M1139
H87
COM2:
MOV
H87 D1120
SET M1120
M1002
SET M1143
COM3:
MOV
H87 D1109
SET M1136
M1002
SET M1320
2-64
Page view 95
1 2 ... 91 92 93 94 95 96 97 98 99 100 101 ... 701 702

Comments to this Manuals

No comments