Function Block
IL_AI_8_V2_1x
for the PC WORX V5.0x Control System
Table of Contents
1
1.1
1.2
1.3
1.4
Introduction................................................................................................................. 3
Scope of Validity ..................................................................................................... 3
General ................................................................................................................... 3
Block Data............................................................................................................... 3
Block Call ................................................................................................................ 3
Index ............................................................................................................................ 9
1 Introduction
1.1
Scope of Validity
This manual is valid for Version 2.1x (x = 0 - 9).
1.2
General
The IL_AI8 block is a function block used to parameterize and standardize measured
values for the terminal types listed in the Block Data below.
A plausibility check is performed on the parameter data entered with this block.
Errors detected by the function block are displayed in the diagnostic register of the
function block. These include device error messages and exceeding parameter data
limit values.
A block call is required for each Inline terminal.
Knowledge of the INTERBUS Inline terminals used and PC WORX is required.
1.3
Block Data
Block number:
Block name:
Block type:
Version:
Author:
Controller variants:
Terminal types:
1.4
Block Call
IL_AI8_V2_1x
Function block
2.1x
PxC JPO
All controllers that support PC WORX V5.0x
IB IL AI8/SF 2MBD
Order No. 2855648
IB IL AI8/SF
Order No. 2727831
IB IL AI8/IS (only current measuring range) Order No. 2742748
2 Block Description
2.1
Operating Modes
2.1.1 Enabling
In order to use the block, integrate it into your application. A block call is required for
each analog terminal. Activate it after the first PLC cycle. This is done by controlling the
Activate input variable from FALSE to TRUE. The channels are parameterized with a
positive signal edge at Activate. As soon as this has been completed successfully, this
is indicated by Ready FALSE => TRUE.
Please note that at least one cycle is required with Activate = FALSE for the internal
variables to be initialized.
If the module is stopped (voltage failure, bus system stopped, etc.) it may be necessary
to repeat parameterization. Activate should be controlled as described above.
As soon as all the selected channels have been read in without any errors, this is
indicated by the SelectValid output parameter = TRUE. If a channel is read in with an
error (e.g., limit value exceeded), the status of the SelectValid output parameter =
FALSE. The error cause can be determined using the DeviceDiagCode block
parameter (see Section 2.4.2).
The measured values, validity indication, and channel-specific error messages for
channels are indicated and output following activation of the block in the
UTD_IL_AI8_Data structure of the Data output parameter. The values read by the
terminal are analyzed by the function block and error messages are returned in the
Error or DeviceDiagCode variable. Measured values are standardized in the Value
variables as a real value according to the limit values. The process data word (in IL
format) for the channel is stored in the Value_PD variable. The NDR variable (FALSE
=> TRUE) indicates that a new measured value has been read for a cycle. If an error is
detected for a channel by the function block (e.g., limit value exceeded), the Error bit is
controlled from FALSE to TRUE. DeviceDiagCode contains the error code in IL format.
Please note that the last valid measured value is still displayed.
2.2
Input Parameters
Input Parameters
Name
xActivate
Type
BOOL
bSelect
BYTE
udtParameter
dwInputAddress
ANL_ARR_IL_AI_8_Para
DWORD
Description
Block activation.
This parameter should be controlled by a value
that represents the status of connected I/O
devices (active/not active). This ensures that an
incorrect diagnostic message is not generated
by the block when I/O devices are disconnected.
Activate = TRUE:
If block processing is activated all the selected
channels are read. The DiagCode and
AddDiagCode diagnostic registers contain the
status of the function and the terminal.
By activating the individual bits from 0 - 7
(correspond to channels 1 to 8), automatic
reading in of the individual channels is activated.
Channel input parameter (see Section 2.4.1).
Process data input address for the terminal.
2.3
Output Parameters
Output Parameters
Description
Name
Type
xReady
xError
BOOL
BOOL
wDiagCode
wAddDiagCode
xSelectValid
udtData
WORD
WORD
BOOL
ANL_ARR_IL_AI_8_Para
dwOutputAddress
DWORD
2.4
Block Parameters
Type
BYTE
INT
Standardization
BOOL
REAL
REAL
LowLimit
Description
1
Filter (value 0 to 3), user setting, see data sheet .
Measuring range (value 0 to 15), user setting, see data
1
sheet .
Measuring range 8-10, 12+13 only allowed for the IB IL
1
AI8/IS terminal, see data sheet .
TRUE: Standardization enabled, user setting
Upper limit value, user setting
Lower limit value, user setting
An alternative to writing the parameter from the program to the array is to connect a
preceding function block.
IB IL AI8/SF-2MBD
IB IL AI8/SF
IB IL AI8/IS
Type
WORD
REAL
BOOL
WORD
BOOL
Description
Measured value of a channel.
Measured value of a channel.
Channel indicates an error.
2
Error code for the channel (IL format), see data sheet
TRUE = New measured value present.
An alternative to calling the measured value information for the program from the array is to
connect to a subsequent function block.
2.5
Diagnostics
DiagCode
C010hex
C014hex
C017hex
C018hex
0000hex
8000hex
Meaning
Timeout during communication
AddDiagCode
Meaning
0001hex
Module not responding or indicates an error
Range 0-6 at terminal IB IL AI8/IS
Filter range limit exceeded
AddDiagCode
Meaning
ccxxhex
cc = channel, xx = range value
Range limit exceeded
AddDiagCode
Meaning
ccxxhex
cc = channel, xx = range value
LowLimit >= HighLimit
AddDiagCode
Meaning
00CChex
cc = channel
Block not active
Block active
If several errors occur simultaneously, only the first error is indicated initially. The other error
messages are displayed once the first error has been removed and acknowledged. The error
is reset by generating a positive edge at Activate.
This process is repeated until all the errors have been removed.
3 Index
0
0000hex .............................................................7
InputAddress................................................... 5
InputAddress1................................................. 3
InputAddress2................................................. 3
8
8000hex .............................................................7
L
LowLimit...................................................... 6, 7
Activate ................................................3, 4, 5, 7
AddDiagCode ..................................3, 4, 5, 6, 7
Author ..............................................................3
Block name......................................................3
Block number...................................................3
Block type ........................................................3
NDR ............................................................ 5, 7
OutputAddress1 .............................................. 3
OutputAddress2 .......................................... 3, 6
C010hex ............................................................7
C014hex ............................................................7
C017hex ............................................................7
C018hex ............................................................7
Controller variants ...........................................3
Module types................................................... 3
P
Parameter ................................................... 3, 6
Parameters ......................................... 4, 5, 6, 7
PDOut ............................................................. 6
D
Data .........................................................3, 5, 7
DeviceDiagCode......................................4, 5, 7
DiagCode.........................................3, 4, 5, 6, 7
R
Range ......................................................... 6, 7
Ready...................................................... 3, 4, 6
E
S
Error.....................................................3, 5, 6, 7
F
Filter.............................................................6, 7
H
HighLimit......................................................6, 7
Select ...................................................... 3, 4, 5
SelectValid .............................................. 3, 4, 6
Standardization ........................................... 4, 6
T
Table of contents ............................................ 2
UDT_IL_AI_8_Data.........................................7
UDT_IL_AI_8_Para.........................................6
UDT_TEMP_4_8_RTD_Para ..................4, 5, 6
UTD_IL_AI_8_Data .........................................7
UTD_TEMP_4_8_RTD_Data ..........................5
Value ........................................................... 5, 7
Value_PD .................................................... 5, 7
Version ............................................................ 3