Example ladder logic program information, Functions of the example programs – Rockwell Automation 20-COMM-ER 20-COMM-ER Dual-Port EtherNet/IP Communication Adapter User Manual User Manual

Page 87

Advertising
background image

Rockwell Automation Publication 20COMM-UM015B-EN-P - July 2013

87

Using the I/O Chapter 5

32-bit data is stored in binary as follows:

In this example, the parameter 10 - [Elapsed Run Time] value of 6553.9 Hrs is
read as ‘6553.9’ in Datalink A1 Out (Parameter 310) and Datalink A2 Out
(Parameter 311).

Conversion Example:

Parameter 010 - [Elapsed Run Time] = 6553.9 Hrs
MSW = 0001

hex

= 0001

binary

= 2

16

= 65536

LSW = 0003

hex

=3

Engineering Value = 65536 + 3 = 65539
Parameter 10 Displayed Value = 6553.9 Hrs

Regardless of the Datalink combination, Datalink x1 Out will always contain the
LSW and Datalink x2 Out will always contain the MSW. In the following
example, the PowerFlex 70 drive parameter 242 - [Power Up Marker] contains a
value of 88.4541 hours.

Conversion Example:

Parameter 242 - [Power Up Marker] = 88.4541 hours
MSW = 000D

hex

= 1101

binary

= 2

19

+ 2

18

+ 2

16

= 851968

LSW = 7F3D

hex

= 32573

Engineering Value = 851968 + 32573 = 884541
Parameter 242 Displayed Value = 88.4541 Hrs

Example Ladder Logic

Program Information

The example ladder logic programs in the sections of this chapter are intended for
and operate PowerFlex 7-Class drives and SMC Flex controllers.

Functions of the Example Programs

The example programs enable you to do the following:

• Receive Logic Status information from the drive.
• Send a Logic Command to control the drive (for example, start, stop).
• Send a Reference to the drive and receive Feedback from the drive.
• Send/receive Datalink data to/from the drive.

MSW

2

31

through 2

16

LSW

2

15

through 2

0

Datalink

Word

Parameter

Data (Hex)

A1 Out

LSW

10

0003

A2 Out

MSW

10

0001

Datalink

Word

Parameter

Data (Hex)

A2 Out

MSW

242

000D

B1 Out

LSW

242

7F3D

Advertising