Example plc program operation – Comtrol IO-Link Master EIP-4 User Manual

Page 90

Advertising
background image

90 -

Chapter 6. ControlLogix Family - Example PLC Programs

IO-Link Master EtherNet/IP Reference Manual: 2000589 Rev. A

Example PLC Program Operation

6.5. Example PLC Program Operation

The example PLC Program has been designed to operate with the default IO-Link Master settings. It
provides only Input Process data, but can be modified to also transmit PDO data to the IO-Link Master. The
PLC program performs the following tasks:

1.

The MainProgram calls each of the four ProcessIoLinkPortN subroutines once every 100 ms. The frequency
of these calls can be adjusted by changing the CycleTimer Preset value on rung 0.

2.

Each ProcessIoLinkPortN subroutine is designed to handle all status and
communication between the EtherNet/IP controller and one port on the
IO-Link Master.

a.

Rung 0:

This rung monitors the interface to the IO-Link. It sets the flags that control a port initialization or
shutdown.

b.

Rung 1:

• Using the parameters received in the PortInfo tag, automatically indexes into the input data block.

• Copies the PDI data block into the PrtN_RxPdiData tag.

• Monitors the IO-Link port status.

Advertising