1 main routine – Rockwell Automation MD65 EtherNet/IP Communication Module User Manual

Page 74

Advertising
background image

8-10

EtherNet/IP Communications Module

8.6.1 Main Routine

The Main Routine reads the network Input Image from the scanner,
calls the various drive control subroutines, and writes the network
Output Image to the scanner. See figure 8.6.

Figure 8.6 – Main Routine

ControlLogix to

The ControlLogix system consists of a 1756-ENBT in slot 5 communicating over Ethernet with a MD65 drive/ MDCOMM-

ENET EtherNet/IP module.

The I/O image is as follows:

INPUT (4 INT words) OUTPUT (2 INT words)

MD65-Demo:I.Data[0] = ENBT Overhead MD65-Demo:I.Data[0] = MD65 Logic Command

MD65-Demo:I.Data[1] = ENBT Overhead MD65-Demo:I.Data[1] = MD65 Reference

MD65-Demo:I.Data[2] = MD65 Logic Status

MD65-Demo:I.Data[3] = MD65 Feedback

Logic Status information rungs are provided for display purposes only. The MD65_Demo: I.Data[2].x.bits could be used

directly elsewhere in the ladder program.

0

MD65 Demo

Logic Status

READY

MD65_Demo:I.Data[2].0

MD65

READY

Drive_Ready

ControlLogix to MD65 on EtherNet/IP Demo

The ControlLogix system consists of a 1756-ENBT in slot 5 communicating over Ethernet with

The I/O image is as follows:

INPUT (4 INT words) OUTPUT (2 INT words)

Logic Status information rungs are provided for display purposes only. T

directly elsewhere in the ladder program.

1

MD65 Demo

Logic Status

ACTIVE

MD65_Demo:I.Data[2].1

MD65

ACTIVE

Drive_Active

2

MD65 Demo

Logic Status

ACTUAL

DIRECTION

MD65_Demo:I.Data[2].2

MD65

FORWARD

Drive_Forward

3

/

MD65 Demo

Logic Status

ACTUAL

DIRECTION

MD65_Demo:I.Data[2].2

MD65

REVERSE

Drive_Reverse

4

MD65 Demo

Logic Status

FAULT

MD65_Demo:I.Data[2].7

MD65

FAULT

Drive_Fault

5

MD65 Demo

Logic Status

AT SPEED

MD65_Demo:I.Data[2].8

MD65

AT SPEED

Drive_At_Speed

Advertising