Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 233

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

Temperature Sensor Units
00207 (non-negative data)
02002
00207 (negative data)
IR 002: Leftmost 3 digits of temperature data
5
0
16
5
0
16
IR 200
5
0
0
16
IR 202
6
5
0/8
10
10
DM0101
(9)
If temperature data is negative, "8" is written here
(i.e., "1" is written to the bit indicating negative data).
(1)
#0100
0
1
0
DM0103
2's complement data
IR 202
5
0
0
16
HR 01
(7)
The 2's complement data in IR 202 and IR 201 is subtracted, as binary data,
from the data in DM 0103 and DM 0102 and placed in HR 01 and HR 00.
Note The BCDL(59) instruction is only available with the CPM2A and CPM2C.
The data movements corresponding to the numbers in the above ladder pro-
gramming example are illustrated in the following diagram.
4
3
16
16
(2)
4
3
16
16
(4)
(5)
4
4
16
16
IR 201
4
3
10
10
DM0100
#0000
(1)
0
0
0
DM0102
2's complement data
IR 201
4
3
16
16
HR 00
(6)
BCDL (59)
If the temperature data is non-negative, the
201
binary data in IR 202 and IR 201 is converted
DM0100
to BCD and placed in DM 0101 and DM 0100.
CLC (41)
(7)
If the temperature data is negative, the 2's
SBB (51)
complement data in IR 202 and IR 201 is
DM0102
converted to binary data representing the
absolute value of the temperature input
201
and placed in HR 01 and HR 00.
HR00
SBB (51)
DM0103
202
HR01
(8)
BCDL (59)
The binary data in HR 01 and HR 00 is con-
HR00
verted to BCD and placed in DM 0101 and
DM0100
DM 0100.
(9)
MOVD (83)
"1" is written to the bit in DM 0101
#0008
indicating negative data.
#0300
DM0101
RSET 02002
IR 002: Rightmost 3 digits of temperature data
2
1
1
16
16
16
(3)
3
1
0
16
16
16
(6)
If the temperature data is non-negative, the
binary data in IR 202 and IR 201 is converted
to BCD and placed in DM 0101 and DM 0100.
2
1
0
10
10
10
(8)
If the temperature data is negative, the binary
data in HR 01 and HR 00 is converted to BCD
and placed in DM 0101 and DM 0100.
0
0
2
1
0
16
16
16
Section
0
3-2
213

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents