The LenzeIOSystem.lib and LenzeIOSystemVxxxx.lib function libraries can be used for
the following Lenze PLC devices:
TypeAs of hardware versionAs of software version
Drive PLCEPL10200_xIVC2.x
Drive PLCEPL10200_xTVC2.x
9300 Servo PLCEVS93xx_xI2K2.x
9300 Servo PLCEVS93xx_xT2K2.x
ECSxAECSxAxxx1C7.0
Important note:
The software is supplied to the user as described in this document. Any risks resulting from its quality or use remain the responsibility
of the user. The user must provide all safety measures protecting against possible maloperation.
We do not take any liability for direct or indirect damage, e.g. profit loss, order loss or any loss regarding business.
ã 2006 Lenze Drive Systems GmbH
No part of this documentation may be copied or made available to third parties without the explicit written approval of Lenze Drive
Systems GmbH.
All information given in this documentation has been carefully selected and tested for compliance with the hardware and software
described. Nevertheless, discrepancies cannot be ruled out. We do not accept any responsibility or liability for any damage that may
occur. Required corrections will be included in updates of this documentation.
All product names mentioned in this documentation are trademarks of the corresponding owners.
This Manual contains information on the LenzeIOSystem.lib and LenzeIOSystemVxxxx function
libraries for the Drive PLC Developer Studio.
1.1.1Conventions used in this Manual
This Manual uses the following conventions to distinguish between different types of information:
Variable identifiers
are printed in italics in the explanatory text:
· "By means of bReset..."
Tip!
Information about the conventions used for variables of Lenze system blocks, function blocks and
functions can be obtained from the appendix of the DDS online documentation "Introduction into
IEC 61131−3 programming". The conventions ensure universal and uniform labelling and support
the readability of PLC programs.
Lenze functions/function blocks
can be identified by the name. They always begin with an "L_":
· "By means of the L_IOPar..."FB
Program listings
are itemised in the "Courier" font, the keywords being printed bold:
· "IF(ReturnValue < 0)THEN..."
L
LenzeIOSystem.lib EN 1.7
1−1
Function library LenzeIOSystem.lib
Preface and general information
1.1About this Manual
1.1.2Structure of the descriptions
The descriptions of the individual functions/function blocks as well as system blocks in this Manual
are structured in a standardised manner according to the following pattern:
FunctionFunction block (FB)/
Headline with function and identifier
Declaration of the function:
· Data type of the return value
· Function identifier
· List of the transfer parameters
Short description with the most important features
Graph showing the function
including all corresponding
variables
· Transfer parameters
· Return value
Table giving information on the
transfer parameters:
· Identifiers
· Data type
· Possible settings
· Information
Table giving information on the
return value:
· Data type of the return value
· Possible return values and their
meaning
Further information
(comments, tips, application examples, etc.)
system block (SB)
−
System block/function block chart
including all corresponding
variables
· Input variables
· Output variables
Table giving information about
input and output variables:
· Identifiers
· Data type
· Variable type
· Possible settings
· Information
−
1.1.3Pictographs used in this Manual
Pictohraphs usedSignal words
Warning of
material damage
More notesTip!
Stop!Warns of potential damage to material.
Note!
1.1.4Terminology used
TermIn this Manual used for
DDSDrive PLC Developer Studio
FBFunction block
GDCGlobal Drive Control (parameter setting program from Lenze)
Parameter codesCodes for setting the function of a function block
PLC· 9300 servo PLC
SBSystem block
· Drive PLC
· ECSxA "Application" axis module
Possible consequences if disregarded:
Damage of the controller/drive system or its environment.
Indicates a tip or note.
1−2
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Preface and general information
1.2Version identifiers of the function library
1.2Version identifiers of the function library
The version of the function library can be found under the global constant
C_w[Function library name]Version .
Version identifiers as of PLC software version 7.x:
· In the example, "01050000" stands for version "1.05".
Example
value
Version: 01050000
L
LenzeIOSystem.lib EN 1.7
1−3
Function library LenzeIOSystem.lib
Preface and general information
1−4
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Introduction
2.1Introduction
2Introduction
2.1Introduction
The user is offered suitable function blocks in function libraries to enable decentralised I/O system
support by Lenze PLC products.
These function blocks are integrated in an IEC 61131 program and assist in the parameterisation of
the I/O system as well as in process data processing. Furthermore, they provide digital and analog
I/O system input and output information.
LenzeI/OSystem.lib
This library provides all setting options. User configuration via user codes is not required.
2.2Design concept
The function libraries contain two types of function blocks.
· Parameter data blocks
· Process data blocks
Parameter data blocks
These function blocks allow the modification of index information in the decentralised I/O system and
the transmission of specified data. These data are transmitted only once to the I/O system during the
initialisation phase.
· Parameterising communication
– These blocks parameterise communication relationships
(Identifier assignment for PDO communication, transmission method, transmission period,
etc.) between PLC and I/O system.
– These settings are mandatory for data exchange.
· Parameterising modules and monitoring functions
– The function blocks are required for
individual parameterisation of analog modules,
individual parameterisation of counter modules,
communication monitoring
Process data blocks
These function blocks provide assistance for evaluating and further processing the current process
data information from the I/O system inputs in the PLC program.
Information and data can be transferred into the process via the output modules.
· Process data blocks to transmit and receive I/O data between PLC and I/O system.
· Process data blocks for I/O signal conversion.
L
LenzeIOSystem.lib EN 1.7
2−1
Function library LenzeIOSystem.lib
Introduction
2.3Minimum configuration
2.3Minimum configuration
A minimum configuration must be established to integrate the I/O system, consisting of one
parameter data block L_IOParPDO15 to parameterise communication relationships and one
process data block L_IOData15 to evaluate the input/output information.
The information of the parameter block is transmitted to the I/O system and the function block for
PLC I/O system process data exchange.
Data exchange between the output of the parameter block and the input of the process data block
is possible with the help of a global variable.
Note!
The function libraries for the decentralised I/O system are based on unassigned CAN objects, so that
the CAN driver must be initialised via block L_CANInit.
The block L_CANInit is located in the Lenze library LenzeCanDrv.lib.
wDrvNr
10
dwRelocCobld
0
L_CanInit
L_CanInit
CTRL
10 = System bus
0 = ID range 832..895 (Servo PLC only)
Note!
The identifier range is limited in the case of the 9300 Servo PLC.
Use of function blocks L_IOParPDO15 and L_IOParPDO610 requires adjustment of the
Cob IDs from PDO4 onwards.
2−2
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Application examples
3.1Modular decentralised I/O system
3Application examples
The examples were generated with DDS version 2.0. Examples concerning the I/O system are given
in the directory C:\Programme\Lenze\DDS_P_2_20\Projects\IOSystem\Samples
3.1Modular decentralised I/O system
The modular decentralised I/O system with eight digital inputs and outputs is integrated into a PLC
program with the help of LenzeIOSystem.lib.
During this process, the following steps must be carried out in the given order:
1. Initialise the CAN driver
2. Parameterise the communication conditions
3. Program the process data exchange between PLC and I/O system
4. Initialise the codes
Initialising the CAN driver
Communication between the PLC and the I/O system is based on "unassigned CAN objects"
(control, alarm, diagnostics...). These objects are available in DDS from version 2.x onwards.
To initialise the unassigned CAN objects, the function L_CANInit must be requested once only in the
system POU PLC_ColdStart.
Parameterising the communication conditions
Function block L_IOParPDO15 for parameterising the communication conditions of PDO1−PDO5 is
integrated into the SFC editor and necessarily is to be used in every project. This function block
specifies the communication parameters in the I/O system.
The values are transferred to the process data block L_IOData15 as a structure (STRUCT) in order
to match the communication parameters of the devices (controller and I/O system).
On program execution, this step is executed only once at the beginning.
L
LenzeIOSystem.lib EN 1.7
3−1
Function library LenzeIOSystem.lib
Application examples
3.1Modular decentralised I/O system
Then the Parameter program that must be generated in the SFC editor follows. With the invocation
of the function block instance, the step Parameter_data has the action generated in the FBD editor.
Note!
· Enter a minimum time of ten seconds for step Init via the menu command ExtrasÞStep
attibutes.... Correct entry: T#10s
Make sure that step Parameter_data is not executed before the initialisation phase of the I/O system
is complete. This is achieved with a minimum time of ten seconds.
As this POU must be processed cyclically, the program is invoked in the PLC_PRG (main program).
The sequential function chart ensures a cyclic task.
The parameterisation process is started via the initial action in step Parameter_data.
Once the parameterisation is complete, the final action in step Parameter_data sets input bExecute
to FALSE and variable bStart to TRUE.
Variable bStart ensures that step Parameter_data is executed
· on switching on
· on reset and subsequent starting.
When the parameterisation is complete, the PLC_PRG (main program) stops in step Init. It does not
impose an extra burden on the target system during subsequent program operation.
3−2
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Application examples
3.1Modular decentralised I/O system
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.
L
LenzeIOSystem.lib EN 1.7
3−3
Function library LenzeIOSystem.lib
Application examples
3.1Modular decentralised I/O system
3−4
Function block L_IOData15 supplies the transmit and receive data as 8 byte information via the CAN
telegram.
The two converters convert the information into individual bytes.
A digital input and output module maps the individual bits.
Initialising the codes
Initialise the following codes in the PLC
· Code C0352
Subcode 0 = 1
Defines PLC as a CAN master so that the configuration enters the Operational state.
· Code C0356
Subcode 1 = 10000
Increases the boot−up time to10s
· Code C2104
Subcode 0 = 1
Starts the PLC program automatically after switching on the mains
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Application examples
3.2Compact decentralised I/O system
3.2Compact decentralised I/O system
The compact module EPM − T832 with 24 digital inputs and 8 digital outputs is integrated into a PLC
program with the help of LenzeIOSystem.lib.
During this process, the following steps must be carried out in the given order:
1. Initialise the CAN driver
2. Parameterise the communication conditions
3. Program the process data exchange between PLC and I/O system
4. Initialise the codes
Initialising the CAN driver
Communication between the PLC and the I/O system is based on "unassigned CAN objects"
(control, alarm, diagnostics...). These objects are available in DDS from version 2.x onwards.
To initialise the unassigned CAN objects, the function L_CANInit must be requested once only in the
system POU PLC_ColdStart.
Parameterising the communication conditions
Function block L_IOParCompactModule for parameterising the communication conditions is
integrated into the SFC editor and necessarily is to be used in every project. This function block
specifies the communication parameters in the I/O system.
The values are transferred to the process data block L_IOCompactModule as a structure (STRUCT)
in order to match the communication parameters of the devices (controller and I/O system).
On program execution, this step is executed once only at the beginning.
Then the Parameter program that must be generated in the SFC editor follows. With the invocation
of the function block instance, the step ParCompact has the action generated in the FBD editor.
L
LenzeIOSystem.lib EN 1.7
3−5
Function library LenzeIOSystem.lib
Application examples
3.2Compact decentralised I/O system
Note!
· Enter a minimum time of ten seconds for step Init via the menu command ExtrasÞStep
attributes.... Correct entry: T#10s
Make sure that step Parameter_data is not executed before the initialisation phase of the I/O system
is complete. This is achieved with a minimum time of ten seconds.
As this POU must be processed cyclically, the program is invoked in the PLC_PRG (main program).
The sequential function chart ensures a cyclic task.
The parameterisation process is started via the initial action in step ParCompact.
Once the parameterisation is complete, the final action in step ParCompact sets input bExecute to
FALSE and variable bStart to TRUE.
Variable bStart ensures that step ParCompact is executed
· on switching on
· on reset and subsequent starting.
When the parameterisation is complete, the PLC_PRG (main program) stops in step Init. It does not
impose an extra burden on the target system during subsequent program operation.
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_IOCompactModule 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_IOCompactModule as shown in
the figure.
3−6
Several conversion blocks are available to evaluate input data and to transfer output data.
Function block L_IOCompactModule transmits output data to the I/O system and receives input
data from there.
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Application examples
3.2Compact decentralised I/O system
At input DataFrom_IOParPDO15, CAN communication relationships between PLC and I/O system
are transmitted from parameterisation block L_IOParCompactModule to process data blockL_IOCompactModule.
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.
L
Function block L_IOCompactModule supplies the transmit and receive data as 8*8 byte information
via the CAN telegram.
The two converters convert the information into individual bits.
A digital input and output module maps the individual bits.
If the example for eight inputs / outputs is to be extended to 24 inputs, two further function blocks
L_IODInModule must be generated and linked via converter L_IOConvByteArrayToByte.
LenzeIOSystem.lib EN 1.7
3−7
Function library LenzeIOSystem.lib
Application examples
3.2Compact decentralised I/O system
Initialising the codes
Initialise the following codes in the PLC
· Code C0352
Subcode 0 = 1
Defines PLC as a CAN master so that the configuration enters the Operational state.
· Code C0356
Subcode 1 = 10000
Increases the boot−up time to10s
· Code C2104
Subcode 0 = 1
Starts the PLC program automatically after switching on the mains
3−8
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
4Function blocks for parameterisation
This chapter contains information on function blocks for parameterisation.
The following functions and modules are parameterised:
· Monitoring function
· Analog input modules
· Analog output modules
· Counter modules
· Link between PLC control and I/O system
· Link between PLC control and compact module
Function blocks
L
LenzeIOSystem.lib EN 1.7
4−1
Function library LenzeIOSystem.lib
Function blocks
4.1L_IOParComGuarding − Monitoring function
4.1L_IOParComGuarding − Monitoring function
This function block parameterises, via the input setting, the monitoring functions provided by the I/O
system.
Included are
· NodeGuarding, Heartbeat and a Lenze−specific monitoring function,
· setting the output channels’ switching behaviour in the case of an error via input
byErrorBehavior.
The function block output indicates the transmission status.
L_IOParComGuarding
bExecute
byNodeAdr
tGuardTime
byLifeTimeFactor
tHeartbeatConsumerTime
byHearbeatConsumerAdr
tHeartbeatProducerTime
byErrorBehavior
tTimeOutPDO1_DataToIO
CTRL
EPM-T110
EPM-T111
Ixxxh
nState
tTimeOutPDO10_DataToIO
tTimeOutPDO1_DataFromIO
tTimeOutPDO10_DataFromIO
DataTo_IOData15
DataTo_IOData610
Note!
Use the FBs of LenzeCanDSxDrv.lib for evaluating the functions NodeGuarding and Heartbeat.
byHeartbeatConsumerAdrByteNode ID of the device to be monitored. (HeartbeatProducer Node ID)
An NMT master must poll the I/O system within the guard time period.
Default t = 0 ms
t = 0 − 65535 ms
Life Time Factor x Guard Time = Life Time.
Once this period has expired, the I/O system is switched into a predefined status.
The I/O system is switched into a predefined status if no telegram is received from
the Heartbeat Producer within this interval.
t = 0 − 65535 ms
4−2
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Function blocks
4.1L_IOParComGuarding − Monitoring function
(Variable type: VAR_INPUT)ð Inputs
Variable nameInformation/possible settingsData type
tHeartbeatProducerTimeTimeSet the transmission time for one heartbeat telegram t = 0 − 65535ms
byErrorBehaviorByteSet the bus status / behaviour on critical device error
0 Pre−Operational (default)
1 No status change
2 Stop
3 Reset after 2 seconds
tTimeOutPDO1_DataToIO
...
tTimeOutPDO10_DataToIO
tTimeOutPDO1_DataFromIO
...
tTimeOutPDO10_DataFromIO
TimeMonitoring period for process input data (Lenze−specific).
If no data are received at the selected PDO within the monitoring period, the I/O
system assumes the status set under byErrorBehavior.
Default t = 0 ms
t = 0 − 65535 ms
TimeMonitoring period for process output data.
If no data are transmitted from the I/O system to the PLC at the selected PDO within
the monitoring period, function block L_IODataXXX signals a time monitoring error.
Default t = 0 ms
t = 0 − 65535 ms
Outputs ð(Variable type: VAR_OUTPUT)
IdentifierData typeValue/meaning
nStateIntegerStates
DataTO_IOData15StructStructure for process data block L_IOData15.
DataTO_IOData610StructStructure for process data block L_IOData610
If a transmission error occurs during the parameterisation process, or the input data
are incorrect, the parameterisation process is aborted and an error number is
indicated at output nState.
Any errors are reset via an edge reversal at input bExecute or on program restart.
0 Transmit command is executed.
1 Transmit command sent − processing in process
2001 Error occurred during bus transfer
2002 Transmit command timed out
2004 Access denied − wrong target system: Subindex does not exist
2005 Access denied − wrong target system: Index does not exist
2013 Access denied − wrong target system: Invalid value range
2111 Access denied − wrong target system: More than 4 digits
specified after comma, or no fixed−comma−format index
2117 Communication channel does not exist − also refer Set byCom
channel
2120 Too many modules connected − parameter transfer aborted
−10xx Incorrect value at function block input.
XX := Number of faulty input (counting direction down),
parameterisation impossible.
Remedy: Change input value, restart data transmission
Transfer process output data monitoring periods to process data block L_IOData15.
Global struct−type variable
Transfer process output data monitoring periods to process data block
L_IOData610.
Global struct−type variable
L
LenzeIOSystem.lib EN 1.7
4−3
Function library LenzeIOSystem.lib
Function blocks
4.2L_IOParAlnModule − Parameterisation function
4.2L_IOParAlnModule − Parameterisation function
By means of the L_IOParAInModule function block, the analog input modules (EPM−T310 / 311 /
T312) are parameterised. Parameterisation is started by a high edge on the input bExecute.
Each module has four channels, whereby each channel can be set individually.
The following is provided:
· Voltage measurement
· Current measurement
· Resistance measurement
· Temperature measurement
On the output of the function block, the transmission status and the information on the connected
modules are displayed.
L_IOParAInModule
bExecute
CTRL
nState
byNodeAdr
byAnalogModuleNo
BEnableDiagnosticAlarm *
bEnableAnalogInterrupt
byFunctionInput_CH1
BySampleRate_CH1 *
BySelectionFcn_CH1 *
ByHysteresis_CH1 *
ByTriggerSelection_CH1 *
ByTriggerValue_CH1 *
byFunctionInput_CH4
BySampleRate_CH4 *
BySelectionFcn_CH4 *
ByHysteresis_CH4 *
ByTriggerSelection_CH4 *
ByTriggerValue_CH4 *
*
Input/function is exclusively supported by type EPM−T310.
· The analog module that is mounted first has the slot number 1.
· Maximally 16 analog modules can be attached.
Enable diagnostics alarm
TRUE Diagnostics alarm is enabled
Enable analog data transmission
TRUE Data transmission is enabled
Parameterise function
Default ±10V function code = 3B
^ 6−1
Select number of conversions per second
0 15 conversions
1 30 conversions
2 60 conversions
3 123 conversions
4 168 conversions
5 202 conversions
6 3.7 conversions
7 7.5 conversions
Selection
0 Selection deactivated
1 Use 2 of 3 values
2 Use 4 of 6 values
Hysteresis
0 Hysteresis deactivated
1 Hysteresis ±8
2 Hysteresis ±16
Transmission result
0 Use default settings
1 Upper limit value exceeded
2 Lower limit value not reached
3 Input value has changed by a defined value.
Value selection for a transmission event
2 Default
h
L
LenzeIOSystem.lib EN 1.7
4−5
Function library LenzeIOSystem.lib
Function blocks
4.2L_IOParAlnModule − Parameterisation function
Outputs ð(Variable type: VAR_OUTPUT)
IdentifiersData typeValue/meaning
nStateInteger
States
If a transmission error occurs during the parameterisation process or the input data
are incorrect, the parameterisation process is aborted and an error number is
indicated at output nState.
Errors are reset via an edge reversal at input bExecute or on
program restart.
0 Transmit request is executed.
The module is parameterised.
1 Transmit request dropped
Processing is running
2001 Error occurred during bus transfer
2002 Transmit request timed out
2004 Access denied
Incorrect target system: index does not exist
2005 Access denied
Incorrect target system: subindex does not exist
2013 Access denied
Incorrect target system: invalid value range
2111 Access denied
Incorrect target system: more than 4 decimal positions
specified or no fixed point format index
2117 Communication channel does not exist
byCom−Channelsetting
−10xx Incorrect value at function block input.
XX := number of the faulty input (counting direction
downwards), parameterisation impossible.
Remedy: change input value, restart data transmission
4−6
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Function blocks
4.3L_IOParAOutModule − Parameterisation function
4.3L_IOParAOutModule − Parameterisation function
By means of the L_IOParAOutModule function block, the analog output modules (EPM−T320 /
T321 / T322) are parameterised. Parameterisation is started by a high edge on the input bExecute.
Each module has four channels, whereby each channel can be set individually.
The following is provided:
· Voltage measurement
· Current measurement
The function block output indicates the transmission status.
L_IOParAOutModule
bExecute
byNodeAdr
byAnalogModuleNo
BEnableDiagnosticAlarm *
CTRL
nState
EPM-T110
EPM-T111
byFunctionOutput_CH1
byFunctionOutput_CH2
byFunctionOutput_CH3
byFunctionOutput_CH4
*
Input/function is exclusively supported by type EPM−T320.
· The analog module that is mounted first has the slot number 1.
· Maximally 16 analog modules can be attached.
bEnableDiagnosticAlarmBOOL
byFunctionOutput_CH1
...
byFunctionOutput_CH4
Byte
Enable diagnostics alarm
TRUE Diagnostics alarm is enabled
Parameterise function
Default ±10V function code = 01
^ 6−4
Ixxxh
h
L
LenzeIOSystem.lib EN 1.7
4−7
Function library LenzeIOSystem.lib
Function blocks
4.3L_IOParAOutModule − Parameterisation function
Outputs ð(Variable type: VAR_OUTPUT)
IdentifiersData typeValue/meaning
nStateInteger
States
If a transmission error occurs during the parameterisation process or the input data
are incorrect, the parameterisation process is aborted and an error number is
indicated at output nState.
Errors are reset via an edge reversal at input bExecute or on
program restart.
0 Transmit request is executed.
The module is parameterised.
1 Transmit request dropped
Processing is running
2001 Error occurred during bus transfer
2002 Transmit request timed out
2004 Access denied
Incorrect target system: subindex does not exist
2005 Access denied
Incorrect target system: index does not exist
2013 Access denied
Incorrect target system: invalid value range
2111 Access denied
Incorrect target system: more than 4 decimal positions
specified or no fixed point format index
2117 Communication channel does not exist
byCom−Channelsetting
−10xx Incorrect value at function block input.
XX := number of faulty input (counting direction down),
parameterisation impossible.
Remedy: change input variable, restart data transmission
4−8
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Function blocks
4.4L_IOParAlAOModule − Parameterisation function
4.4L_IOParAlAOModule − Parameterisation function
Function block L_IOParAIAOModule parameterises the analog input and output modules
EPM−T330, a High edge at input bExecute starting the parameterisation process.
Every module has four channels that can each be set individually. Two analog inputs and two analog
outputs are available.
The following functions can be set:
· Voltage measuring
· Current measuring
· Voltage output
· Current output
The function block output indicates the transmission status and information on linked modules.
· The first analog module installed is assigned slot number 1.
· A maximum of 16 analog modules may be plugged.
Enable diagnostic alarm
Enable analog data transmission
Parameterise function
Select number of conversions per second
Parameterise function
TRUE Diagnostic alarm is enabled
TRUE Data transmission is enabled
Default ±10V function parameter = 01
^ 6−6
0 15 conversions
1 30 conversions
2 60 conversions
3 123 conversions
4 168 conversions
5 202 conversions
6 3.7 conversions
7 7.5 conversions
Default ±10V function code = 01
^ 6−6
h
h
4−10
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Function blocks
4.4L_IOParAlAOModule − Parameterisation function
Outputs ð(Variable type: VAR_OUTPUT)
IdentifierData typeValue/meaning
nStateInteger
States
If a transmission error occurs during the parameterisation process, or the input data
are incorrect, the parameterisation process is aborted and an error number is
indicated at output nState.
Any errors are reset via an edge reversal at input bExecute or on
program restart.
0 Transmit command is executed.
The module is parameterised.
1 Transmit command sent
Processing in process
2001 Error occurred during bus transfer
2002 Transmit command timed out
2004 Access denied
Wrong target system: Index does not exist
2005 Access denied
Wrong target system: Subindex does not exist
2013 Access denied
Wrong target system: Invalid value range
2111 Access denied
Wrong target system: More than 4 digits specified after
comma, or no fixed−comma−format index
2117 Communication channel does not exist
Set byCom channel
−10xx Incorrect value at function block input.
XX := Number of the faulty input (counting direction down),
parameterisation impossible.
Remedy: Change input value, restart data transmission
L
LenzeIOSystem.lib EN 1.7
4−11
Function library LenzeIOSystem.lib
Function blocks
4.5L_IOParSSIModule − Parameterisation function
4.5L_IOParSSIModule − Parameterisation function
The SSI interface (SSI = Synchronous Serial Interface) is a synchronously clocked interface.
Function block L_IOParSSIModule converts the serial information of the measured values into
parallel information that is subsequently supplied to the control system.
· The first analog module installed is assigned slot number 1.
· A maximum of 9 modules may be plugged.
byFunction_Baudrate
bFunction_CodeBoolCoding
bFunction_HoldBoolHold function
bFunction_SetDigitalOutBoolDigital outputs
ByteBaud rate setting
0 300 kbps
1 100 kbps
2 300 kbps
3 600 kbps
4 300 kbps
Default 0 Binary code
1 Gray code
0 Not active
1 Active
0 Not active
1 Active
nState
EPM-T110
Ixxxh
4−12
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Function blocks
4.5L_IOParSSIModule − Parameterisation function
Outputs ð(Variable type: VAR_OUTPUT)
IdentifierData typeValue/meaning
nStateIntegerStates
If a transmission error occurs during the parameterisation process, or the input data
are incorrect, the parameterisation process is aborted and an error number is
indicated at output nState.
Any errors are reset via an edge reversal at input bExecute or on
program restart.
0 Transmit command is executed.
The module is parameterised.
1 Transmit command sent
Processing in process
2001 Error occurred during bus transfer
2002 Transmit command timed out
2004 Access denied
Wrong target system: Subindex does not exist
2005 Access denied
Wrong target system: Index does not exist
2013 Access denied
Wrong target system: Invalid value range
2111 Access denied
Wrong target system: More than 4 digits specified after
comma, or no fixed−comma−format index
2117 Communication channel does not exist
Set byCom channel
−10xx Incorrect value at function block input.
XX := Number of faulty input (counting direction down),
parameterisation impossible.
Remedy: Change input value, restart data transmission
L
LenzeIOSystem.lib EN 1.7
4−13
Function library LenzeIOSystem.lib
Function blocks
4.6L_IOParCounterModule − Counter function
4.6L_IOParCounterModule − Counter function
The counter modules are parameterised via function block L_IOParCounterModule.
· The counter function is specified via inputs byFunction_CH1 and byFunction_CH2.
· The first analog module installed is assigned slot number 1.
· A maximum of 16 analog modules may be plugged.
byFunction_CH1ByteParameterise function
Default (2 * 32 bit counters) function code 00
^ 6−10
byFunction_CH2ByteParameterise function
Default (2 * 32 bit counters) function code 00
^ 6−10
EPM-T110
Ixxxh
h
h
4−14
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Function blocks
4.6L_IOParCounterModule − Counter function
Outputs ð(Variable type: VAR_OUTPUT)
IdentifierData typeValue/meaning
nStateIntegerStates
If a transmission error occurs during the parameterisation process, or the input data
are incorrect, the parameterisation process is aborted and an error number is
indicated at output nState.
Any errors are reset via an edge reversal at input bExecute or on
program restart.
0 Transmit command is executed.
The module is parameterised.
1 Transmit command sent
Processing in process
2001 Error occurred during bus transfer
2002 Transmit command timed out
2004 Access denied
Wrong target system: Subindex does not exist
2005 Access denied
Wrong target system: Index does not exist
2013 Access denied
Wrong target system: Invalid value range
2111 Access denied
Wrong target system: More than 4 digits specified after
comma, or no fixed−comma−format index
2117 Communication channel does not exist
Set byCom channel
−10xx Incorrect value at function block input.
XX := Number of faulty input (counting direction down),
parameterisation impossible.
Remedy: Change input value, restart data transmission
L
LenzeIOSystem.lib EN 1.7
4−15
Function library LenzeIOSystem.lib
Function blocks
4.7L_IOParCounterDIModule − Counter function
4.7L_IOParCounterDIModule − Counter function
The counter function of module EPM−T430 is parameterised via function block
L_IOParCounterDIModule.
· The counter function is specified via inputs byFunction_CH1.
· The first analog module installed is assigned slot number 1
· A maximum of 16 analog modules may be plugged.
byFunction_CH1ByteCounter function
0 Fourfold pulse evaluation
1 Pulse and direction evaluation
2 Counter upwards / downwards
3 Frequency measuring
4 Period measuring
EPM-T110
Ixxxh
4−16
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Function blocks
4.7L_IOParCounterDIModule − Counter function
Outputs ð(Variable type: VAR_OUTPUT)
IdentifierData typeValue/meaning
nStateIntegerStates
If a transmission error occurs during the parameterisation process, or the input data
are incorrect, the parameterisation process is aborted and an error number is
indicated at output nState.
Any errors are reset via an edge reversal at input bExecute or on
program restart.
0 Transmit command is executed.
The module is parameterised.
1 Transmit command sent
Processing in process
2001 Error occurred during bus transfer
2002 Transmit command timed out
2004 Access denied
Wrong target system: Subindex does not exist
2005 Access denied
Wrong target system: Index does not exist
2013 Access denied
Wrong target system: Invalid value range
2111 Access denied
Wrong target system: More than 4 digits specified after
comma, or no fixed−comma−format index
2117 Communication channel does not exist
Set byCom channel
−10xx Incorrect value at function block input.
XX := Number of faulty input (counting direction down),
parameterisation impossible.
Remedy: Change input value, restart data transmission
L
LenzeIOSystem.lib EN 1.7
4−17
Function library LenzeIOSystem.lib
Function blocks
4.8L_IOParPDO15 − Parameterisation function
4.8L_IOParPDO15 − Parameterisation function
This function block serves to set communication−relevant parameters between the PLC control and
the I/O system for PDO 1 − 5.
· Via 3 or 4 input values, a transmission/reception object is parameterised.
· The output nState displays the parameterisation status.
· Via the output DataTo_IOData15 , information is transferred to the L_IOData15 process data
block in a fixed structure.
L_IOParPDO15
bExecute_b
CTRL
byNodeAdr
bInitIOSystem
wCoID_RxPDO1
byTransmissionType_RxPDO1
tCycleTime_RxPDO1
nState
bParDone
wCoID_RxPDO5
byTransmissionType_RxPDO5
tCycleTime_RxPDO5
wCoID_TxPDO1
byTransmissionType_TxPDO1
tinhibitTime_TxPDO1
tCycleTime_RxPDO1
wCoID_TxPDO5
byTransmissionType_TxPDO5
tinhibitTime_TxPDO5
tCycleTime_RxPDO5
DataTo_IOData15
Internal function
bExecute_b = TRUE
Parameter data are transferred to the I/O system
bInitIOSystem = TRUEbInitIOSystem = FALSE
· Index 2358
initialisation of the I/O system.
· Waiting time 10s until initialisation has been completed.
If the boot−up time is >10s, the waiting time corresponds to the
boot−up time
.
is written for purposes of value acceptance or
hex
· Index 2358
initialisation of the I/O system.
hex
· Waiting time 10s until initialisation has been completed.
If the boot−up time is >10s, the waiting time corresponds to
the boot−up time
.
EPM-T110
EPM-T111
Ixxxh
is written for purposes of value acceptance or
4−18
State change of the I/O system by NMT telegram from the
controller:
Pre−operational ä Operational
LenzeIOSystem.lib EN 1.7
Parameterisation completed
L
Function library LenzeIOSystem.lib
Function blocks
4.8L_IOParPDO15 − Parameterisation function
Note!
Features and use of the L_IOParPDO15 FB.
· Use the L_IOParPDO15 FB last in a sequencer consisting of several FBs for parameterisation.
By means of the L_IOParPDO15 FB, parameterisation of the I/O system is carried out.
· For sending the NMT telegram, the controller has to be in the Operational CAN status,
therefore parameterise the controller as master. After the boot−up time has expired, the state
change from Pre−operational to Operational is automatically effected.
· If several IO systems (stations) are parameterised with standard values via the
L_IOParPDO15 FB on the system bus, an identifier collision between the individual PDOs of
these stations can occur. Therefore check the identifiers used.
After changing to the Operational CAN status, the current process image of the I/O system is sent.
· I/O system is re−initialised, state change to Operational
FALSE · No value acceptance
· I/O system is not initialised
Setting identifiers
Default values: input wiring = 0
RxPDO = receive identifiers from the I/O system
Identifiers can be optionally set by value selection.
If the input wiring is "0", the identifiers are composed as follows.
Note!
The basic identifiers are not settled in the pre−assigned area of the standard system
bus.
ID range: 384−831
By this, crossovers of the ID with the free CAN objects which the IO−lib is based on
are avoided.
RxPDOXIdentifier =Basic ID +Node address
RxPDO18378352
RxPDO2840
RxPDO3845
RxPDO4850
RxPDO5855
Transmission mode
0 Event−controlled
1 Time−controlled
2 Event−controlled with superimposed cycle time
L
LenzeIOSystem.lib EN 1.7
4−19
Function library LenzeIOSystem.lib
Function blocks
4.8L_IOParPDO15 − Parameterisation function
(Variable type: VAR_INPUT)ð Inputs
Variable nameInformation/possible settingsData type
wCobID_TxPDO1
...
wCobID_TxPDO5
byTransmissionType_TxPDO1
...
byTransmissionType_TxPDO5
tinhibitTime_TxPDO1
...
tinhibitTime_TxPDO5
tCycleTime_TxPDO1
...
tCycleTime_TxPDO5
WORD
Byte
TimeInhibit time: t = 0 − 65535 ms
TimeCycle time: t = 0 − 65535 ms
Setting identifiers
Default values: input wiring = 0
TxPDO = receive identifiers from the I/O system
Identifiers can be optionally set by value selection.
If the input wiring is "0", the identifiers are composed as follows.
Note!
The basic identifiers are not settled in the pre−assigned area of the standard system
bus.
ID range: 384−831
By this, crossovers of the ID with the free CAN objects which the IO−lib is based on
are avoided.
TxPDOXIdentifier =Basic ID +Node address
TxPDO18388362
TxPDO2841
TxPDO3846
TxPDO4851
TxPDO5856
Transmission mode
0 Event−controlled
1 Time−controlled
2 Event−controlled with superimposed cycle time
4−20
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Function blocks
4.8L_IOParPDO15 − Parameterisation function
Outputs ð(Variable type: VAR_OUTPUT)
IdentifiersData typeValue/meaning
nStateInteger
nStateInteger
bParDoneBOOL
DataTO_IOData15Struct Structure for the L_IOData15
States
If a transmission error occurs during the parameterisation process or the input data
are incorrect, the parameterisation process is aborted and an error number is
indicated at output nState.
Errors are reset via an edge reversal at input bExecute or on
program restart.
0 Transmit request is executed.
The module is parameterised.
1 Transmit request dropped
Processing is running
2001 Error occurred during bus transfer
2002 Transmit request timed out
2004 Access denied
Incorrect target system: index does not exist
2005 Access denied
Incorrect target system: subindex does not exist
2013 Access denied
Incorrect target system: invalid value range
2111 Access denied
Incorrect target system: More than 4 decimal positions
specified or no fixed point format index
2117 Communication channel does not exist
byCom−Channelsetting
−10xx Incorrect value at function block input.
XX := number of faulty input (counting direction down),
parameterisation impossible.
Remedy: change input variable, restart data transmission
States
If a transmission errors occur during the parameterisation process or the input data
are incorrect, the parameterisation process is aborted and an error number is
indicated at output nState.
Errors are reset via an edge reversal at input bExecute or on
program restart.
−150 Can bus is not in the "Operational" status.
−121 Incorrect driver number
−120 CAN driver for free CAN objects at present is not initialised.
−119 The transmit request memory is full.
The transmit request could not be entered anymore.
−118 No free CAN channel available.
−12 Message identifier is beyond the permissible range.
−11 pIOAddress pointer does not point to PLC−RAM.
0 Transmit or reception request has been carried out.
1 Request has not yet been completed and still is available in
the request memory.
10 Telegram length is greater than 8 bytes.
Telegram length is limited to 8 bytes.
200 Data in the reception memory have been overwritten.
Parameterisation
TRUE Parameterisation completed
process data block
Global variable of the "Struct" type
L
LenzeIOSystem.lib EN 1.7
4−21
Function library LenzeIOSystem.lib
Function blocks
4.9L_IOParPDO610 − Parameterisation function
4.9L_IOParPDO610 − Parameterisation function
This function block serves to set communication−relevant parameters between the PLC control and
the I/O system for PDO 6 − 10.
· Via 3 or 4 input values, a transmission/reception object is parameterised.
· The output nState display the parameterisation status.
· Via the output DataTo_IOData610, information is transferred to the L_IOData610 process data
block in a fixed structure.
L_IOParPDO610
bExecute_b
CTRL
byNodeAdr
bInitIOSystem
wCobID_RxPDO6
byTransmissionType_RxPDO6
tCycleTime_RxPDO6
nState
bParDone
wCobID_RxPDO10
byTransmissionType_RxPDO10
tCycleTime_RxPDO10
wCobID_TxPDO6
byTransmissionType_TxPDO6
tinhibitTime_TxPDO6
tCycleTime_RxPDO6
wCobID_TxPDO10
byTransmissionType_TxPDO10
tinhibitTime_TxPDO10
tCycleTime_RxPDO10
DataTo_IOData610
Internal function
bExecute_b = TRUE
Parameter data is transferred to the I/O system
bInitIOSystem = TRUEbInitIOSystem = FALSE
· Index 2358
is written for purposes of value acceptance or initialisation of
the I/O system.
· Waiting time 10s until initialisation has been completed.
If the boot−up time is >10s, the waiting time corresponds to the
boot−up time
.
hex
· Index 2358
initialisation of the I/O system.
hex
· Waiting time 10s until initialisation has been completed.
If the boot−up time is >10s, the waiting time corresponds to
the boot−up time
.
EPM-T110
EPM-T111
Ixxxh
is written for purposes of value acceptance or
4−22
State change of the I/O system by NMT telegram from the
controller:
Pre−operational ä Operational
LenzeIOSystem.lib EN 1.7
Parameterisation completed
L
Function library LenzeIOSystem.lib
Function blocks
4.9L_IOParPDO610 − Parameterisation function
Note!
Features and use of the L_IOParPDLO610 FB.
· Use the L_IOParPDO610 FB last in a sequencer consisting of several FBs for
parameterisation. By means of the L_IOParPDO610 FB, parameterisation of the I/O system is
carried out.
· Parameterise the controller as master.
After the boot−up time has expired, for the master the change from the Pre−operational to the
Operational status is effected automatically.
· For sending the NMT telegram, the controller has to be in the Operational CAN status.
· If several IO systems (stations) are parameterised with standard values via the
L_IOParPDO610 FB on the system bus, an identifier collision between the individual PDOs of
these stations can occur. Therefore check the identifiers used.
After changing to the Operational CAN status, the current process image of the I/O system is sent.
Setting identifiers
Default values: input wiring = 0
RxPDO = receive identifiers from the I/O system
Identifiers can be optionally set by value selection.
If the input wiring is "0", the identifiers are composed as follows.
Note: The basic identifiers are not settled in the pre−assigned area of the standard
system bus.
ID range: 384−831
By this, crossovers of the ID with the free CAN objects which the IO−lib is based on
are avoided.
RxPDOXIdentifier =Basic ID +Node address
RxPDO68628602
RxPDO7865
RxPDO8870
RxPDO9875
RxPDO10880
Transmission mode
0 Event−controlled
1 Time−controlled
2 Event−controlled with superimposed cycle time
L
LenzeIOSystem.lib EN 1.7
4−23
Function library LenzeIOSystem.lib
Function blocks
4.9L_IOParPDO610 − Parameterisation function
(Variable type: VAR_INPUT)ð Inputs
Variable nameInformation/possible settingsData type
wCobID_TxPDO6
...
wCobID_TxPDO10
byTransmissionType_TxPDO6
...
byTransmissionType_TxPDO10
tinhibitTime_TxPDO6
...
tinhibitTime_TxPDO10
tCyceTime_TxPDO6
...
tCyceTime_TxPDO10
WORD
Byte
TimeInhibit time: t = 0 − 65535 ms
TimeCycle time: t = 0 − 65535 ms
Setting identifiers
Default values: input wiring = 0
TxPDO = receive identifiers from the I/O system
Identifiers can be optionally set by value selection.
If the input wiring is "0", the identifiers are composed as follows.
Note: The basic identifiers are not settled in the pre−assigned area of the standard
system bus.
ID range: 384−831
By this, crossovers of the ID with the free CAN objects which the IO−lib is based on
are avoided.
Transmission mode
TxPDOXIdentifier =Basic ID +Node address
TxPDO68638612
TxPDO7866
TxPDO8871
TxPDO9876
TxPDO10881
0 Event−controlled
1 Time−controlled
2 Event−controlled with superimposed cycle time
4−24
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Function blocks
4.9L_IOParPDO610 − Parameterisation function
Outputs ð(Variable type: VAR_OUTPUT)
IdentifiersData typeValue/meaning
nStateinteger
nStateinteger
bParDoneBOOL
DataTO_IOData610StructStructure for the L_IOData610
States
If a transmission error occurs during the parameterisation process or the input data
are incorrect, the parameterisation process is aborted and an error number is
indicated at output nState.
Errors are reset via an edge reversal at input bExecute or on
program restart.
0 Transmit request is executed.
The module is parameterised.
1 Transmit request dropped
Processing is running
2001 Error occurred during bus transfer
2002 Transmit request timed out
2004 Access denied
Incorrect target system: index does not exist
2005 Access denied
Incorrect target system: subindex does not exist
2013 Access denied
Incorrect target system: invalid value range
2111 Access denied
Incorrect target system: More than 4 decimal positions
specified or no fixed point format index
2117 Communication channel does not exist
byCom−Channelsetting
−10xx Incorrect value at function block input.
XX := number of faulty input (counting direction down),
parameterisation impossible.
Remedy: change input variable, restart data transmission
States
If a transmission error occurs during the parameterisation process or the input data
are incorrect, the parameterisation process is aborted and an error number is
indicated at output nState.
Errors are reset via an edge reversal at input bExecute or on
program restart.
−150 Can bus is not in the "Operational" status.
−121 Incorrect driver number
−120 CAN driver for free CAN objects at present is not initialised.
−119 The transmit request memory is full.
The transmit request could not be entered anymore.
−118 No free CAN channel available.
−12 Message identifier is beyond the permissible range.
−11 pIOAddress pointer does not point to PLC−RAM.
0 Transmit or reception request has been carried out.
1 Request has not yet been completed and still is available in
the request memory.
10 Telegram length is greater than 8 bytes.
Telegram length is limited to 8 bytes.
200 Data in the reception memory have been overwritten.
Parameterisation
TRUE Parameterisation completed
process data block
Global variable of the "Struct" type
L
LenzeIOSystem.lib EN 1.7
4−25
Function library LenzeIOSystem.lib
Function blocks
4.10L_IOParCompactModule − Parameterisation function
4.10L_IOParCompactModule − Parameterisation function
This function block assists in the setting of parameters relevant to PLC control compact module
communication.
· Parameterising a function for process data exchange time monitoring.
· Output nState indicates the parameterisation process status.
· Use output DataTo_IODataBlockModule to transfer fixed−structure information to process data
bInitIOSystemBoolInitialise I/O system after parameterisation
DataTo_IODataBlockModule
EPM-T8xx
Ixxxh
TRUE · Value accepted via Reset Node
· I/O system is reinitialised, status changes to OPERATIONAL
FALSE · No value accepted
· I/O system is not initialised
byErrorBehaviorByteSet the bus states
tTimeOutPDO1_DataToIOTimeMonitoring period for process input data (Lenze−specific).
tTimeOutPDO1_DataFromIOTimeMonitoring period for process output data.
Behaviour during a critical device error
0 Pre−Operational
1 No status change
2 Stop
3 Reset after 2 seconds
If no data are received at the selected PDO within the monitoring period, the I/O
system assumes the state set under byErrorBehavior.
Default t = 0 ms (monitoring off)
t = 0 − 65535 ms
If no data are transmitted from the I/O system to the PLC at the selected PDO within
the monitoring period, function block l_IODataXXX signals a time monitoring error.
Default t = 0 ms (monitoring off)
t = 0 − 65535 ms
4−26
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Function blocks
4.10L_IOParCompactModule − Parameterisation function
(Variable type: VAR_INPUT)ð Inputs
Variable nameInformation/possible settingsData type
wCobID_RxPDO1WordSet identifiers
byTransmissionType_RxPDO1
tCyceTime_TxPDO6
...
tCyceTime_TxPDO10
wCobID_TxPDO1WordSet identifiers
byTransmissionType_TxPDO1
tInhibitTime_TxPDO6
...
tInhibitTime_TxPDO10
tCyceTime_TxPDO6
...
tCyceTime_TxPDO10
ByteTransmission method
TimeCycle time t = 0 − 65535 ms
ByteTransmission method
TimeInhibit time t = 0 − 65535 ms
TimeCycle time t = 0 − 65535 ms
Default values: Input setting = 0
RxPDO = I/O system receive identifiers
Identifiers can be given any setting with a specified value.
The identifiers are composed as follows if the input setting = 0.
Note!
The basic identifiers are outside the preassigned standard system bus range.
ID range: 384−831
This prevents IDs from coinciding with unassigned CAN objects on which the IO−lib is
based.
RxPDOXIdentifier =Basic ID +Node address
RxPDO18378352
0 Event−controlled
1 Time−controlled
2 Event−controlled with superimposed cycle time
Default values: Input setting = 0
TxPDO = I/O system receive identifiers
Identifiers can be given any setting with a specified value.
The identifiers are composed as follows if the input setting = 0.
The basic identifiers are outside the preassigned standard system bus range.
ID range: 384−831
This prevents IDs from coinciding with unassigned CAN objects on which the IO−lib is
based.
TxPDOXIdentifier =Basic ID +Node address
TxPDO18388362
0 Event−controlled
1 Time−controlled
2 Event−controlled with superimposed cycle time
L
LenzeIOSystem.lib EN 1.7
4−27
Function library LenzeIOSystem.lib
Function blocks
4.10L_IOParCompactModule − Parameterisation function
Outputs ð(Variable type: VAR_OUTPUT)
IdentifierData typeValue/meaning
nStateIntegerStates
nState
bParDoneByteParameterisation status
DataTO_IODataCompactmoduleStructStructure for process data block L_IOCompactModule
IntegerStates
If a transmission error occurs during the parameterisation process, or the input data
are incorrect, the parameterisation process is aborted and an error number is
indicated at output nState.
Any errors are reset via an edge reversal at input bExecute or on
program restart.
If a transmission error occurs during the parameterisation process, or the input data
are incorrect, the parameterisation process is aborted and an error number is
indicated at output nState.
Any errors are reset via an edge reversal at input bExecute or on
program restart.
Global struct−type variable
0 Transmit command is executed.
The module is parameterised.
1 Transmit command sent
Processing in process
2001 Error occurred during bus transfer
2002 Transmit command timed out
2004 Access denied
Wrong target system: Index does not exist
2005 Access denied
Wrong target system: Subindex does not exist
2013 Access denied
Wrong target system: Invalid value range
2111 Access denied
Wrong target system: More than 4 digits specified after
comma, or no fixed−comma−format index
2117 Communication channel does not exist
Set byCom channel
−10xx Incorrect value at function block input.
XX := Number of faulty input (counting direction down),
parameterisation impossible.
Remedy: Change input value, restart data transmission
−150 CAN bus not in Operational status.
−121 Wrong driver number
−120 CAN driver for unassigned CAN objects currently not initialised.
−119 Transmit command memory is full.
Transmit command could not be entered.
−118 No free CAN channel available.
−12 Message identifier outside permissible range.
−11 pIOAddress pointer does not point at PLC RAM.
0 Transmit and/or receive command is executed.
1 Command has not yet been completed and is still in the
command memory.
10 Telegram longer than 8 bytes.
Telegram length limited to 8 bytes.
200 Data in receive memory have been overwritten.
TRUE Parameterisation executed
4−28
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Function blocks
5Function blocks for process data processing
This chapter contains information on function blocks for coordination, support and conversion.
The following functions and modules are coordinated:
· Digital and analog input and output data
The following functions and modules are supported:
· Analog input modules
· Analog output modules
· Counter modules
· Link between PLC control and I/O system
· Link between PLC control and compact module
L
LenzeIOSystem.lib EN 1.7
5−1
Function library LenzeIOSystem.lib
Function blocks
5.1L_IOData15 − Coordinate data
5.1L_IOData15 − Coordinate data
Function block L_IOData15 coordinates digital and analog input and/or output data.
The block represents the interface between PLC and I/O system.
· Via inputs abyPDO_DataToIO, data are transmitted from the control to the I/O system
(digital/analog output channels).
· The states of the digital and analog input channels are transmitted to the control via outputs
abyPDO_DataFromIO.
· This function block is made up of unassigned CAN objects so that the status display at
outputs nState... is the same as for the CAN library’s transmit and receive blocks.
bResetFailBoolReset output data bFail_DataToIO. bFail_DataFromIO and bFail_Module
DataFrom_IOParPDO15StructStructural data of parameter block L_IOParPDO15 are transferred to process data
DataFrom_IOParComGuardingStructTransfer monitoring times tTimeOut_DataFromIO for PDO 1−5.
Outputs ð(Variable type: VAR_OUTPUT)
IdentifierData typeValue/meaning
nStatePDO1_DataFromIO
...
nStatePDO5_DataFromIO
Byte arrayI/O system receive objects
· Transfer process data from PLC to I/O system
(digital/analog outputs)
TRUE Output data reset
block L_IOData15 via this input.
Global struct−type variable
Structural data of parameter block L_IOParComGuading.
Global struct−type variable
IntegerStates
If a transmission error occurs during the parameterisation process, or the input data
are incorrect, the parameterisation process is aborted and an error number is
indicated at output nState.
−150 CAN bus not in Operational status.
−121 Wrong driver number
−120 CAN driver for unassigned CAN objects currently not initialised.
−119 Transmit command memory is full.
Transmit command could not be entered.
−118 No free CAN channel available.
−12 Message identifier outside permissible range.
−11 pIOAddress pointer does not point at PLC RAM.
0 Transmit and/or receive command is executed.
1 Command has not yet been completed and is still in the
command memory.
2 Data transmission disabled
· bEnablePDOTransfer = False
· I/O system parameterisation not yet complete
10 Telegram longer than 8 bytes.
Telegram length limited to 8 bytes.
200 Data in receive memory have been overwritten.
−30xx TimeOut monitoring (xx @ PDOxx)
Data transfer from I/O system to PLC failed.
Data arrived late or not at all.
L
LenzeIOSystem.lib EN 1.7
5−3
Function library LenzeIOSystem.lib
Function blocks
5.1L_IOData15 − Coordinate data
(Variable type: VAR_OUTPUT)Outputs ð
IdentifierValue/meaningData type
nStatePDO1_DataToIO
...
nStatePDO5_DataToIO
bFail_DataToIOBoolTransmit command to I/O system
bFail_DataFromIOBoolReceive command from I/O system
bFail_ModuleBoolModule error
abyPDO1_DataFromIO
...
abyPDO5_DataFromIO
IntegerStates
If a transmission error occurs during the parameterisation process, or the input data
are incorrect, the parameterisation process is aborted and an error number is
indicated at output nState.
−150 CAN bus not in Operational status.
−121 Wrong driver number
−120 CAN driver for unassigned CAN objects currently not initialised.
−119 Transmit command memory is full.
Transmit command could not be entered.
−118 No free CAN channel available.
−12 Message identifier outside permissible range.
−11 pIOAddress pointer does not point at PLC RAM.
0 Transmit and/or receive command is executed.
1 Command has not yet been completed and is still in the
command memory.
2 Data transmission disabled
· bEnablePDOTransfer = False
· I/O system parameterisation not yet complete
10 Telegram longer than 8 bytes.
Telegram length limited to 8 bytes.
200 Data in receive memory have been overwritten.
TRUE Transmit command to I/O system is not correct
TRUE Receive command from I/O system is not correct
TRUE · Module diagnostics active
· Emergency object indicates error
Byte arrayI/O system transmit objects
Transfer process data from I/O system to PLC
(digital/analog inputs)
5−4
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Function blocks
5.2L_IOData610 − Coordinate data
5.2L_IOData610 − Coordinate data
Function block L_IOData610 coordinates digital and analog input and/or output data for process
data objects 6 − 10.
The block represents the interface between PLC and I/O system.
· Via inputs abyPDO_DataToIO, data are transmitted from the control to the I/O system
(digital/analog output channels).
· The states of the digital and analog input channels are transmitted to the control via outputs
abyPDO_DataFromIO.
· This function block is made up of unassigned CAN objects so that the status display at
outputs nState... is the same as for the CAN library’s transmit and receive blocks.
bResetFailBoolReset output data bFail_DataToIO and bFail_DataFromIO
DataFrom_IOParPDO610StructStructural data of parameter block L_IOParPDO610 are transferred to process data
DataFrom_IOParComGuardingStructTransfer monitoring times tTimeOut_DataFromIO for PDO 6−10.
Byte arrayI/O system receive objects
· Transfer process data from PLC to I/O system
(digital/analog outputs)
TRUE Output data reset
block L_IOData610 via this input.
Global struct−type variable
Structural data of parameter block L_IOParComGuarding.
Global struct−type variable
EPM-T110
EPM-T111
Ixxxh
DataTo_IOData610
L
LenzeIOSystem.lib EN 1.7
5−5
Function library LenzeIOSystem.lib
Function blocks
5.2L_IOData610 − Coordinate data
Outputs ð(Variable type: VAR_OUTPUT)
IdentifierData typeValue/meaning
nStatePDO6_DataToIO
...
nStatePDO10_DataToIO
IntegerStates
If a transmission error occurs during the parameterisation process, or the input data
are incorrect, the parameterisation process is aborted and an error number is
indicated at output nState.
−150 CAN bus not in Operational status.
−121 Wrong driver number
−120 CAN driver for unassigned CAN objects currently not initialised.
−119 Transmit command memory is full.
Transmit command could not be entered.
−118 No free CAN channel available.
−12 Message identifier outside permissible range.
−11 pIOAddress pointer does not point at PLC RAM.
0 Transmit and/or receive command is executed.
1 Command has not yet been completed and is still in the
command memory.
2 Data transmission disabled
· bEnablePDOTransfer = False
· I/O system parameterisation not yet complete
10 Telegram longer than 8 bytes.
Telegram length limited to 8 bytes.
200 Data in receive memory have been overwritten.
5−6
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Function blocks
5.2L_IOData610 − Coordinate data
(Variable type: VAR_OUTPUT)Outputs ð
IdentifierValue/meaningData type
nStatePDO6_DataFromIO
...
nStatePDO10_DataFromIO
bFail_DataToIOBoolTransmit command to I/O system
bFail_DataFromIOBoolReceive command from I/O system
abyPDO6_DataFromIO
...
abyPDO10_DataFromIO
IntegerStates
If a transmission error occurs during the parameterisation process, or the input data
are incorrect, the parameterisation process is aborted and an error number is
indicated at output nState.
−150 CAN bus not in Operational status.
−121 Wrong driver number
−120 CAN driver for unassigned CAN objects currently not initialised.
−119 Transmit command memory is full.
Transmit command could not be entered.
−118 No free CAN channel available.
−12 Message identifier outside permissible range.
−11 pIOAddress pointer does not point at PLC RAM.
0 Transmit and/or receive command is executed.
1 Command has not yet been completed and is still in the
command memory.
2 Data transmission disabled
· bEnablePDOTransfer = False
· I/O system parameterisation not yet complete
10 Telegram longer than 8 bytes.
Telegram length limited to 8 bytes.
200 Data in receive memory have been overwritten.
−30xx TimeOut monitoring (xx @ PDOxx)
Data transfer from I/O system to PLC failed.
Data arrived late or not at all.
TRUE Transmit command to I/O system is not correct
TRUE Receive command from I/O system is not correct
Byte arrayI/O system transmit objects
Transfer process data from I/O system to PLC
(digital/analog inputs)
L
LenzeIOSystem.lib EN 1.7
5−7
Function library LenzeIOSystem.lib
Function blocks
5.3L_IOCompactModule − Coordinate data
5.3L_IOCompactModule − Coordinate data
Function block L_IOCompactModule supplies the digital input and/or output data of the I/O system
and is used for compact module EPM−T83X.
The block represents the interface between PLC and I/O system.
· Via inputs abyPDO_DataToIO, data are transmitted from the control to the I/O system
(digital/analog output channels).
· The states of the digital and analog input channels are transmitted to the control via outputs
abyPDO_DataFromIO.
· This function block is made up of unassigned CAN objects so that the status display at
outputs nState... is the same as for the CAN library’s transmit and receive blocks.
abyPDO1_DataToIOByte arrayI/O system receive object
CTRL
nStatePDO1_DataFromIO
bFail_DataToIO
bFail_DataFromIO
bFail_Module
EPM-T110
abyPDO1_DataFromIO
TxPDO1
TRUE PDO data transfer active
· Transfer process data from PLC to I/O system
(digital outputs)
bResetFailBoolReset output data bFail_DataToIO, bFail_DataFromIO and bFail_Module
TRUE Output data reset
DataFrom_IOParPDOCompactModuleStructStructural data of parameter block L_IOParPDOCompaktModule.
Global struct−type variable.
5−8
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Function blocks
5.3L_IOCompactModule − Coordinate data
Outputs ð(Variable type: VAR_OUTPUT)
IdentifierData typeValue/meaning
nStatePDO1_DataToIOIntegerStates
nStatePDO1_DataFromIOIntegerStates
Indicates actual status of the transmit objects.
−150 CAN bus not in Operational status.
−121 Wrong driver number
−120 CAN driver for unassigned CAN objects currently not initialised.
−119 Transmit command memory is full.
Transmit command could not be entered.
−118 No free CAN channel available.
−12 Message identifier outside permissible range.
−11 pIOAddress pointer does not point at PLC RAM.
0 Transmit and/or receive command is executed.
1 Command has not yet been completed and is still in the
command memory.
2 Data transmission disabled
· bEnablePDOTransfer = False
· I/O system parameterisation not yet complete
10 Telegram longer than 8 bytes.
Telegram length limited to 8 bytes.
200 Data in receive memory have been overwritten.
Indicates actual status of the receive objects.
−150 CAN bus not in Operational status.
−121 Wrong driver number
−120 CAN driver for unassigned CAN objects currently not initialised.
−119 Transmit command memory is full.
Transmit command could not be entered.
−118 No free CAN channel available.
−12 Message identifier outside permissible range.
−11 pIOAddress pointer does not point at PLC RAM.
0 Transmit and/or receive command is executed.
1 Command has not yet been completed and is still in the
command memory.
2 Data transmission disabled
· bEnablePDOTransfer = False
· I/O system parameterisation not yet complete
10 Telegram longer than 8 bytes.
Telegram length limited to 8 bytes.
200 Data in receive memory have been overwritten.
−30xx TimeOut monitoring
Data transfer from I/O system to PLC failed.
Data arrived late or not at all.
L
LenzeIOSystem.lib EN 1.7
5−9
Function library LenzeIOSystem.lib
Function blocks
5.3L_IOCompactModule − Coordinate data
(Variable type: VAR_OUTPUT)Outputs ð
IdentifierValue/meaningData type
bFail_DataToIOBoolTransmit command to I/O system
bFail_DataFromIOBoolReceive command from I/O system
bFail_ModuleBoolModule error
abyPDO1_DataFromIOByte arrayI/O system transmit object
TRUE Transmit command to I/O system is not correct
TRUE Receive command from I/O system is not correct
TRUE · Module diagnostics active
· Emergency object indicates error
Transfer process data from I/O system to PLC
(digital inputs)
5−10
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Function blocks
5.4L_IOCounterDataToIO − Counter function
5.4L_IOCounterDataToIO − Counter function
The counter module function is set via parameterisation data block
L_IOParCounterDataToIO. Depending on this parameterisation, the counter may be preassigned
values for counting or comparison. Function block L_IOCounterDataToIO is used for this
preassignment.
L_IOCounterDataToIO
byByte0_Counter02
byByte1_Counter02
byByte2_Counter01
byByte3_Counter01
byByte4_Counter12
byByte5_Counter12
byByte6_Counter11
byByte7_Counter11
Byte
Byte
Byte
Byte
Byte
Byte
Byte
Byte
Byte
DI
0
DI
1
DI
2
DI
3
DI
3
DI
5
DI
6
DI
DI
7
7
abyPDO_DataToIO
byByte8_Control
byByte9_Status
Byte
Byte
DI
1
DI
0
abyPDO_DataToIO
Assignment of bytes 0...7 is dependent on the selected mode.
The counter mode default value is zero, resulting in the following assignment.
· Counter 0 preassignment with counting values is assisted by inputs
byByte8_ControlByteAccept specified values at the following inputs after Low to High edge reversal.
byByte9_StatusByteCount value after restart
Outputs ð(Variable type: VAR_OUTPUT)
IdentifierData typeValue/meaning
abyPDOData1ToIOByte arrayInterface with the inputs of function blocks L_IOPDO15 or L_IOPDO610 for the
abyPDOData2ToIOByte arrayInterface with the inputs of function blocks L_IOPDO15 or L_IOPDO610 for the
ByteSpecify start or comparison values to the counter module.
Example:
The module was parameterised as 2 x 32 bit counter. If the counter is to start at a
count value 77, this value must be available at input byByte2_Counter01.
byByte0_Counter02
....
byByte7_Counter11
(^ 6−10)
1 Last count value is stored
2 Restart at count value 0 (default)
transfer of information to the counter module.
transfer of information to the counter module.
5−12
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Function blocks
5.5L_IOCounterDataFromIO − Counter function
5.5L_IOCounterDataFromIO − Counter function
Function block L_IOCounterDataFromIO supplies the counter module’s counting information.
· Counting information from 4 counters with a 16−bit data width is supplied at the following
abyPDO_DataFromIOByte arrayInterface with the outputs of function blocks L_IOPDO15 or L_IOPDO610 for the
transfer of information from the counter module.
Outputs ð(Variable type: VAR_OUTPUT)
IdentifierData typeValue/meaning
wCounter01_16Bit
Word16−bit width counter data
wCounter02_16Bit
wCounter11_16Bit
wCounter12_16Bit
dwCounter0_32Bit
Double word32−bit width counter data
dwCounter1_32Bit
L
LenzeIOSystem.lib EN 1.7
5−13
Function library LenzeIOSystem.lib
Function blocks
5.6L_IOCounterDIModuleDataToIO − Counter function
5.6L_IOCounterDIModuleDataToIO − Counter function
The counter function of module EPM−T430 is set via process data block
L_IOCounterDIModuleDataToIO. Depending on the function settings for the inputs, the counter
may be preassigned values for counting.
In addition, function block L_IOCounterDIModuleDataToIO is used for start, stop, set, reset, etc.
The L_IOAInModule function block corresponds to an analog input module (EPM−T310 / T311 /
T312) and divides the data sent by the I/O system into the channel information 1 − 4.
The input data are represented in the integer format.
abyPDO_DataFromIOByte arrayAnalog input information of channels 1 − 4
Outputs ð(Variable type: VAR_OUTPUT)
IdentifiersData typeValue/meaning
nCH1
...
nCH4
IntegerAnalog inputs:
4 x 2 bytes data = 1 AI module
Default ±10V function code 2B
h
5−22
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Function blocks
5.15L_IOAOutModule − Signal conversion
5.15L_IOAOutModule − Signal conversion
The L_IOAOutModule function block corresponds to an analog output module (EPM−T320 / T321 /
T322) and bundles the information of channels 1 − 4 into a transmission object, which is sent to the
I/O system.
The output data are represented in the integer format.
abyPDO_DataFromIOByte arrayAnalog output information of channels 1 − 4
ByteAnalog outputs:
4 x 2 bytes data = 1 AO module
abyPDO_DataToIO
Default ±10 = function code 01
^ 6−4
h
L
LenzeIOSystem.lib EN 1.7
5−23
Function library LenzeIOSystem.lib
Function blocks
5−24
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Appendix
6.1Signal functions for analog inputs EPM−T310
6Appendix
6.1Signal functions for analog inputs EPM−T310
Parameter
bytes 2/3/4/5
00
h
01
h
02
h
03
h
04
h
05
h
05
h
07
h
08
h
09
h
0A
h
0B
h
0C
h
0D
h
0E
h
0F
h
10
h
11
h
12
h
13
h
14
h
15
h
18
h
19
h
1A
h
1B
h
1C
h
1D
h
27
h
29
h
2A
h
3B
h
Signal functionSignal rangeFormatTolerance
Parameter data in module not overwritten
Temperature measuring
with two−wire connection
(complement on two)
Resistance measuring with
two−wire connection
Temperature measuring
with four−wire connection
(complement on two)
with PT100−200.0{0.1 °C}+850.0
A
with PT1000 −200.0{0.1 °C}+500.0±1 °C
with NI100−50.0{0.1 °C}+250.0±1 °C
with NI1000 −50.0{0.1 °C}+250.0±1 °C
at 60 W0
0
at 600 W0
0
at 3000 W0
0
at 6000 W0
0
{0.01 W}
{1 dec}
{0.01 W}
{1 dec}
{0.01 W}
{1 dec}
{0.01 W}
{1 dec}
+60.00
32767
+600.00
32767
+3000.00
32767
+6000.00
32767
with PT100−200.0{0.1 °C}+850.0
A
A
with PT1000 −200.0{0.1 °C}+500.0±0.5 °C
with NI100−50.0{0.1 °C}+250.0±0.5 °C
2)
±1 °C
2)
2)
2)
±0.2 % of limit value
±0.2 % of limit value
±0.2 % of limit value
±0.2 % of limit value
±0.5 °C
with NI1000 −50.0{0.1 °C}+250.0±0.5 °C
Resistance measuring with
two−wire connection
at 60 W0{0.01 W}+60.00
at 600 W0{0.01 W}+600.00±0.05 % of limit value
A
±0.1 % of limit value
at 3000 W0{0.01 W}+3000.00±0.05 % of limit value
Temperature measuring
with thermocouple and
external compensation
(complement on two)
with type J−210.0{0.1 °C}+850.0
with type K−270.0{0.1 °C}+1200.0±1.5 °C
3)
with type N−200.0{0.1 °C}+1300.0±1.5 °C
with type R−50.0{0.1 °C}+1760.0±4 °C
A
±1 °C
with type T−270.0{0.1 °C}+400.0±1.5 °C
with type S−50.0{0.1 °C}+1760.0±5 °C
Temperature measuring
with thermocouple and
internal compensation
(complement on two)
with type J−210.0{0.1 °C}+850.0
with type K−270.0{0.1 °C}+1200.0±2 °C
4)
with type N−200.0{0.1 °C}+1300.0±2 °C
with type R−50.0{0.1 °C}+1760.0±5 °C
A
±1.5 °C
with type T−270.0{0.1 °C}+400.0±2 °C
with type S−50.0{0.1 °C}+1760.0±5 °C
Voltage measuring
(complement on two)
0 ... 50 mV
0
0
{0.01 mV}
{1 dec}
+50.00
27648
A±0.1 % of limit value
Lower range limit:–
Upper range limit:+59.25 mV
32767 dec
Voltage measuring
(complement on two)
±4 V
−4.00
−27648
{0.01 V}
{1 dec}
+4.00 V
27648 dec
A±0.05 % of limit value
Lower range limit:−4.74 V
−32767 dec
Upper range limit:+4.74 V
32767 dec
Voltage measuring
(complement on two)
±400 mV
−400
−27648
{1 mV}
{1 dec}
+400
27648
A±0.1 % of limit value
Lower range limit:−474 mV
−32767 dec
Upper range limit:+474 mV
32767 dec
Voltage measuring
(complement on two)
±10 V−10.00
−16384
{0.01 V}
{1 dec}
+10.00
16384
B±0.2 % of limit value
1)
2)
2)
2)
2)
L
LenzeIOSystem.lib EN 1.7
6−1
Function library LenzeIOSystem.lib
Appendix
6.1Signal functions for analog inputs EPM−T310
Parameter
bytes 2/3/4/5
2C
h
2D
h
2E
h
32
h
33
h
35
h
36
h
37
h
38
h
Current measuring
(complement on two)
Current measuring
(complement on two)
Current measuring4 ... 20 mA
Resistance measuring with
four−wire connection
±20 mA
4 ... 20 mA
at 6000 W0
at 6000 W0
at 60 W0
at 600 W0
at 3000 W0
at 6000 W0
Lower range limit:−11.85 V
Upper range limit:+11.85 V
−20.00
−27648
Lower range limit:−23.70 mA
Upper range limit:+23.70 mA
4.00
0
Lower range limit:1.185 mA
Upper range limit:+22.96 mA
4.00
0
Lower range limit:1.185 mA
Upper range limit:+22.96 mA
0
0
0
0
0
0
{0.01 mA}
{1 dec}
{0.01 mA}
{1 dec}
{0.01 mA}
{1 dec}
{0.01 W}
{1 dec}
{0.01 W}
{1 dec}
{0.01 W}+6000.00
{0.01 W}
{1 dec}
{0.01 W}
{1 dec}
{0.01 W}
{1 dec}
−20480 dec
20480 dec
+20.00
27648
−32767 dec
+32767 dec
20.00
27648
−4864 dec
+32767 dec
20.00
16384
−2882 dec
+20480 dec
+6000.00
32767 dec
+6000.00
6000 dec
6000 dec
+600.00
6000 dec
+3000.00
30000 dec
+6000.00
6000 dec
FormatSignal rangeSignal function
Tolerance
A±0.05 % of limit value
A±0.05 % of limit value
B±0.2 % of limit value
A
±0.05 % of limit value
±0.05 % of limit value
±0.2 % of limit value
±0.1 % of limit value
±0.1 % of limit value
±0.1 % of limit value
1)
2)
2)
2)
2)
6−2
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Appendix
6.1Signal functions for analog inputs EPM−T310
Parameter
bytes 2/3/4/5
3A
h
3B
h
3D5
h
3E
h
3F
h
57
h
58
h
59
h
5A
h
5C
h
5D
h
FF
h
1)
The tolerance values were established at 25 °C ambient temperature and 15 conversions/s. No sensor inaccuracies were taken into
consideration.
2)
Contact and line resistances were not taken into consideration.
3)
Reference junction compensation to be effected externally.
4)
Reference junction compensation is effected internally, taking into consideration the terminal temperature. Connect the thermocouple
conductors directly to the terminal using a thermocouple extension cable if necessary.
Current measuring
(complement on two)
Voltage measuring
(complement on two)
Resistance measuring with
four−wire connection
Voltage measuring0 ... 50 mV
Voltage measuring
(complement on two)
Voltage measuring
(complement on two)
Voltage measuring
(complement on two)
Current measuring
(complement on two)
Current measuring
(complement on two)
Analog input deactivated
±20 mA−20.00
±10 V−10.00
at 60 W0
at 600 W0
at 3000 W0
±10 V
±4 V
±400 mV
±20 mA
4 ... 20 mA
−16384
Lower range limit:−23.70 mA
Upper range limit:+23.70 mA
−16384
Lower range limit:−12.5 V
Upper range limit:+12.5 V
0
0
0
0
0
Upper range limit:+59.25 V
−10.00
−10000
Lower range limit:−11.85 V
Upper range limit:+11.85 V
−4.00
−40000
Lower range limit:−4.74 V
Upper range limit:+4.74 V
−400
−40000
Lower range limit:−474 mV
Upper range limit:+474 mV
−20.00
−20000
Lower range limit:−23.70 mA
Upper range limit:+23.70 mA
4.00
0
Lower range limit:1.185 mA
Upper range limit:+22.96 mA
{0.01 mA}
{1 dec}
{0.01 V}
{1 dec}
{0.01 W}
{1 dec}
{0.01 W}
{1 dec}
{0.01 W}
{1 dec}
{0.01 mV}
{1 dec}
{0.01 V}
{1 dec}
{0.01 V}
{1 dec}
{1 mV}
{1 dec}
{0.01 mA}
{1 dec}
{0.01 mA}
{1 dec}
−19456 dec
+19456 dec
−20480 dec
20480 dec
6000 dec
+600.00
6000 dec
+3000.00
30000 dec
5925 dec
−11850 dec
11850 dec
−47400 dec
47400 dec
−47400 dec
47400 dec
−23700 dec
+23700 dec
−2815 dec
+22960 dec
FormatSignal rangeSignal function
+20.00
16384
+10.00
16384
+60.00
+50.00
5000
+10.00
10000
+4.00 V
40000
+400
40000
+20.00
20000
20.00
16000
Tolerance
A±0.05 % of limit value
B±0.2 % of limit value
A
±0.1 % of limit value
±0.05 % of limit value
±0.05 % of limit value
A±0.1 % of limit value
A±0.05 % of limit value
A±0.05 % of limit value
A±0.1 % of limit value
A±0.05 % of limit value
A±0.05 % of limit value
1)
L
LenzeIOSystem.lib EN 1.7
6−3
Function library LenzeIOSystem.lib
Appendix
6.2Signal functions for analog outputs EPM−T320
6.2Signal functions for analog outputs EPM−T320
Parameter
bytes 2/3/4/5
00
h
01
h
02
h
05
h
09
h
0A
h
0D
h
03
h
04
h
06
h
Signal functionSignal rangeSignal
No signal emitted at output
Voltage signal output±10 V
Voltage signal output+1 ... +5 V
Voltage signal output0 ... +10 V
Voltage signal output
(complement on two)
Voltage signal output
(complement on two)
Voltage signal output
(complement on two)
Current signal output±20 mA
Current signal output4 ... 20 mA
Current signal output0 ... 20 mA
±10 V
+1 ... +5 V
0 ... +10 V
−10.00
−16384
Lower range limit:−11.85 V
Upper range limit:+11.85 V
1.0
0
Lower range limit:0 V
Upper range limit:+6.0 V
0
0
Lower range limit:–
Upper range limit:+12.5 V
−10.00
−27648
Lower range limit:−11.85 V
Upper range limit:+11.84 V
1.00
0
Lower range limit:0 V
Upper range limit:+5.75 V
0
0
Lower range limit:–
Upper range limit:+11.5 V
−20.00
−16384
Lower range limit:−23.70 mA
Upper range limit:+23.70 mA
4.00
0
Lower range limit:0 mA
Upper range limit:+23.70 mA
0
0
Lower range limit:—
Upper range limit:+23.70 mA
{0.01 V}
{1 dec}
{0.1 V}
{1 dec}
{0.1 V}
{1 dec}
{0.01 V}
{1 dec}
{0.01 V}
{1 dec}
{0.1 V}
{1 dec}
{0.01 mA}
{1 dec}
{0.01 mA}
{1 dec}
{0.01 mA}
{1 dec}
−20480 dec
20480 dec
20480 dec
20480 dec
20480 dec
+10.00 V
27648 dec
−32767 dec
32767 dec
−6912 dec
32767 dec
32767 dec
−20480 dec
+20480 dec
−4096 dec
+20480 dec
+20480 dec
resolution
+10.00
16384
+5.0
16384
+10.0
16384
+5.00
27648
+10.0
27648
+20.00
16384
20.00
16384
+20.00
16384
Tolerance
B±0.2 %
B±0.05 %
B±0.2 %
A±0.05 %
A±0.05 %
A±0.2 %
B±0.2 %
B±0.2 %
B±0.2 %
1)
6−4
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Appendix
6.2Signal functions for analog outputs EPM−T320
Parameter
bytes 2/3/4/5
0B
h
0C
h
0E
h
1)
The tolerance values were established at 25 °C ambient temperature and 15 conversions/s and are related to the limit value.
Current signal output
(complement on two)
Current signal output
(complement on two)
Current signal output
(complement on two)
±20 mA
4 ... 20 mA
0 ... 20 mA
Signal rangeSignal function
−20.00
−27648
Lower range limit:−23.70 mA
Upper range limit:+23.70 mA
4.00
0
Lower range limit:0 mA
Upper range limit:+22.96 mA
0
0
Lower range limit:–
Upper range limit:+22.96 mA
{0.01 mA}
{1 dec}
−32767 dec
+32767 dec
{0.01 mA}
{1 dec}
−5530 dec
+32767 dec
{0.01 mA}
{1 dec}
+32767 dec
+20.00
27648
20.00
27648
20.00
27648
Signal
resolution
A±0.05 %
A±0.05 %
A±0.2 %
Tolerance
1)
L
LenzeIOSystem.lib EN 1.7
6−5
Function library LenzeIOSystem.lib
Appendix
6.3Signal functions for analog inputs and outputs EPM−T330
6.3Signal functions for analog inputs and outputs EPM−T330
Input range (channels 0, 1)
Parameter
bytes 2/3/4/5
00
h
3B
h
75
h
28
h
7A
h
7D
h
3A
h
76
h
2C
h
2D
h
Signal functionSignal rangeFormatTolerance
Parameter data in module not overwritten
Voltage measuring
(complement on two)
±10 V
−10.00
−16384
{0.01 V}
{1 dec}
+10.00
+16384
Lower range limit:−12.50 V
−20480
dec
±0.2 % of limit value
B
Upper range limit:+12.50 V
+20480
Voltage measuring0...10 V
0.00
0
{0.01 V}
{1 dec}
Lower range limit:−
dec
+10.00
+16384
±0.4 % of limit value
B
Upper range limit:+12.50 V
+20480
Voltage measuring
(complement on two)
±10 V
−10.00
−27648
{0.01 V}
{1 dec}
Lower range limit:−11.76 V
+10.00
+27648
−32512
dec
dec
±0.2 % of limit value
A
Upper range limit:+11.76 V
+32511
Voltage measuring1 ... 5V
+1.00
0
{0.01 V}
{1 dec}
Lower range limit:0.00 V
+5.00
+27648
−6912
dec
dec
±0.6 % of limit value
A
Upper range limit:+5.704 V
+32511
Voltage measuring0...10 V
0.00
0
{0.01 V}
{1 dec}
Lower range limit:−
dec
+10.00
+27648
±0.4 % of limit value
A
Upper range limit:+11.76 V
+32511
Current measuring
(complement on two)
±20 mA
−20.00
−16384
{0.01 mA}
{1 dec}
Lower range limit:−25.00 mA
+20.00
+16384
−20480
dec
dec
±0.3 % of limit value
B
Upper range limit:+25.00 mA
+20480
Current measuring0 ... 20 mA
0.00
0
{0.01 mA}
{1 dec}
Lower range limit:−
dec
+20.00
+16384
±0.6 % of limit value
B
Upper range limit:+25.00 mA
+20480
Current measuring
(complement on two)
±20 mA
−20.00
−27648
{0.01 mA}
{1 dec}
Lower range limit:−23.51 mA
+20.00
+27648
−32512
dec
dec
±0.3 % of limit value
A
Upper range limit:+23.51 mA
+32511
Current measuring
(complement on two)
4 ... 20 mA
+4.00
0
{0.01 mA}
{1 dec}
Lower range limit:+1.18 mA
+20.00
+27648
−4864
dec
dec
±0.8 % of limit value
A
Upper range limit:+22.81 mA
+32511
dec
1)
6−6
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Appendix
6.3Signal functions for analog inputs and outputs EPM−T330
Parameter
bytes 2/3/4/5
7E
h
FF
h
Current measuring0 ... 20 mA
Analog input deactivated
1)
The tolerance values were established at 25 °C ambient temperature and 15 conversions/s. No sensor
inaccuracies were taken into consideration.
Output range (channels 2, 3)
Parameter
bytes 2/3/4/5
00
h
01
h
02
h
05
h
09
h
0A
h
0D
h
03
h
Signal functionSignal rangeFormatTolerance
Parameter data in module not overwritten
Voltage signal output±10 V
Voltage signal output1 ... 5V
Voltage signal output0...10 V
Voltage signal output
(complement on two)
Voltage signal output
(complement on two)
Voltage signal output0...10 V
Current signal output±20 mA
±10 V
1 ... 5V
0.00
0
{0.01 mA}
{1 dec}
+20.00
+27648
Lower range limit:−
Upper range limit:+23.52 mA
+32511
dec
−10.00
−16384
{0.01 V}
{1 dec}
+10.00
+16384
Lower range limit:−12.50 V
−20480
dec
Upper range limit:+12.50 V
+20480
dec
+1.00
0
{0.01 V}
{1 dec}
+5.00
+16384
Lower range limit:0.00 V
−4096
dec
Upper range limit:+6.00 V
+20480
0.00
0
{0.01 V}
{1 dec}
dec
+10.00
+16384
Lower range limit:−
Upper range limit:+12.50 V
+20480
dec
−10.00
−27648
{0.01 V}
{1 dec}
+10.00
+27648
Lower range limit:−11.76 V
−32512
dec
Upper range limit:+11.76 V
+32511
dec
+1.00
0
{0.01 V}
{1 dec}
+5.00
+27648
Lower range limit:0.00 V
−6912
dec
Upper range limit:+5.704 V
+32511
dec
0.00
0
{0.01 V}
{1 dec}
+10.00
+27648
Lower range limit:−
Upper range limit:+11.76 V
+32511
dec
−20.00
−16384
{0.01 mA}
{1 dec}
+20.00
+16384
Lower range limit:−25.00 mA
−20480
dec
Upper range limit:+25.00 mA
+20480
dec
FormatSignal rangeSignal function
Tolerance
1)
±0.6 % of limit value
A
1)
±0.2 % of limit value
B
±0.6 % of limit value
B
±0.4 % of limit value
B
±0.2 % of limit value
A
±0.6 % of limit value
A
±0.4 % of limit value
A
±0.3 % of limit value
B
L
LenzeIOSystem.lib EN 1.7
6−7
Function library LenzeIOSystem.lib
Appendix
6.3Signal functions for analog inputs and outputs EPM−T330
Parameter
bytes 2/3/4/5
04
h
06
h
0B
h
0C
h
0E
h
FF
h
Current signal output4 ... 20 mA
Current signal output0 ... 20 mA
Current signal output
(complement on two)
Current signal output
(complement on two)
Current signal output0 ... 20 mA
Analog output deactivated
±20 mA
4 ... 20 mA
+4.00
0
Lower range limit:+0.00 mA
Upper range limit:+24.00 mA
0.00
0
Lower range limit:−
Upper range limit:+25.00 mA
−20.00
−27648
Lower range limit:−23.52 mA
Upper range limit:+23.52 mA
+4.00
0
Lower range limit:+0.00 mA
Upper range limit:+22.81 mA
0.00
0
Lower range limit:−
Upper range limit:+23.52 mA
{0.01 mA}
{1 dec}
{0.01 mA}
{1 dec}
{0.01 mA}
{1 dec}
{0.01 mA}
{1 dec}
{0.01 mA}
{1 dec}
+20.00
+16384
−4096
+20480
+20.00
+16384
+20480
+20.00
+27648
−32512
+32511
+20.00
+27648
−6912
+32511
+20.00
+27648
+32511
dec
dec
dec
dec
dec
dec
dec
dec
FormatSignal rangeSignal function
Tolerance
±0.8 % of limit value
B
±0.6 % of limit value
B
±0.3 % of limit value
A
±0.8 % of limit value
A
±0.6 % of limit value
A
1)
1)
The tolerance values were established at 25 °C ambient temperature and 15 conversions/s. No sensor
inaccuracies were taken into consideration.
16Frequency measuringRESCLKSTARTSTOP––··–ü
17Measuring the periodRESCLKSTART STOP––··–ü
18Frequency measuring
RESCLKSTARTSTOP––··–ü
(output counter runs/stops)
19Measuring the period
RESCLKSTARTSTOP––··–ü
(output counter runs/stops)
2 counters01
6Measuring the pulse width
(f
50 kHz, counting direction selectable)
ref
20Measuring the pulse width
(f
programmable, counting direction
ref
selectable)
21Measuring the pulse width
(f
programmable, counting direction
ref
upwards)
22Measuring the pulse width
(f
programmable, counting direction
ref
downwards)
RESPULSEDIRRESPULSEDIR––––
RESPULSEDIRRESPULSEDIR––––
RESPULSEDIRRESPULSEGATE––––
RESPULSEDIRRESPULSEGATE––––
2 counters01
232 × 32 bit counters
RESCLKGATERESCLKGATE–––ü
(counting direction upwards, set function)
242 × 32 bit counters
RESCLKGATERESCLKGATE–––ü
(counting direction upwards, set function)
252 × 32 bit counters
RESCLKGATERESCLKGATE–––ü
(counting direction upwards, reset function)
262 × 32 bit counters
RESCLKGATERESCLKGATE–––ü
(counting direction upwards, reset function)
2 counters01
2732 bit counterG/RESûCLKDIRG/RESûCLKDIR··––
28Encoder 1 edgeG/RESûABG/RESûAB··––
6−10
LenzeIOSystem.lib EN 1.7
L
Function library LenzeIOSystem.lib
Appendix
6.5Selecting the counter modes EPM−T410
ModeCompare
[hex]
[dec]
1D
1E
1F
20
21
22
29Encoder 2 edgesG/RESûABG/RESûAB··––
h
30Encoder 4 edgesG/RESûABG/RESûAB··––
h
2 counters01
312 × 32 bit counters (counting direction
h
h
h
h
downwards)
322 × 32 bit counters (counting direction
downwards)
332 × 32 bit counters (counting direction
downwards)
342 × 32 bit counters (counting direction
downwards)
RESûCLKGATERESûCLKGATE··–ü
RESûCLKGATERESûCLKGATE··–ü
RESûCLKGATERESûCLKGATE··üü
RESûCLKGATERESûCLKGATE··üü
·Digital output may signal an event.
üFunction available.
–No function / function not available.
AEncoder signal A
Auto ReloadAuto Reload causes the counter to accept a preset value as soon
as the counter reading matches the Compare register content.
BEncoder signal B
Compare Load You may use Compare Load to specify a counter limit value to
trigger an output or to restart the counters via Auto Reload when it
is reached.
CLKClock signal of a linked encoder
HIGH: Starts or stops the counting
DIRIndicates counting direction depending on signal level.
LOW: Upcounter
HIGH: Downcounter
GATEGate signal level−triggered
HIGH: Pulses are measured
G/RESûGate signal level−triggered and reset signal edge−triggered
HIGH: Pulses are measured
LOW−HIGH edge: Resets one or both counter(s)
PULSEThe pulse width of the supplied signal is measured with an internal
time base
RESReset signal level−triggered
HIGH: Resets one or both counter(s)
RESûReset signal edge−triggered
LOW−HIGH edge: Resets one or both counter(s)
STARTStart signal edge−triggered
STOPStop signal edge−triggered