SMC Networks 1560 Host Issued Read Commands Mstr Type, Enable 40500 Active, 40510, 00010

Page 20

Chapter 4 — Programming Considerations

 

 

 

 

Please note that not all A-B Scanport devices

 

 

 

 

 

 

 

 

 

 

 

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 Allen-Bradley device to use Datalink output words. The MSTR 6 instruction (Read Global Data), when programmed in a Host PLC, will retrieve the Global Data from the 1560-MBP and place it in the Host PLC register space beginning at address 40510.

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 1560-MBP, the MSTR Type 2 Read Command can be used. The MSTR Type 2 Read command has access to all available parameter values (40101 to 40xxx), in addition to the Control and Status registers (40001 to 40100).

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 1560-MBP using the MSTR Type 2 command.

20

Image 20
Contents 1560 Table of Contents Please Read This Notice Quick Start Guide Step-by-StepRevisions Product Specifications Modbus Plus SpecificationsGeneral Specifications Configuration via dip switches Slave Address Host Address24 VDC Operating Temp To 50 C Storage Temp 40 to 85 C Modbus Plus Communications Supported Mstr Programming CommandsModbus Plus Port Functionality MBP Modbus Address Space Modbus Register MapMstr Type 5 Write Global Data Dip Switch Configuration Hardware Setup1560-MBP Card Setup Connecting Power to the 1560-MBP Card Switch SW Function Description Details Fault on LossModbus PlusSwitch SW 2 cont’d Contents Writing to the 1560-MBP Global Data Enabled Mstr Type Programming Considerations1560-MBP Global Data Enable 40400 Active Abort Error 40410Modicon Programming Example Mstr SuccessHost Issued Write Commands Mstr Type Modicon Programming Example Mstr Type Reading from the 1560-MBPGlobal Data Mstr Type Host Issued Read Commands Mstr Type Enable 40500 Active40510 0001000020 4005040060 MBP Status Registers 40021 to Modbus Name Values Description AddressBatch At this time LED Locations TroubleshootingLED Troubleshooting Table SCANport Mbpstat Diagnostics Cable Diagram TxRxD+Technical Support Technical Support ContactsMBP Modbus Appendix aMBP Modbus Register Map Appendix B Device Specific HintsDrive Status Word Bit Function Description Setting up the Adaptor I/O DataLogic Control Word Bit Function Description Hardware Configuration Appendix CSingle Drive Peer Cop Application Example OverviewSwitch Position Description Configuration Extension BlocksPLC REF Drive Status PLC Ref PLC Name Description Ladder Logic ProgrammingRefOffset Description Special Precautions and hints TimingAddressing HintsAppendix D Mounting and SCANport Cabling InstructionsMounting Instructions 70mmCable Requirements Appendix E SCANport Datalink OperationGeneral Warranty Policy Repair and WarrantyService and Repair Hardware Product Warranty Details Limitation of LiabilityContents