Ethernet Communication Module DVPEN01-SL
= D0 K2
M2
TOP | K100 | K125 | H0 | K1 |
TOP | K100 | K119 | K6 | K1 |
TOP | K100 | K116 | K0 | K1 |
TOP | K100 | K115 | K1 | K1 |
INC | D0 |
|
|
|
MOV | K0 | D0 |
|
|
SET | M2 |
|
|
|
RST | M1 |
|
|
|
FROM K100 K116 D14 K1
= D14 K2 |
|
| RST | M2 |
|
| |||
= D14 K3 |
|
| RST | M2 |
|
| |||
|
| |||
|
|
| END |
|
|
|
|
Explanations:
•The data exchange will be executed every one second.
•Write the IP address of PLC_A into CR#117 and CR#118. The first two IP codes (192.168 = H’C0A8) should be written into CR#118, and the last two IP codes (0.4 = H’0004) into CR#117.
•Set CR#111 as “1” to enable the
•Write Modbus instruction into CR#120 ~ CR#125. CR#120 is the Modbus address.
•Write the length of the instruction into CR#119.
•Write “1” into CR#115 to start the execution of Modbus TCP instruction.
•CR#116 = 2 refers to successful execution. CR#116 = 3 refers to failed execution.
•If the execution is successful, Y0 on PLC_A will go between On and Off every one second.
6.14RTU Mapping
Application
Network requirement
Using RTU mapping to read/write the remote digital I/O and analog I/O registers.
(1)Adopt static IP.
(2)IP of
(3)IP of
(4)Use DCISoft for
(5)Set up the mapping start address and number of data for RX, RY, RCR (read) and RCR (write) at
(6)Enable the mapping function in
54 |