Professional Documents
Culture Documents
Function Block
IL_AI_8_V2_1x
Table of Contents
1 Introduction................................................................................................................. 3
1.1 Scope of Validity ..................................................................................................... 3
1.2 General ................................................................................................................... 3
1.3 Block Data............................................................................................................... 3
1.4 Block Call ................................................................................................................ 3
3 Index ............................................................................................................................ 9
VAS AE Software Engineering
Function Block for IL_AI8_V2_1x FB A-3-0033/-02-
Page 3 of 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.
Block number:
Block name: IL_AI8_V2_1x
Block type: Function block
Version: 2.1x
Author: PxC JPO
Controller variants: All controllers that support PC WORX V5.0x
Terminal types: 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.
UDT_IL_AI_8_Para
Name Type Description
1
Filter BYTE Filter (value 0 to 3), user setting, see data sheet .
Range INT 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 .
Standardization BOOL TRUE: Standardization enabled, user setting
REAL Upper limit value, user setting
LowLimit REAL Lower limit value, user setting
An alternative to writing the parameter from the program to the array is to connect a
preceding function block.
1
IB IL AI8/SF-2MBD Order No. 2855648
IB IL AI8/SF Order No. 2727831
IB IL AI8/IS Order No. 2742748
VAS AE Software Engineering
Function Block for IL_AI8_V2_1x FB A-3-0033/-02-
Page 7 of 9
UDT_IL_AI_8_Data
Name Type Description
Value_PD WORD Measured value of a channel.
Value REAL Measured value of a channel.
Error BOOL Channel indicates an error.
2
DeviceDiagCode WORD Error code for the channel (IL format), see data sheet
NDR BOOL 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 Meaning
C010hex Timeout during communication
AddDiagCode Meaning
0001hex Module not responding or indicates an error
Range 0-6 at terminal IB IL AI8/IS
C014hex Filter range limit exceeded
AddDiagCode Meaning
ccxxhex cc = channel, xx = range value
C017hex Range limit exceeded
AddDiagCode Meaning
ccxxhex cc = channel, xx = range value
C018hex LowLimit >= HighLimit
AddDiagCode Meaning
00CChex cc = channel
0000hex Block not active
8000hex 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.
VAS AE Software Engineering
Function Block for IL_AI8_V2_1x FB A-3-0033/-02-
Page 8 of 9
3 Index
0 I
8000hex .............................................................7 L
LowLimit...................................................... 6, 7
A
Activate ................................................3, 4, 5, 7 M
AddDiagCode ..................................3, 4, 5, 6, 7
Author ..............................................................3 Module types................................................... 3
B N
C OutputAddress1 .............................................. 3
OutputAddress2 .......................................... 3, 6
C010hex ............................................................7
C014hex ............................................................7
C017hex ............................................................7 P
C018hex ............................................................7
Controller variants ...........................................3 Parameter ................................................... 3, 6
Parameters ......................................... 4, 5, 6, 7
PDOut ............................................................. 6
D
Data .........................................................3, 5, 7 R
DeviceDiagCode......................................4, 5, 7
DiagCode.........................................3, 4, 5, 6, 7 Range ......................................................... 6, 7
Ready...................................................... 3, 4, 6
E
S
Error.....................................................3, 5, 6, 7
Select ...................................................... 3, 4, 5
SelectValid .............................................. 3, 4, 6
F Standardization ........................................... 4, 6
Filter.............................................................6, 7
T
HighLimit......................................................6, 7
VAS AE Software Engineering
Function Block for IL_AI8_V2_1x FB A-3-0033/-02-
Page 9 of 9
U V