Chapter 4 — Programming Considerations
|
|
|
| Please note that not all |
|
| ||||
|
|
|
|
|
| |||||
|
|
| support Datalinks. In particular, the SMC Dialogue |
|
| |||||
|
|
|
| Plus does not. To operate with the SMC Dialogue |
|
| ||||
|
|
|
| Plus do not enable | Datalink Messaging. |
|
| |||
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
| ||
Modicon Programming Example - MSTR Type 6 | ||||||||||
|
|
|
|
|
|
|
| |||
| enable - |
| 40500 | - active |
| Contents of registers in control block | ||||
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
| |
| abort - |
|
| - error |
| 40500 | = 6 global read data instruction | |||
|
|
|
| |||||||
|
| 40510 |
| 40501 | = 0 Error code | |||||
|
|
|
|
|
| 40502 | = 10 length of the global data | |||
|
|
|
|
| - success |
| 40503 | = 0 number of words available | ||
|
|
|
|
|
| |||||
|
|
|
| MSTR | 40504 | = 37 slave address to retrieve data from | ||||
|
|
|
| 00010 |
|
| 40510 | = Destination address for global data | ||
|
|
|
|
|
|
| from slave 37 | |||
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
In the example we configured the
4.2.2 Host Issued Read Commands - MSTR Type 2
If the PLC Programmer does not want to use Global Data or if there is a desire to read more data out of the
40001
40011
40021
40101
4xxxx
Write Data – Control, Reference & Data Link IN
Read Data – Feedback & Data Link OUT
Miscellaneous data space
Used for MBP status data (See Section 4.3)
Parameter Register Space
This register space contains the parameter table from the SCANport device. This paramaters are stored in their numerical order (example):
40101 = Parameter #1
40102 = Parameter #2
The full length of this space is a function of the SCANport device connected. Max size is 2000 parameters.
MSTR Type 2 Accessible Data Registers: The memory map for the registers which a PLC programmer can access from the
20