Specifications

S7-200 Quick Reference Information
G-5
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
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
S S_BIT, N
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 or Real
IN1 * OUT = OUT
Multiply Integer or Double
Integer
DIV IN1, OUT
/R IN1, OUT
/D, /I IN1, OUT
Divide Integer or Real
IN1 / OUT = OUT
Divide Integer or Double Integer
SQRT IN, OUT Square Root
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