SMC Networks user manual Reading from the 1560-MBP, Global Data Mstr Type

Page 19

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 1560-MBP

 

 

 

 

 

 

This instruction would write one value into parameter 19 of the device attached to 1560-MBP node address 37. In the 1560-MBP register map this would be register 40119.

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 1560-MBP is independent of the Global Data Control mode selection. There are two methods for obtaining data from the 1560-MBP units as outlined in the following section.

4.2.1 Global Data - MSTR Type 6

The 1560-MBP publishes Global Out Data which can be accepted by any other node on the Modbus Plus port. The structure of the Global Data sent out in is as follows:

0

1

2

3

4

5

6

7

8

9

Status Word

Feedback

Adaptor I/O-A1

Adaptor I/O-A2

Adaptor I/O-B1

Adaptor I/O-B2

Adaptor I/O-C1

Adaptor I/O-C2

Adaptor I/O-D1

Adaptor I/O-D2

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 1560-MBP unit: Note the minimum length of 2 words can be increased up to 10 words by selectively enabling Datalinks using the dip switches

19

Image 19
Contents 1560 Table of Contents Please Read This Notice Step-by-Step Quick Start GuideRevisions Configuration via dip switches Slave Address Host Address Product SpecificationsModbus Plus Specifications General Specifications24 VDC Operating Temp To 50 C Storage Temp 40 to 85 C Modbus Plus Port Functionality Supported Mstr Programming CommandsModbus Plus Communications Mstr Type 5 Write Global Data Modbus Register MapMBP Modbus Address Space 1560-MBP Card Setup Connecting Power to the 1560-MBP Card Hardware SetupDip Switch Configuration Switch SW Plus Function Description Details Fault onLoss ModbusSwitch SW 2 cont’d Contents Programming Considerations Writing to the 1560-MBP Global Data Enabled Mstr Type1560-MBP Global Data Success Enable 40400 ActiveAbort Error 40410 Modicon Programming Example MstrHost Issued Write Commands Mstr Type Global Data Mstr Type Reading from the 1560-MBPModicon Programming Example Mstr Type 00010 Host Issued Read Commands Mstr TypeEnable 40500 Active 4051040060 4005000020 Modbus Name Values Description Address MBP Status Registers 40021 toBatch At this time LED Troubleshooting Table TroubleshootingLED Locations SCANport Mbpstat Diagnostics TxRxD+ Cable DiagramTechnical Support Contacts Technical SupportMBP Modbus Register Map Appendix aMBP Modbus Device Specific Hints Appendix BLogic Control Word Bit Function Description Setting up the Adaptor I/O DataDrive Status Word Bit Function Description Overview Hardware ConfigurationAppendix C Single Drive Peer Cop Application ExampleConfiguration Extension Blocks Switch Position DescriptionPLC REF Drive Status RefOffset Description Ladder Logic ProgrammingPLC Ref PLC Name Description Timing Special Precautions and hintsHints Addressing70mm Appendix DMounting and SCANport Cabling Instructions Mounting InstructionsCable Requirements SCANport Datalink Operation Appendix EService and Repair Repair and WarrantyGeneral Warranty Policy Limitation of Liability Hardware Product Warranty DetailsContents