S7-200 Quick Reference Information
G-5
S7-200 Programmable Controller System Manual
A5E00066097-02
Boolean Instructions
ÁÁÁÁÁ
ÁÁÁÁÁ
LD N
LDI N
LDN N
LDNI N
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
Load
Load Immediate
Load Not
Load Not Immediate
ÁÁÁÁÁ
ÁÁÁÁÁ
AN
AI N
AN N
ANI N
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
AND
AND Immediate
AND Not
AND Not Immediate
ÁÁÁÁÁ
ÁÁÁÁÁ
ON
OI N
ON N
ONI N
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
OR
OR Immediate
OR Not
OR Not Immediate
LDBx N1, N2
Load result of Byte Compare
N1 (x:<, <=,=, >=, >, <>) N2
ÁÁÁÁÁ
ABx N1, N2
ÁÁÁÁÁÁÁ
AND result of Byte Compare
N1 (x:<, <=,=, >=, >, <>) N2
OBx N1, N2
OR result of Byte Compare
N1 (x:<, <=,=, >=, >, <>) N2
LDWx N1, N2
Load result of Word Compare
N1 (x:<, <=,=, >=, >, <>) N2
ÁÁÁÁÁ
AWx N1, N2
ÁÁÁÁÁÁÁ
AND result of Word Compare
N1 (x:<, <=,=, >=, >, <>) N2
OWx N1, N2
OR result of Word Compare
N1 (x:<, <=,=, >=, >, <>) N2
LDDx N1, N2
Load result of DWord Compare
N1 (x:<, <=,=, >=, >, <>) N2
ADx N1, N2
AND result of DWord Compare
N1 (x:<, <=,=, >=, >, <>) N2
ÁÁÁÁÁ
ODx N1, N2
ÁÁÁÁÁÁÁ
OR result of DWord Compare
N1 (x:<, <=,=, >=, >, <>) N2
LDRx N1, N2
Load result of Real Compare
N1 (x:<, <=,=, >=, >, <>) N2
ARx N1, N2
AND result of Real Compare
N1 (x:<, <=,=, >=, >, <>) N2
ÁÁÁÁÁ
ORx N1, N2
ÁÁÁÁÁÁÁ
OR result of Real Compare
N1 (x:<, <=,=, >=, >, <>) N2
NOT
Stack Negation
ÁÁÁÁÁ
EU
ED
ÁÁÁÁÁÁÁ
Detection of Rising Edge
Detection of Falling Edge
ÁÁÁÁÁ
=N
=I N
ÁÁÁÁÁÁÁ
Assign Value
Assign Value Immediate
ÁÁÁÁÁ
ÁÁÁÁÁ
ÁÁÁÁÁ
ÁÁÁÁÁ
ÁÁÁÁÁ
ÁÁÁÁÁ
ÁÁÁÁÁ
ÁÁÁÁÁ
ÁÁÁÁÁ
R S_BIT, N
SI S_BIT, N
RI S_BIT, N
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
Set bit Range
Reset bit Range
Set bit Range Immediate
Reset bit Range Immediate
Math, Increment, and Decrement instructions
ÁÁÁÁ
+I IN1, OUT
+D IN1, OUT
+R IN1, OUT
ÁÁÁÁÁÁÁ
Add Integer, DWord or Real
IN1+OUT=OUT
ÁÁÁÁ
ÁÁÁÁ
-I IN1, OUT
-D IN1, OUT
-R IN1, OUT
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
Subtract Integer, DWord, or Real
OUT-IN1=OUT
ÁÁÁÁ
MUL IN1, OUT
*R IN1, OUT
*D, *I IN1, OUT
ÁÁÁÁÁÁÁ
Multiply Integer (16*16->32) or Real
Multiply Integer or Double Integer
IN1 * OUT = OUT
ÁÁÁÁ
DIV IN1, OUT
/R IN1, OUT
/D, /I IN1, OUT
ÁÁÁÁÁÁÁ
Divide Integer (16/16->32) or Real
Divide Integer or Double Integer
IN1 / OUT = OUT
SQRT IN, OUT
Square Root
LN IN, OUT
Natural Logarithm
EXP IN, OUT
Natural Exponential
SIN IN, OUT
Sine
COS IN, OUT
Cosine
TAN IN, OUT
Tangent
ÁÁÁÁ
INCB OUT
INCW OUT
INCD OUT
ÁÁÁÁÁÁÁ
Increment Byte, Word or DWord
ÁÁÁÁ
ÁÁÁÁ
DECB OUT
DECW OUT
DECD OUT
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
Decrement Byte, Word, or DWord
PID Table, Loop
PID Loop
Timer and Counter Instructions
ÁÁÁÁ
TON Txxx, PT
TOF Txxx, PT
TONR Txxx, PT
ÁÁÁÁÁÁÁ
On-Delay Timer
Off-Delay Timer
Retentive On-Delay Timer
ÁÁÁÁ
ÁÁÁÁ
CTU Cxxx, PV
CTD Cxxx, PV
CTUD Cxxx, PV
ÁÁÁÁÁÁÁ
ÁÁÁÁÁÁÁ
Count Up
Count Down
Count Up/Down
Real Time Clock Instructions
ÁÁÁÁ
TODR T
TODW T
ÁÁÁÁÁÁÁ
Read Time of Day clock
Write Time of Day clock
Program Control Instructions
END
Conditional End of Program
STOP
Transition to STOP Mode
WDR
WatchDog Reset (300 ms)
ÁÁÁÁ
JMP N
LBL N
ÁÁÁÁÁÁÁ
Jump to defined Label
Define a Label to Jump to
ÁÁÁÁ
CALL N [N1,...]
CRET
ÁÁÁÁÁÁÁ
Call a Subroutine [N1, ... up to 16
optional parameters]
Conditional Return from SBR
ÁÁÁÁ
FOR INDX,INIT,
FINAL
NEXT
ÁÁÁÁÁÁÁ
For/Next Loop
ÁÁÁÁ
LSCR N
SCRT N
SCRE
ÁÁÁÁÁÁÁ
Load, Transition, and End
Sequence Control Relay
Segment