Plc-5 example, Plc-5 example -7 – Rockwell Automation 22-COMM-D DeviceNet Adapter User Manual

Page 51

Advertising
background image

Using I/O Messaging

5-7

Figure 5.4 Control File for Block Transfers

PLC-5 Example

EN ST DN ER CO EW NR TO RW RLEN DLEN FILE

ELEM R

G

S

BT20:0 0

0

0

0

0

0

0

0

0

62

0

9

0

00

0

0

BT20:1 0

0

0

0

0

0

0

0

0

62

0

10

0

00

0

0

Figure 5.5 Example PLC-5 Ladder Logic Program

PLC-5 example program with a PowerFlex 40 at DeviceNet node address 1.

The DeviceNet scanner gathers the drive status data via the network. The BTR in this rung

then moves the drive status data from the scanner to the N9: data file in the PLC, where:

N9:0 = Scanner Status word

N9:1 = PowerFlex 40 (node 1) Logic Status

N9:2 = PowerFlex 40 (node 1) Feedback

Note that the Feedback for the PowerFlex 40 is received in Hz and not in engineering units

like other PowerFlex drives. For example, "300" equates to 30.0 Hz (the decimal point is

always implied).

0000

BT20:0

EN

EN

DN

ER

BTR

Block Transfer Read

Module Type 1771-SDN DeviceNet Scanner Module

Rack

000

Group

0

Module

0

Control Block

BT20:0

Data File

N9:0

Length

62

Continuous

No

Setup Screen

BTR

This rung enables the DeviceNet scanner.

0001

N10:0

0

1771-SDN

Scanner

Enable bit

Advertising