Chapter 4 — Programming Considerations
Modicon Programming Example - MSTR Type 1
enable - |
| - active | Contents of registers in control block | |||
40001 | 40001 | = 1 Write instruction | ||||
|
| |||||
abort - |
| - error | 40002 | = 0 | Error code | |
| ||||||
40010 | 40003 | = 1 | Length of the write | |||
|
| |||||
|
|
| 40004 = 119 slave register to Write (40119) | |||
|
| - success | 40005 | = 37 MBP Node address to write to | ||
| MSTR | |||||
| 40006 = 1 | Slave Input Path for routing | ||||
| 00002 |
| 40010 | = Source of the data to the | ||
|
|
| ||||
|
|
| ||||
|
|
|
| device attached to the | ||
|
|
|
|
|
|
This instruction would write one value into parameter 19 of the device attached to
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.
4.2Reading from the 1560-MBP
Reading data from the
4.2.1 Global Data - MSTR Type 6
The
0
1
2
3
4
5
6
7
8
9
Status Word
Feedback
Adaptor
Adaptor
Adaptor
Adaptor
Adaptor
Adaptor
Adaptor
Adaptor
Global Out Data
(1)
(2)
(3)
Optional Global Data
(1)Datalink A only - 4 words
(2)Datalink A & B only - 6 words
(3)Datalink A, B, C & D - 10 words
Global Data from each
19