DeviceNet Network Scanner DVPDNET-SL
1.PLC program:
M1000 |
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
| MOV | D6037 | K4M0 Send the content in D6037 to K4M0. | |
|
|
|
|
|
|
| ||||
|
|
|
|
|
| |||||
|
|
|
|
|
|
| MOV | D6038 | K4M20 Send the content in D6038 to K4M20. | |
|
|
|
|
|
| |||||
M8 | M9 |
|
| When X0 = On, start | ||||||
|
|
|
|
|
|
| MOV | H2 | D6288 | |
|
|
|
|
|
| |||||
M9 | M8 |
|
|
| ||||||
|
|
|
|
|
|
| MOV | H1 | D6288 When X1 = On, stop | |
|
|
|
|
|
| |||||
M20 |
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
| MOV | H0100 | D6287 | When |
|
|
|
|
|
| |||||
|
|
|
|
|
|
| ||||
M21 |
|
|
|
| MOV | H0000 | D6287 | When | ||
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
END
2.Program explanations:
The head instruction in the program, MOV, corresponds the content in D6037 to M0 ~ M15 and the content in D6038 to M20 ~ M35.
See the table below for the corresponding relation between DeviceNet slave and PLC devices.
| PLC device | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 |
| 5 | 4 | 3 | 2 | 1 | 0 |
| D6037 | X7 | X6 | X5 | X4 | X3 | X2 | X1 | X0 |
|
|
|
| N/A |
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
Input | D6038 |
|
| Status of |
|
|
| Status of LED on |
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
D6039 |
|
|
|
|
| Frequency of |
|
|
|
|
|
| ||||||
data |
|
|
|
|
|
|
|
|
|
|
| |||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
D6040 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| … |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| PLC device | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 |
| 5 | 4 | 3 | 2 | 1 | 0 |
| D6287 | Y7 | Y6 | Y5 | Y4 | Y3 | Y2 | Y1 | Y0 |
|
|
|
| N/A |
|
|
| |
Output | D6288 |
|
|
|
|
| Control word in |
|
|
|
|
| ||||||
D6289 |
|
|
|
|
| Frequency in |
|
|
|
|
|
| ||||||
data |
|
|
|
|
|
|
|
|
|
|
| |||||||
D6290 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| … |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
When X0 = On, b8 of D6037 = 1. b8 of D6037 corresponds to M8, and therefore M8 = On. That is,
when X1 = On, M9 will be On.
D6288 corresponds to the control word in
b0 of D6038 corresponds to M20, b1 to M21, and so on. When
1 and M20 will be On to execute [MOV H0100 D6287], which leads to Y0 = On. That is, when
19 |