
Chapter 4 — Programming Considerations
Modicon Programming Example - MSTR Type 2
enable - |
| - active | Contents of registers in the control block | |||
| ||||||
40050 | 40050 | = 2 | Read Instruction | |||
|
| |||||
abort - |
| - error | 40051 | = 0 | Error Code | |
| ||||||
40060 | 40052 = 13 Length of the read | |||||
|
| 40053 | = 21 slave register to read (40021) | |||
|
| - success | 40054 | = 37 Node address to retrieve data from | ||
|
| |||||
| MSTR | 40055 = 1 | Slave Input Path for routing | |||
|
| |||||
| 00020 |
| ||||
|
| MBP |
|
| ||
|
|
|
|
| ||
|
|
|
|
|
|
The MSTR instruction shown above reads the status registers (40021- 40033) from the
Note that the Slave Input Path value must be entered in order for the command to execute successfully. Valid values are from 1 to 8. Any other values will cause the command to fail
21