8 Using Expansion Units and Expansion I/O Units
8-50
CP1E CPU Unit Hardware User’s Manual(W479)
W0.02
#0000
D102
A200.11 (First Scan Flag)
MOV
002
#0020
MOVD
W101
#0100
D103
2
#7FFE
CMP
W0.00
P_On (Always ON Flag)
P_EQ
W0.01
SET W0.02
2
W100
W0.00
2.13
(open-circuit detected)
2.15 (leftmost digits)
2.15 (leftmost digits)
2.15 (rightmost digits)
2000
#0300
W101
2000
#0011
W102
SET W0.03
REST W0.02
MOV
(1)
Sets D103 and D102 to #0100 and
#0000, respectively.
Detects completion of input 0 initialization.
ON when input 0 has been initialized.
Open-circuit alarm output
MOV
(2)
Leftmost digits moved to W100.
(3)
(4)
(5)
Leftmost and rightmost digits rearranged
and moved to W102 and W101.
MOVD
MOVD
Data rearrangement completed.
CLC
W101
D100
BCDL
D102
W101
−
C
D103
W102
D100
BCDL
#0008
#0300
MOVD
D101
REST W0.03
−
C
W0.03
W102.7 (non-negative data)
W102.7 (negative data)
H0
H1
H0
(6)
If the temperature data is non-negative, the
binary data in W102 and W101 is converted to
BCD and placed in D101 and D100.
(7)
If the temperature data is negative, the 2’s
complement data in W102 and W101 is
converted to binary data representing the
absolute value of the temperature input and
placed in H1 and H0.
(8)
The binary data in H1 and H0 is
converted to BCD and placed in D101
and D100.
(9)
“1” is written to the bit in D101 indicating
negative data.
Содержание CP1E-E10DT-A
Страница 3: ......
Страница 31: ...26 CP1E CPU Unit Hardware User s Manual W479...
Страница 273: ...Index 4 CP1E CPU Unit Hardware User s Manual W479...
Страница 275: ...Revision 2 CP1E CPU Unit Hardware User s Manual W479...
Страница 276: ......