3-2
Section
Temperature Sensor Units
211
The following programming example shows how to use 2-decimal-place Mode
for the following PC configuration.
20-point CPU Unit
20-point Expansion
I/O Unit
Inputs
IR 000
Outputs
IR 010
Inputs
IR 001
Outputs
IR 011
Temperature unit setting:
OFF (
°
C)
Two-decimal-place Mode:
ON (2 digits after decimal point stored)
Temperature Sensor Unit
Inputs
IR 002
IR 003
Outputs
None
In this example, 100 times the temperature data for temperature input 0 is stored
in binary form in DM 0100 to DM 0102.
Temperature input 0
IR 002
Leftmost data
Rightmost data
IR 200
Bit
DM 0100
DM 0102
DM 0101
Always 0
Always 0
Always 0
Temperature Unit Flag (0:
°
C, 1:
°
F)
Open-circuit Flag (0: Normal, 1: Error)
15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
0
0
x16
3
x16
7
x16
2
x16
6
x16
1
x16
5
x16
0
x16
4
The following program would be used.
Programming Example