Analog unit instructions
1130
Part IV Tool Instructions
ExpansionUnitNumberToIO
WordOffset_FPX_FP0
Calculates the IO offset of analog units for FP-X
REFERENCE
For technical information, please refer to the manual FP0 RTD Unit ACGM0159 on your FPWIN Pro
installation CD.
PLC types see see page 1320
Input variable Data type Function
iFPX_ExpansionUnitNumber FP-X expansion unit number 1–8
iFP0_ExpansionUnitNumber
INT
FP0 expansion unit number 1–3
Output variable
iIOWordOffset INT Offset of the I/O word (WX/WY)
Description
This instruction calculates the word offset using an FP0 analog unit connected to an FP-X or
FP-X0.
Data types
Example
In this example the function has been programmed in ladder diagram (LD) and structured text
(ST).The same POU header is used for all programming languages.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
This instruction evaluates the IO word offset for an FP0 analog unit connected to an FP-X CPU.
The input iFPX_ExpansionUnitNumber is the FP-X unit position number (1–8) to which the FP0
expansion adapter is connected. The input iFP0_ExpansionUnitNumber is the FP0 analog unit
position number (1–3) connected next to the FP0 expansion adapter.