103
*Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD; DM
includes DM, DHM; DS includes DS, DHS. M includes M,HM,SM
;
S includes S,HS
;
T
includes T,HT
;
C includes C, HC.
CMP D10 D20 M0
S1·
X0
M0
M1
M2
D10 > D20
S·
D10 = D20
D10 < D20
ON
ON
ON
D
Compare data and , show the result in three soft components starting from
, +1, +2: the three soft components will show the compare result.
Note:The addresses of operands in QCMP instructions must be even.
4-5-2 Data zone compare [ZCP, DZCP]
1) Summary
Compare the current data with the data in the zone, output the result.
Data Zone compare [ZCP, DZCP]
Normally ON/OFF,
rising/falling edge
2) Operands
3) Suitable soft components
Even X0=OFF to stop CMP instruction,
M0~M2 will keep the original status
tudonghoatoancau.com