Ethernet Communication Module DVPEN01-SL
M1000 |
|
|
|
|
|
|
|
|
|
| TRD | D100 |
|
|
|
M1013 | M2 | M1 | SET | M1 |
|
|
|
|
|
|
|
|
| ||
M1 |
|
|
| K100 | K28 |
|
|
|
|
| TOP | K1 | K1 | ||
|
|
| TOP | K100 | K29 | D100 | K7 |
|
|
| TOP | K100 | K14 | K0 | K1 |
|
|
| TOP | K100 | K13 | K1 | K1 |
|
|
| SET | M2 |
|
|
|
|
|
| RST | M1 |
|
|
|
M2 |
|
|
|
|
|
|
|
|
|
| FROM | K100 | K14 | D14 | K1 |
| = D14 K2 | RST | M2 |
|
|
| |
| = D14 K3 | RST | M2 |
|
|
| |
|
|
| END |
|
|
|
|
Explanations: |
|
|
|
|
|
|
• The data exchange will be executed every one second. |
| |||
• Write the communication address of the destination PLC in CR#28, and | ||||
automatically detect by the previous setting that No. 1 IP is “192.168.0.4". | ||||
• Write the data in RTC into CR#29 ~ CR#35. |
|
|
| |
• Write “1” into CR#13 to start the data exchange. |
|
| ||
• CR#14 = 2 refers to successful exchange. CR#14 = 3 refers to failed exchange. | ||||
5. Compile the ladder diagram for PLC_A and download it to PLC_A. | ||||
M1013 |
|
|
|
|
FROM | K100 | K49 | D0 | K7 |
END |
|
|
|
|
Explanations: |
|
|
|
|
• The received data are stored in CR#49 ~ CR#55. |
|
| ||
• The data received every one second are written into D0 ~ D6. |
|
47 |