EasyManua.ls Logo

LSIS XBC-DN30S - Page 350

LSIS XBC-DN30S
384 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix 4 Instruction List
App. 4-8
(4) Comparison instruction
Classification
Designations
Symbol
Description
Support
XGK
XGB
Unsigned
Compare
with Special
Relay
used
CMP
CMP S2S1
CMP(S1,S2) and applicable Flag SET
(S1, S2 is Word)
CMPP
CMPP S2S1
DCMP
DCMP S2S1
CMP(S1,S2) and applicable Flag SET
(S1, S2 is Double Word)
DCMPP
DCMPP S2S1
4/8 Bits
Compare
CMP4
CMP4 S1 S2
CMP(S1,S2) and applicable Flag SET
(S1, S2 is Nibble)
CMP4P
CMP4P S1 S2
CMP8
CMP8 S1 S2
CMP(S1,S2) and applicable Flag SET
(S1, S2 is Byte)
CMP8P
CMP8P S1 S2
Table
Compare
TCMP
TCMP DS2S1
TCMPP
TCMPP DS2S1
DTCMP
DTCMP DS2S1
DTCMPP
DTCMPP DS2S1
Group
Compare
(16 Bits)
GEQ
GEQ NDS2S1
Compares S1 data to S2 data word
by word, and saves its result in
Device (D) bit by bit from the lower
bit
( N
16 )
GEQP
GEQP NDS2S1
GGT
GGT NDS2S1
GGTP
GGTP NDS2S1
GLT
GLT NDS2S1
GLTP
GLTP NDS2S1
GGE
GGE NDS2S1
GGEP
GGEP NDS2S1
GLE
GLE NDS2S1
GLEP
GLEP NDS2S1
GNE
GNE NDS2S1
GNEP
GNEP NDS2S1
Remark
CMP(P), DCMP(P), CMP4(P), CMP8(P), TCMP(P) & DTCMP(P) Instructions all process the results of
Unsigned Compare. All the other Compare Instructions will perform Signed Compare.
CMP((S1+1,S1),(S2+1,S2))
:
CMP((S1+31,S1+30),(S2+31,S2+30))
Result:(D) ~ (D+15)
CMP(S1,S2))
:
CMP(S1+15,S2+15)
Result:(D) ~ (D+15), 1 if identical
www.behaotomasyon.com
www.behaotomasyon.com

Table of Contents

Related product manuals