Analog unit instructions
1112
Part IV Tool Instructions
Input variable Data type Function
iIOWordOffset
INT
The offset of the first WX/WY address of the RTD unit according
to its position.
FP0R, FP0, FP-Sigma: (use
ExpansionUnitToIOWordOffset_FP0 (see page 1128)) or
unit 1 => address 2, unit 2 => address 4, unit 3 => address 6
FP-X: (use Expa
nsionUnotToIOWordOffset_FPX_FP0 (see page
1129)) or
FP0 adapter address of
unit 1
address of
unit 2
address of
unit 3
1st unit 30 32 34
2nd unit 40 42 44
3rd unit 50 52 54
4th unit 60 62 64
5th unit 70 72 72
6th unit 80 82 84
7th unit 90 92 94
8th unit 100 102 104
bChannel0HighResolution–b
Channel5HighResolution
sets the resolution at the corresponding channel:
FALSE: low resolution
TRUE: high resolution
Do not change this value during runtime. If you change this value
during runtime the channel value will be wrong for about one
second.
bTemperatureInFahrenheit sets the temperature measurement
FALSE: °C
TRUE: °F
bChannel012DIPSwitchSetTo
Resistor
bChannel345DIPSwitchSetTo
Resistor
BOOL
settings according to the RTD device
FALSE if you have set the DIP switch to Pt100, Pt1000,
Ni1000
TRUE if you have set the DIP switch to resistor
Output variable
rInChannel0–rInChannel5
REAL
stores the digital data from the corresponding input channels of
the FP0-RTD6 unit as REAL values
Temperature low resolution 0.1 °C or °F according to settings:
e.g. 20.12°C -> channel value 20.1 (outside range 819.1)
Temperature high resolution 0.01 °C or °F according to settings
e.g. 20.12°C -> channel value 20.12 (outside range 81.91)
Resistor low resolution 1Ω: 20Ω-2200Ω->channel value 20-2200
(outside range 16383)
Resistor high resolution 0.1Ω: 20Ω-1630Ω->channel value
20.0-1630.0 (outside range 1638.3)
Use ExpansionUnitNumberToIOWordOffset_FP0 (see page 1125) to calculate the word offset of
the analog unit connected to an FP0.
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.
LD