)Statement List Instructions (S7 300 S7 400
: STL S7 300 S7 400
.
:
-1 STEP7 .1384
- .
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- -
Overview of All STL Instructions
A.2
STL Instructions Sorted According to English
Mnemonics (International)
English
German
Mnemonics Mnemonics
Program
Elements
Catalog
Description
Integer math
Instruction
Add Integer Constant (16, 32-Bit)
Bit logic
Instruction
Assign
Bit logic
Instruction
Nesting Closed
+AR1
+AR1
Accumulator
AR1 Add ACCU 1 to Address Register 1
+AR2
+AR2
Accumulator
AR2 Add ACCU 1 to Address Register 2
+D
+D
Integer math
Instruction
Add ACCU 1 and ACCU 2 as Double Integer (32-Bit)
Integer math
Instruction
Subtract ACCU 1 from ACCU 2 as Double Integer
(32-Bit)
*D
*D
Integer math
Instruction
Multiply ACCU 1 and ACCU 2 as Double Integer (32-Bit)
/D
/D
Integer math
Instruction
Divide ACCU 2 by ACCU 1 as Double Integer (32-Bit)
?D
?D
Compare
Compare Double Integer (32-Bit) ==, <>, >, <, >=, <=
+I
+I
Integer math
Instruction
Add ACCU 1 and ACCU 2 as Integer (16-Bit)
Integer math
Instruction
Subtract ACCU 1 from ACCU 2 as Integer (16-Bit)
*I
*I
Integer math
Instruction
Multiply ACCU 1 and ACCU 2 as Integer (16-Bit)
/I
/I
Integer math
Instruction
Divide ACCU 2 by ACCU 1 as Integer (16-Bit)
?I
?I
Compare
Compare Integer (16-Bit) ==, <>, >, <, >=, <=
+R
+R
Floating point
Instruction
Add ACCU 1 and ACCU 2 as a Floating-Point Number
(32-Bit IEEE-FP)
Floating point
Instruction
Subtract ACCU 1 from ACCU 2 as a Floating-Point
Number (32-Bit IEEE-FP)
*R
*R
Floating point
Instruction
Multiply ACCU 1 and ACCU 2 as Floating-Point Numbers
(32-Bit IEEE-FP)
/R
/R
Floating point
Instruction
Divide ACCU 2 by ACCU 1 as a Floating-Point Number
(32-Bit IEEE-FP)
?R
?R
Compare
Compare Floating-Point Number (32-Bit) ==, <>, >, <, >=,
<=
Bit logic
Instruction
And
A(
U(
Bit logic
Instruction
And with Nesting Open
ABS
ABS
Floating point
Instruction
Absolute Value of a Floating-Point Number (32-Bit
IEEE-FP)
Statement List (STL) for S7-300 and S7-400 Programming
A5E00706960-01
A-7
Overview of All STL Instructions
English
German
Mnemonics Mnemonics
Program
Elements
Catalog
Description
ACOS
ACOS
Floating point
Instruction
Generate the Arc Cosine of a Floating-Point Number
(32-Bit)
AD
UD
Word logic
Instruction
AND Double Word (32-Bit)
AN
UN
Bit logic
Instruction
And Not
AN(
UN(
Bit logic
Instruction
And Not with Nesting Open
ASIN
ASIN
Floating point
Instruction
Generate the Arc Sine of a Floating-Point Number
(32-Bit)
ATAN
ATAN
Floating point
Instruction
Generate the Arc Tangent of a Floating-Point Number
(32-Bit)
AW
UW
Word logic
Instruction
AND Word (16-Bit)
BE
BE
Program control
Block End
BEC
BEB
Program control
Block End Conditional
BEU
BEA
Program control
Block End Unconditional
BLD
BLD
Program control
Program Display Instruction (Null)
BTD
BTD
Convert
BCD to Integer (32-Bit)
BTI
BTI
Convert
BCD to Integer (16-Bit)
CAD
TAD
Convert
Change Byte Sequence in ACCU 1 (32-Bit)
CALL
CALL
Program control
Block Call
CALL
CALL
Program control
Call Multiple Instance
CALL
CALL
Program control
Call Block from a Library
CAR
TAR
Load/Transfer
Exchange Address Register 1 with Address Register 2
CAW
TAW
Convert
Change Byte Sequence in ACCU 1-L (16-Bit)
CC
CC
Program control
Conditional Call
CD
ZR
Counters
Counter Down
CDB
TDB
Convert
Exchange Shared DB and Instance DB
CLR
CLR
Bit logic
Instruction
Clear RLO (=0)
COS
COS
Floating point
Instruction
Generate the Cosine of Angles as Floating-Point
Numbers (32-Bit)
CU
ZV
Counters
Counter Up
DEC
DEC
Accumulator
Decrement ACCU 1-L-L
DTB
DTB
Convert
Double Integer (32-Bit) to BCD
DTR
DTR
Convert
Double Integer (32-Bit) to Floating-Point (32-Bit IEEE-FP)
ENT
ENT
Accumulator
Enter ACCU Stack
EXP
EXP
Floating point
Instruction
Generate the Exponential Value of a Floating-Point
Number (32-Bit)
FN
FN
Bit logic
Instruction
Edge Negative
FP
FP
Bit logic
Instruction
Edge Positive
FR
FR
Counters
Enable Counter (Free) (free, FR C 0 to C 255)
A-8
Statement List (STL) for S7-300 and S7-400 Programming
A5E00706960-01
Overview of All STL Instructions
English
German
Mnemonics Mnemonics
Program
Elements
Catalog
Description
FR
FR
Timers
Enable Timer (Free)
INC
INC
Accumulator
Increment ACCU 1-L-L
INVD
INVD
Convert
Ones Complement Double Integer (32-Bit)
INVI
INVI
Convert
Ones Complement Integer (16-Bit)
ITB
ITB
Convert
Integer (16-Bit) to BCD
ITD
ITD
Convert
Integer (16-Bit) to Double Integer (32-Bit)
JBI
SPBI
Jumps
Jump if BR = 1
JC
SPB
Jumps
Jump if RLO = 1
JCB
SPBB
Jumps
Jump if RLO = 1 with BR
JCN
SPBN
Jumps
Jump if RLO = 0
JL
SPL
Jumps
Jump to Labels
JM
SPM
Jumps
Jump if Minus
JMZ
SPMZ
Jumps
Jump if Minus or Zero
JN
SPN
Jumps
Jump if Not Zero
JNB
SPBNB
Jumps
Jump if RLO = 0 with BR
JNBI
SPBIN
Jumps
Jump if BR = 0
JO
SPO
Jumps
Jump if OV = 1
JOS
SPS
Jumps
Jump if OS = 1
JP
SPP
Jumps
Jump if Plus
JPZ
SPPZ
Jumps
Jump if Plus or Zero
JU
SPA
Jumps
Jump Unconditional
JUO
SPU
Jumps
Jump if Unordered
JZ
SPZ
Jumps
Jump if Zero
Load/Transfer
Load
L DBLG
L DBLG
Load/Transfer
Load Length of Shared DB in ACCU 1
L DBNO
L DBNO
Load/Transfer
Load Number of Shared DB in ACCU 1
L DILG
L DILG
Load/Transfer
Load Length of Instance DB in ACCU 1
L DINO
L DINO
Load/Transfer
Load Number of Instance DB in ACCU 1
L STW
L STW
Load/Transfer
Load Status Word into ACCU 1
Timers
Load Current Timer Value into ACCU 1 as Integer (the
current timer value can be a number from 0 to 255, for
example, L T 32)
Counters
Load Current Counter Value into ACCU 1 (the current
counter value can be a number from 0 to 255, for
example, L C 15)
LAR1
LAR1
Load/Transfer
Load Address Register 1 from ACCU 1
LAR1 <D>
LAR1<D>
Load/Transfer
Load Address Register 1 with Double Integer (32-Bit
Pointer)
LAR1 AR2
LAR1 AR2
Load/Transfer
Load Address Register 1 from Address Register 2
LAR2
LAR2
Load/Transfer
Load Address Register 2 from ACCU 1
LAR2 <D>
LAR2 <D>
Load/Transfer
Load Address Register 2 with Double Integer (32-Bit
Pointer)
Statement List (STL) for S7-300 and S7-400 Programming
A5E00706960-01
A-9
Overview of All STL Instructions
English
German
Mnemonics Mnemonics
Program
Elements
Catalog
Description
LC
LC
Counters
Load Current Counter Value into ACCU 1 as BCD (the
current timer value can be a number from 0 to 255, for
example, LC C 15)
LC
LC
Timers
Load Current Timer Value into ACCU 1 as BCD (the
current counter value can be a number from 0 to 255, for
example, LC T 32)
LEAVE
LEAVE
Accumulator
Leave ACCU Stack
LN
LN
Floating point
Instruction
Generate the Natural Logarithm of a Floating-Point
Number (32-Bit)
LOOP
LOOP
Jumps
Loop
MCR(
MCR(
Program control
Save RLO in MCR Stack, Begin MCR
)MCR
)MCR
Program control
End MCR
MCRA
MCRA
Program control
Activate MCR Area
MCRD
MCRD
Program control
Deactivate MCR Area
MOD
MOD
Integer math
Instruction
Division Remainder Double Integer (32-Bit)
NEGD
NEGD
Convert
Twos Complement Double Integer (32-Bit)
NEGI
NEGI
Convert
Twos Complement Integer (16-Bit)
NEGR
NEGR
Convert
Negate Floating-Point Number (32-Bit, IEEE-FP)
NOP 0
NOP 0
Accumulator
Null Instruction
NOP 1
NOP 1
Accumulator
Null Instruction
NOT
NOT
Bit logic
Instruction
Negate RLO
Bit logic
Instruction
Or
O(
O(
Bit logic
Instruction
Or with Nesting Open
OD
OD
Word logic
Instruction
OR Double Word (32-Bit)
ON
ON
Bit logic
Instruction
Or Not
ON(
ON(
Bit logic
Instruction
Or Not with Nesting Open
OPN
AUF
DB call
Open a Data Block
OW
OW
Word logic
Instruction
OR Word (16-Bit)
POP
POP
Accumulator
POP
POP
POP
Accumulator
CPU with Two ACCUs
POP
POP
Accumulator
CPU with Four ACCUs
PUSH
PUSH
Accumulator
CPU with Two ACCUs
PUSH
PUSH
Accumulator
CPU with Four ACCUs
Bit logic
Instruction
Reset
Counters
Reset Counter (the current counter can be a number from
0 to 255, for example, R C 15)
A-10
Statement List (STL) for S7-300 and S7-400 Programming
A5E00706960-01
Overview of All STL Instructions
English
German
Mnemonics Mnemonics
Program
Elements
Catalog
Description
Timers
Reset Timer (the current timer can be a number from 0 to
255, for example, R T 32)
RLD
RLD
Shift/Rotate
Rotate Left Double Word (32-Bit)
RLDA
RLDA
Shift/Rotate
Rotate ACCU 1 Left via CC 1 (32-Bit)
RND
RND
Convert
Round
RND
RND
Convert
Round to Lower Double Integer
RND+
RND+
Convert
Round to Upper Double Integer
RRD
RRD
Shift/Rotate
Rotate Right Double Word (32-Bit)
RRDA
RRDA
Shift/Rotate
Rotate ACCU 1 Right via CC 1 (32-Bit)
Bit logic
Instruction
Set
Counters
Set Counter Preset Value (the current counter can be a
number from 0 to 255, for example, S C 15)
SAVE
SAVE
Bit logic
Instruction
Save RLO in BR Register
SD
SE
Timers
On-Delay Timer
SE
SV
Timers
Extended Pulse Timer
SET
SET
Bit logic
Instruction
Set
SF
SA
Timers
Off-Delay Timer
SIN
SIN
Floating point
Instruction
Generate the Sine of Angles as Floating-Point Numbers
(32-Bit)
SLD
SLD
Shift/Rotate
Shift Left Double Word (32-Bit)
SLW
SLW
Shift/Rotate
Shift Left Word (16-Bit)
SP
SI
Timers
Pulse Timer
SQR
SQR
Floating point
Instruction
Generate the Square of a Floating-Point Number (32-Bit)
SQRT
SQRT
Floating point
Instruction
Generate the Square Root of a Floating-Point Number
(32-Bit)
SRD
SRD
Shift/Rotate
Shift Right Double Word (32-Bit)
SRW
SRW
Shift/Rotate
Shift Right Word (16-Bit)
SS
SS
Timers
Retentive On-Delay Timer
SSD
SSD
Shift/Rotate
Shift Sign Double Integer (32-Bit)
SSI
SSI
Shift/Rotate
Shift Sign Integer (16-Bit)
Load/Transfer
Transfer
T STW
T STW
Load/Transfer
Transfer ACCU 1 into Status Word
TAK
TAK
Accumulator
Toggle ACCU 1 with ACCU 2
TAN
TAN
Floating point
Instruction
Generate the Tangent of Angles as Floating-Point
Numbers (32-Bit)
TAR1
TAR1
Load/Transfer
Transfer Address Register 1 to ACCU 1
TAR1
TAR1
Load/Transfer
Transfer Address Register 1 to Destination (32-Bit
Pointer)
TAR1
TAR1
Load/Transfer
Transfer Address Register 1 to Address Register 2
TAR2
TAR2
Load/Transfer
Transfer Address Register 2 to ACCU 1
Statement List (STL) for S7-300 and S7-400 Programming
A5E00706960-01
A-11
Overview of All STL Instructions
English
German
Mnemonics Mnemonics
Program
Elements
Catalog
Description
TAR2
TAR2
Load/Transfer
Transfer Address Register 2 to Destination (32-Bit
Pointer)
TRUNC
TRUNC
Convert
Truncate
UC
UC
Program control
Unconditional Call
Bit logic
Instruction
Exclusive Or
X(
X(
Bit logic
Instruction
Exclusive Or with Nesting Open
XN
XN
Bit logic
Instruction
Exclusive Or Not
XN(
XN(
Bit logic
Instruction
Exclusive Or Not with Nesting Open
XOD
XOD
Word logic
Instruction
Exclusive OR Double Word (32-Bit)
XOW
XOW
Word logic
Instruction
Exclusive OR Word (16-Bit)
A-12
Statement List (STL) for S7-300 and S7-400 Programming
A5E00706960-01