S7-200 Quick Reference Information
G-6
S7-200 Programmable Controller System Manual
A5E00066097-02
Move, Shift, Rotate, and Fill Instructions
ÁÁÁÁ
ÁÁÁÁ
ÁÁÁÁ
MOVB IN, OUT
MOVW IN, OUT
MOVD IN, OUT
MOVR IN, OUT
BIR IN, OUT
BIW IN, OUT
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
Move Byte, Word, DWord, Real
Move Byte Immediate Read
Move Byte Immediate Write
ÁÁÁÁ
BMB IN, OUT, N
BMW IN, OUT, N
BMD IN, OUT, N
ÁÁÁÁÁÁÁ
Block Move Byte, Word, DWord
SWAP IN
Swap Bytes
SHRB DATA, S_BIT,
N
Shift Register Bit
ÁÁÁÁ
ÁÁÁÁ
SRB OUT, N
SRW OUT, N
SRD OUT, N
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
Shift Right Byte, Word, DWord
ÁÁÁÁ
SLB OUT, N
SLW OUT, N
SLD OUT, N
ÁÁÁÁÁÁÁ
Shift Left Byte, Word, DWord
ÁÁÁÁ
RRB OUT, N
RRW OUT, N
RRD OUT, N
ÁÁÁÁÁÁÁ
Rotate Right Byte, Word, DWord
ÁÁÁÁ
ÁÁÁÁ
RLB OUT, N
RLW OUT, N
RLD OUT, N
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
Rotate Left Byte, Word, DWord
FILL IN, OUT, N
Fill memory space with pattern
Logic Operations
ÁÁÁÁ
ALD
OLD
ÁÁÁÁÁÁÁ
And for combinations
Or for combinations
ÁÁÁÁ
ÁÁÁÁ
LPS
LRD
LPP
LDS
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
Logic Push (stack control)
Logic Read (stack control)
Logic Pop (stack control)
Load Stack (stack control)
AENO
And ENO
ÁÁÁÁ
ÁÁÁÁ
ANDB IN1, OUT
ANDW IN1, OUT
ANDD IN1, OUT
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
Logical And of Byte, Word, and
DWord
ÁÁÁÁ
ORB IN1, OUT
ORW IN1, OUT
ORD IN1, OUT
ÁÁÁÁÁÁÁ
Logical Or of Byte, Word, and
DWord
ÁÁÁÁ
ÁÁÁÁ
XORB IN1, OUT
XORW IN1, OUT
XORD IN1, OUT
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
Logical XOr of Byte, Word, and
DWord
ÁÁÁÁ
ÁÁÁÁ
INVW OUT
INVD OUT
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
Invert Byte, Word and DWord
(1’s complement)
Table, Find, and Conversion Instructions
ATT TABLE,DATA
Add data to table
LIFO TABLE,DATA
FIFO TABLE,DATA
Get data from table
ÁÁÁÁ
ÁÁÁÁ
ÁÁÁÁ
ÁÁÁÁ
ÁÁÁÁ
FND= SRC,PATRN,
INDX
FND<>SRC,PATRN,
INDX
FND< SRC,PATRN,
INDX
FND> SRC,PATRN,
INDX
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
Find data value in table that
matches comparison
ÁÁÁÁ
BCDI OUT
IBCD OUT
ÁÁÁÁÁÁÁ
Convert BCD to Integer
Convert Integer to BCD
ÁÁÁÁ
ÁÁÁÁ
ÁÁÁÁ
BTI IN, OUT
ITB IN, OUT
ITD IN, OUT
DTI IN, OUT
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
Convert Byte to Integer
Convert Integer to Byte
Convert Integer to Double
Integer
Convert Double Integer to Integer
ÁÁÁÁ
ÁÁÁÁ
DTR IN, OUT
TRUNC IN, OUT
ROUND IN, OUT
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
Convert DWord to Real
Convert Real to DWord
Convert Real to Double Integer
ÁÁÁÁ
ÁÁÁÁ
ÁÁÁÁ
ATH IN, OUT, LEN
HTA IN, OUT, LEN
ITA IN, OUT, FMT
DTA IN, OUT, FM
RTA IN, OUT, FM
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
Convert ASCII to Hex
Convert Hex to ASCII
Convert Integer to ASCII
Convert Double Integer to ASCII
Convert Real to ASCII
ÁÁÁÁ
DECO IN, OUT
ENCO IN, OUT
ÁÁÁÁÁÁÁ
Decode
Encode
SEG IN, OUT
Generate 7-segment pattern
Interrupt
CRETI
Conditional Return from Int.
ENI
DISI
Enable Interrupts
Disable Interrupts
ÁÁÁÁ
ÁÁÁÁ
ATCH INT, EVENT
DTCH EVENT
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
Attach Interrupt routine to event
Detach event
Communication
ÁÁÁÁ
XMT TABLE,PORT
RCV TABLE,PORT
ÁÁÁÁÁÁÁ
Freeport transmission
Freeport receive message
NETR TABLE,PORT
NETW TABLE,PORT
Network Read
Network Write
ÁÁÁÁ
GPA ADDR,PORT
SPA ADDR,PORT
ÁÁÁÁÁÁÁ
Get Port Address
Set Port Address
High-Speed Instructions
HDEF HSC, Mode
Define High-Speed Counter mode
HSC N
Activate High-Speed Counter
PLS X
Pulse Output