beautypg.com

Rockwell Automation 2100-GK61 DeviceNet to SCANport User Manual

Page 8

background image

Chapter 5

Ladder Logic Programming -
Including Reading Inputs

Chapter Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1
Required Equipment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1
What is RSLogix? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
What are Ladder Logic Programs?. . . . . . . . . . . . . . . . . . . 5-3
Example Ladder Logic Programs . . . . . . . . . . . . . . . . . . . . 5-4

PLC Ladder Logic Example . . . . . . . . . . . . . . . . . . . . . . . 5-7
SLC Ladder Logic Program Example . . . . . . . . . . . . . . 5-11

ControlLogix Programming Example . . . . . . . . . . . . . . . . 5-15

Chapter 6

Using DeviceNet Explicit
Messaging

Chapter Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1
Required Equipment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1
Explicit Message Program Control for PLC-5 . . . . . . . . . . . 6-1
Message Translations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3
Messaging for the 1771-SDN Scanner . . . . . . . . . . . . . . . . . 6-3
Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-6
PLC-5 Ladder Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-6

PLC Messaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-6

Explicit Messaging Programming Example . . . . . . . . . . . . 6-10
Example Ladder Program Explanation . . . . . . . . . . . . . . . 6-10
Explicit Message Program Control for SLC . . . . . . . . . . . . 6-15
Message Translations. . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-16
Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-16
Messaging for the 1747-SDN Scanner . . . . . . . . . . . . . . . 6-16
SLC Ladder Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-19

SLC Messaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-19

Using Messages to Control SCANport Products . . . . . . . . 6-21
Writing to Register Objects . . . . . . . . . . . . . . . . . . . . . . . . . 6-22
Reading Values from DeviceNet Using Explicit Messaging

and ControlLogix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-23
Configure the I/0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-23

Chapter 7

Troubleshooting

Chapter Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1
LEDs on the 2100-GK61 Module . . . . . . . . . . . . . . . . . . . . . 7-1
DeviceNet Network Status LED States . . . . . . . . . . . . . . . . 7-2
Module Status LED States . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2
SCANport Status LED States . . . . . . . . . . . . . . . . . . . . . . . 7-3
Input Status LED States . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-4

Product Specifications

Appendix Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
2100-GK61 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . .A-1

DeviceNet to SCANport Communi-
cation Module with Digital Inputs
Parameters

Appendix Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-1
Setting the Node Address. . . . . . . . . . . . . . . . . . . . . . . . . . B-1
Setting the Data Rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B-2
Using Datalinks and Command I/O . . . . . . . . . . . . . . . . . . .B-3
Using Master-Slave Communications. . . . . . . . . . . . . . . . . .B-5

Polled Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B-5
COS (Change of State) Allocation. . . . . . . . . . . . . . . . . . B-7
Cyclic Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .B-8
Polled and COS Allocation . . . . . . . . . . . . . . . . . . . . . . B-10
Polled and Cyclic Allocation . . . . . . . . . . . . . . . . . . . . . . B-11

Using Peer-to-Peer Communications . . . . . . . . . . . . . . . .B-12

Enabling the Adapter to Receive Peer I/O . . . . . . . . . . .B-13
Enabling the Adapter to Transmit Peer I/O . . . . . . . . . .B-15

Using Fault Configurable Inputs . . . . . . . . . . . . . . . . . . . .B-16