SMC Networks 1560 Modicon Programming Example Mstr, Enable 40400 Active, Abort Error 40410, 00032

Page 17

Chapter 4 — Programming Considerations

 

 

 

1560-MBP

 

Global Data

 

 

 

 

 

Modbus Plus

 

Table

 

 

Description

 

 

 

 

Address

 

Index

 

 

 

 

 

13,29,45,61

 

24

 

 

 

Control Word

 

 

 

 

 

 

 

25

 

 

 

Reference Word

 

 

 

14,30,46,62

 

26

 

 

 

Control Word

 

 

 

 

 

 

 

27

 

 

 

Reference Word

 

 

 

15,31,47,63

 

28

 

 

 

Control Word

 

 

 

 

 

 

 

29

 

 

 

Reference Word

 

 

 

16,32,48,64

 

30

 

 

 

Control Word

 

 

 

 

 

 

 

31

 

 

 

Reference Word

 

Modicon Programming Example - MSTR 5

 

 

 

 

 

 

 

enable -

 

40400

 

- active

 

Contents of registers in control block

 

 

 

 

 

 

 

40400

= 5 Global write data instruction

abort -

 

 

 

- error

 

 

 

 

 

 

40410

 

 

40401

= 0 Error code

 

 

 

 

 

 

 

40402

= 32 Global Data block length

 

 

 

 

 

 

 

 

 

 

 

 

 

- success

 

 

 

(Max 32 words)

 

 

 

 

 

 

 

 

 

 

 

MSTR

 

 

40403

= 0 N/A

 

 

 

00032

 

 

 

 

40404

= 0 N/A

 

 

 

 

 

 

 

40410

= Source of the Global Out Data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

This instruction “publishes” Global Data on the Modbus Plus network from the Host PLC. Up to 32 words can be transmitted from the Host, allowing up to 16 1560-MBP units to be controlled. When the 1560-MBP reads the Global Data it first examines the source node address to assure it matches the dip switch configured Host Node Address, and then retrieves the two words that relate to its node from the packet.

Controller

Node

Description

Address

40410

33

Control Word

 

40411

Reference Word

 

40412

34

Control Word

 

40413

Reference Word

 

 

40420

37

Control Word

 

40421

Reference Word

 

 

40440

48

Control Word

40441

Reference Word

 

17

Image 17
Contents 1560 Table of Contents Please Read This Notice Step-by-Step Quick Start GuideRevisions Modbus Plus Specifications Product 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 Loss Function Description Details Fault onModbus PlusSwitch SW 2 cont’d Contents Programming Considerations Writing to the 1560-MBP Global Data Enabled Mstr Type1560-MBP Global Data Abort Error 40410 Enable 40400 ActiveModicon Programming Example Mstr SuccessHost Issued Write Commands Mstr Type Modicon Programming Example Mstr Type Reading from the 1560-MBPGlobal Data Mstr Type Enable 40500 Active Host Issued Read Commands Mstr Type40510 0001000020 4005040060 Modbus Name Values Description Address MBP Status Registers 40021 toBatch At this time LED Locations TroubleshootingLED Troubleshooting Table SCANport Mbpstat Diagnostics TxRxD+ Cable DiagramTechnical Support Contacts Technical SupportMBP Modbus Appendix aMBP Modbus Register Map Device Specific Hints Appendix BDrive Status Word Bit Function Description Setting up the Adaptor I/O DataLogic Control Word Bit Function Description Appendix C Hardware ConfigurationSingle Drive Peer Cop Application Example OverviewConfiguration Extension Blocks Switch Position DescriptionPLC REF Drive Status PLC Ref PLC Name Description Ladder Logic ProgrammingRefOffset Description Timing Special Precautions and hintsHints AddressingMounting and SCANport Cabling Instructions Appendix DMounting Instructions 70mmCable Requirements SCANport Datalink Operation Appendix EGeneral Warranty Policy Repair and WarrantyService and Repair Limitation of Liability Hardware Product Warranty DetailsContents