Chapter 4 — Programming Considerations
4 Programming Considerations
Transferring data to/from the
MSTR Type 1 - Write data
MSTR Type 2 - Read data
MSTR Type 5 - Write Global Data
MSTR Type 6 - Get Global Data
The following sections will detail the programming requirements for each of these commands, as well as discuss speed trade- offs between the different commands. An application note detailing the configuration of a Peer Cop solution is also available in Appendix C.
4.1Writing to the 1560-MBP
4.1.1 Global Data Enabled - MSTR Type 5
If Global Data Control Mode is enabled, the
The location of the Control and Reference values in the Global Data is determined by the
If Modbus Plus Address < 17
Global Table Index = ( Modbus Plus Address - 1 ) * 2 else if Modbus Plus Address < 33
Global Table Index = ( Modbus Plus Address - 17 ) * 2 else if Modbus Plus Address < 49
Global Table Index = ( Modbus Plus Address - 33 ) * 2 else if Modbus Plus Address < 65
Global Table Index = ( Modbus Plus Address - 49 ) * 2
Note
The Global Data Table has a limit of 32 words, therefore there can only be 16
15