Function library lenzeiosystem.lib, Application examples – Lenze DDS Function library IOSystem User Manual

Page 13

Advertising
background image

Function library LenzeIOSystem.lib

Application examples

3.1

Modular decentralised I/O system

3−3

L

LenzeIOSystem.lib EN 1.7

Programming the process data exchange between PLC and I/O system

The CFC editor is used to generate a program named Process.

·

Declare an instance of function block L_IOData15 in Process.

·

Generate two inputs in the CFC editor, assign names g_bParDone15 and g_ParData15 and
attach these to the corresponding inputs of function block L_IOData15 as shown in the figure.

Several conversion blocks are available to evaluate input data and to transfer output data.

Function block L_IOData15 transmits output data to the I/O system and receives input data from
there.

At input DataFrom_IOParPDO15, CAN communication relationships between PLC and I/O system
are transmitted from parameterisation block L_IOParPDO15 to process data block L_IOData15.

Process data transmission is started after parameterisation via a High signal at input
bEnablePDOTransfer.

Data conversion for evaluating individual channels

The program Process can be extended as follows:

·

Use the menu command Extras

ÞOrder to indicate the sequence.

·

Drag the individual function blocks to their positions in order to make the program sequence
comprehensible.

Advertising