SMC Networks 1560 user manual Special Precautions and hints, Timing

Page 37

Appendix C — Peer Cop Example

This allows a coil to control a specific function in the drive. You could use bit manipulation instructions operating on word 40100 (such as MBIT), but it is far simpler to just assign coils to specific functions, and then move these coils into the Control Word. These coils are then moved into word 40100 using the simple instruction shown below:

enable -

 

- active

00001

 

 

abort -

 

- error

400110

 

 

 

 

- success

 

BKLM

 

00001

 

 

 

 

 

 

 

Now the user may control specific functions by turning on and off these coils. For example, to start the drive, the user would turn on coil 15, which is block moved to word 40100, setting Modicon bit 15 on. Register 40100 is then transmitted over Modbus Plus via the Peer Cop to the 1560-MBP, which then turns on bit 1 in the drive control word, starting the drive. Inputs 100001-100016 may then be examined to observe feedback, such as run acknowledgment.

Note that by using this approach, the complexity is minimized by setting up a control structure (peercop) up front once, which may now be easily copied and duplicated. Also, additional drives may be very easily controlled by simply adding a few entries to the peercop tables and a block move to transfer bit states to the drive.

Special Precautions and hints

Timing

Because all parameters to and from the drive must pass through the SCANport, be careful about adding additional devices, such as the HIM module, when critical drive communication timing is required. While it does not affect the transfer of parameters, it does affect the throughput, which may cause unexpected problems in speed critical applications. Other devices placed on the network will affect the speed of the Modbus Plus network. Programming panels and operator interfaces can add significant network load. Nodes going online or off-line momentarily disrupt the token passing pattern. For critical drive control, a separate dedicated Modbus Plus network is recommended.

37

Image 37
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 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 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 Global Data Mstr Type Reading from the 1560-MBPModicon Programming Example Mstr Type Enable 40500 Active Host Issued Read Commands Mstr Type40510 0001040060 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 Appendix C Hardware ConfigurationSingle Drive Peer Cop Application Example OverviewConfiguration Extension Blocks Switch Position DescriptionPLC REF Drive Status RefOffset Description Ladder Logic ProgrammingPLC Ref PLC Name Description Timing Special Precautions and hintsHints AddressingMounting and SCANport Cabling Instructions Appendix DMounting Instructions 70mmCable Requirements SCANport Datalink Operation Appendix EService and Repair Repair and WarrantyGeneral Warranty Policy Limitation of Liability Hardware Product Warranty DetailsContents