Professional Documents
Culture Documents
s7 1500 Compare Table en Mnemo
s7 1500 Compare Table en Mnemo
S7-1200 / S7-1500
Comparison list for programming languages based on the international mnemonics
Reference manual
Edition
12/2014
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices
referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety
alert symbol. These notices shown below are graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury
to persons with a safety alert symbol may also include a warning relating to property damage.
A5E33285102-AB
Page 1
Qualified personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the
relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and
experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of SIMATIC products
Note the following:
WARNING
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and
components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation,
assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems. The
permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use
by third parties for their own purposes could violate the rights of the owner.
Disclaimer of liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be
precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary
corrections are included in subsequent editions.
Siemens AG
Digital Factory
Postfach 48 48
90026 NRNBERG, Germany
Comparison list for S7-300, S7-400, S7-1200, S7-1500
12/2014
A5E33285102-AB
Page 2
Loading objects to the CPU: which changes and which changed blocks you can load to the CPU in which
operating mode. (next page)
Overview, requirements, framework conditions and legends to the comparison list (page 7)
Comparison list for S7-300, S7-400, S7-1200, S7-1500 including CPU 150xS software controller:
Which instructions and functions can be used for which controller family. (from page 8)
A5E33285102-AB
Page 3
Reduce the number of changed used blocks, constants, PLC tags or data types.
Changes and blocks
S7-300
S7-400
S7-1200
S7-1500
S7-1200
S7-1200
S7-1500
as of V4.0
V1.7
V1.0 - 2.1 V2.2 - V3.0 V1.0-V1.6
Changed properties of HW
STOP
STOP
STOP
STOP
STOP
STOP
STOP
components
Added HW components
STOP
STOP
STOP
STOP
STOP
STOP
STOP
New/changed text lists
(Alarms)
Download number of blocks
RUN
RUN
STOP
STOP
STOP
STOP
STOP
RUN (<17)
RUN (<57)
RUN (<21)
RUN
STOP
RUN (<11)
RUN
STOP
(Reset)
RUN
STOP
(Reset)
RUN
STOP
(Reset)
STOP
STOP
(Reset)
RUN
STOP
(Reset)
STOP
STOP
(Reset)
STOP
STOP
(Reset)
RUN
RUN
RUN
RUN
RUN
STOP
RUN
RUN
RUN
RUN
STOP
RUN
STOP
STOP
RUN
RUN
RUN
STOP
RUN
STOP
STOP
RUN
A5E33285102-AB
Page 4
A5E33285102-AB
S7-300
S7-400
RUN
RUN
S7-1200
S7-1500
as of V4.0
V1.7
RUN
RUN
S7-1200
S7-1200
S7-1500
V1.0 - 2.1 V2.2 - V3.0 V1.0-V1.6
STOP
RUN
RUN
RUN
RUN
RUN
RUN
STOP
RUN
RUN
RUN
RUN
RUN
RUN
STOP
RUN
RUN
STOP
STOP
RUN (Init)
RUN (Init)
STOP
STOP
RUN (Init)
RUN (Init)
RUN (Init)
RUN (Init)
RUN (Init)
STOP
STOP
RUN (Init)
--
--
RUN
RUN
--
--
RUN (Init)
STOP
STOP
RUN (Init)
RUN (Init)
STOP
STOP
RUN (Init)
RUN
RUN
RUN
RUN
STOP
STOP
RUN
Page 5
S7-300
S7-400
STOP
S7-1200
S7-1500
as of V4.0
V1.7
STOP
STOP
S7-1200
S7-1200
S7-1500
V1.0 - 2.1 V2.2 - V3.0 V1.0-V1.6
STOP
STOP
STOP
--
--
--
STOP
--
STOP
(init) means that the current values of the DBs are overwritten by start values during loading.
A5E33285102-AB
Page 6
Basic instructions
Instructions that you often use such as bit logic operations, timers, counters, mathematic functions
Extended instructions
Sophisticated instructions for more options, such as date and time, interrupts, alarms, PROFIenergy
The contents of the S7-1500 column are valid also for SIMATIC S7-1500 Software Controller CPU 150xS
SIMATIC S7-1200 as of firmware 3.x; SIMATIC S7-1200 supports only LAD, FBD and SCL.
()
nn
gray
Xyz
Xyz
Xyz
Applicable
Applicable with limitations
Not necessary
We recommend that you do not use the grayed out instructions in the S7-1200 or S7-1500, as these instructions
are unsuitable for symbolic addressing or multiple instances. SIMATIC counters and timers are not
recommended, as they are not multi-instance capable.
New instruction as of SIMATIC STEP 7 V13.
For this purpose, SIMATIC S7-1200 requires at least firmware 4.0 and SIMATIC S7-1500 at least firmware 1.5
New instruction as of SIMATIC STEP 7 V13 SP1.
For this purpose, SIMATIC S7-1200 requires at least firmware 4.1 and SIMATIC S7-1500 at least firmware 1.7
Also available as safety instruction in the optional safety package in LAD and FBD.
A5E33285102-AB
Page 7
Basic instructions
Technology
Extended instructions
Communication
Page
Instruction groups
Page
Instruction groups
Page
13
27
Math functions
16
27
Safety functions
10
Move
17
28
Timers
11
Conversion operations
20
Legacy
29
Counters
13
23
S7-300
S7-1500
Comparator operations
S7-400
S7-1200
General
Description
General
Insert network
Insert empty box
Open branch
Close branch
Insert input
Invert Boolean result
Bit logic operations
AND logic operation
A5E33284667-AB
LAD / FBD
-|
STL
(not S7-1200)
SCL
nn
nn
nn
(
)
nn
-|NOT|-
-o|
&
nn
NOT
&
Page 8
S7-400
S7-1200
S7-1500
S7-300
Basic instructions
Description
OR logic operation
EXCLUSIVE or operation
Assignment
Negate assignment
Reset output
Set output
Set bit field
Reset bit field
Set/reset flip-flop
Reset/set flip-flop
Scan operand for positive signal edge
Extended instructions
A5E33285102-AB
Technology
LAD / FBD
>=1
X
-( )-[=]
-(/)-[/=]
-(R)
-[R]
-(S)
-[S]
SET_BF
RESET_BF
SR
RS
-|P|-|N|-(P)-(N)P_TRIG
N_TRIG
Communication
STL
(not S7-1200)
SCL
O
X
=
OR
XOR
:=
NOT
R
S
nn
nn
nn
nn
nn
nn
nn
nn
<Operand>;
FP;
<Operand>;
FP;
R_TRIG
F_TRIG
FP
FN
nn
nn
nn
nn
nn
nn
Page 9
S7-400
S7-1500
S7-300
S7-1200
Basic instructions
Extended instructions
Description
A5E33285102-AB
Communication
Technology
LAD / FBD
-||-|/|-
nn
nn
STL
(not S7-1200)
R_TRIG
F_TRIG
nn
nn
SCL
nn
nn
ESTOP1
TWO_HAND
TWO_H_EN
MUTING
MUT_P
EV1oo2DI
FDBACK
SFDOOR
Page 10
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
ACK_GL
TP
TON
TOF
TP
TON
TOF
-(TONR)- -[TONR]-(RT)-[RT]-(PT)-[PT]-(TP)-[TP]-(TON)-[TON]-(TOF)-[TOF]-
TONR
nn
nn
RESET_TIMER
PRESET_TIMER
nn
TP
SD
S_ODT
SF
S_OFFDT
Page 11
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
Communication
Technology
LAD / FBD
STL
(not S7-1200)
SCL
Legacy
S_PULSE
S_PEXT
nn
nn
S_PULSE
S_PEXT
S_ODT
S_ODTS
nn
nn
S_ODT
S_ODTS
S_OFFDT
-(SP)
-[SP]
-(SE)
-[SE]
nn
SP
SE
FR
L
LC
R
SD
SS
S_OFFDT
nn
nn
nn
nn
nn
nn
nn
nn
start
and start
Assign off-delay timer parameters and start
Start pulse timer
Start extended pulse timer
Enable timer
Load timer value
Load BCD-coded timer value
Reset timer
Start on-delay timer
Start retentive on-delay timer
A5E33285102-AB
-(R)
-(SD)
-(SS)
-[R]
-[SD]
-[SS]
Page 12
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
Counters
IEC counters
Count up
Count down
Count up and down
Legacy
Assign parameters and count up
Assign parameters and count down
Assign parameters and count up / down
Set counter value
Count up
Count down
Enable counter
Load counter
Load BCD-coded counter value
Reset counter
Set counter
Comparator operations
Equal
Not equal
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
CTU
CTD
CTUD
SCL
CTU
CTD
CTUD
S_CU
S_CD
S_CUD
-(SC)
-[SC]
-(CU)
-[CU]
-(CD)
-[CD]
nn
nn
nn
nn
CU
CD
FR
L
LC
R
S
S_CU
S_CD
S_CUD
nn
nn
nn
nn
nn
nn
nn
nn
CMP ==
CMP <>
== I/D/R
<> I/D/R
=
<>
Page 13
S7-400
S7-1500
S7-1200
S7-300
Basic instructions
Extended instructions
Description
Greater or equal
Less or equal
Greater than
Less than
Value within range
Value outside range
Check validity
Check invalidity
A5E33285102-AB
Communication
Technology
LAD / FBD
CMP >=
CMP <=
CMP >
CMP >
IN_RANGE
OUT_RANGE
-|OK|-|NOT_OK|-
STL
(not S7-1200)
>= I/D/R
<= I/D/R
> I/D/R
> I/D/R
SCL
>=
<=
>
<
nn
nn
nn
Page 14
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
Variant
Check data type of a VARIANT tag
Check data type of an ARRAY element of a
Technology
LAD / FBD
Communication
STL
(not S7-1200)
TypeOf
TypeOfElements
VARIANT tag
of a tag
Compare data type of an ARRAY element for
EQUAL with the data type of a tag
Compare data type for UNEQUAL with the data
type of a tag
Compare data type of an ARRAY element for
UNEQUAL with the data type of a tag
Check for EQUALS NULL pointer
Check for UNEQUALS NULL pointer
SCL
EQ_Type
*)
EQ_ElemType
*)
NE_Type
*)
NE_ElemType
*)
IS_NULL
*)
NOT_NULL
*)
*) Application examples for SCL:
IF TypeOf(...) = INT THEN ... // corresponds to EQ_Type
IF TypeOfElements(...) = INT THEN ... // corresponds to EQ_ElemType
IF ... <> NULL THEN ... // corresponds to NOT_NULL
Other operators can also be used instead of =, for example: <>.
Instead of INT you can also use any other data types or data types that you have defined, for example: REAL, Recipe.
Check for array
IS_ARRAY
A5E33285102-AB
Page 15
S7-400
S7-1500
S7-1200
S7-300
Basic instructions
Extended instructions
Description
Math functions
Calculate
Add
Subtract
Multiply
Divide
Return remainder of division
Create twos complement
Create ones complement
Increment
Decrement
Form absolute value
Get minimum
Get maximum
Set limit value
Form square
Form square root
Form natural logarithm
Form exponential value
Form sine value
A5E33285102-AB
Communication
Technology
STL
(not S7-1200)
LAD / FBD
CALCULATE
ADD
SUB
MUL
DIV
NEG
nn
+
*
/
MOD
NEGI, NEGD
INVI, INVD
INC
DEC
SCL
nn
+
*
/
nn
nn
nn
nn
ABS
MIN
MAX
LIMIT
SQR
SQRT
LN
EXP
SIN
Page 16
S7-400
S7-1200
S7-300
S7-1500
Basic instructions
() ()
Extended instructions
Description
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
COS
TAN
ASIN
ACOS
ATAN
FRAC
EXPT
**
FRAC
**
MOVE
MOVE
:=
WR_FBD
RD_FBD
Deserialize
Serialize
MOVE_BLK
UMOVE_BLK
MOVE_BLK_VARIANT
FILL_BLK
Page 17
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
UFILL_BLK
SWAP
ReadFromArrayDB
WriteToArrayDB
ReadFromArrayDBL
WriteToArrayDBL
VariantGet
VariantPut
CountOfElements
Page 18
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
Read/write access
Recommendation: program symbolically
Read data in little-endian format
Write data in little-endian format
Read data in big-endian format
Write data in big-endian format
Read memory address
Read memory bit
Write memory address
Write memory bit
Write memory area
Legacy
Recommendation: Program symbolically
Move block
Move block uninterruptible
Fill block
Read field
Recommendation: indexed access to an array
Write field
Recommendation: indexed access to an array
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
READ_LITTLE
WRITE_LITTLE
READ_BIG
WRITE_BIG
PEEK
PEEK_BOOL
POKE
POKE_BOOL
POKE_BLK
BLKMOV
UBLKMOV
FILL
FieldRead
FieldWrite
Page 19
S7-400
S7-1200
()
S7-1500
S7-300
Basic instructions
Extended instructions
Description
Conversion operations
Convert value
S7-1200/1500: is applied implicitly and
therefore generally not necessary.
S7-1200: not as Safety instruction
Safety only: Convert data from BOOL data
type to data of WORD data type
Safety only: Convert data from BOOL data
type to data of WORD data type
Round numerical value
Generate next higher integer from floatingpoint number
Generate next lower integer from floatingpoint number
Truncate numerical value
Scale
Normalize
Convert BCD to integer (16 bit)
Convert integer (16 bit) to BCD
Convert BCD to integer (32 bit)
A5E33285102-AB
Communication
Technology
LAD / FBD
STL
(not S7-1200)
CONVERT
SCL
CONVERT
BO_W
W_BO
ROUND
CEIL
RND
RND+
ROUND
CEIL
FLOOR
RND-
FLOOR
nn
nn
nn
TRUNC
SCALE_X
NORM_X
BTI
ITB
BTD
BCD16_TO_INT
INT_TO_BCD16
BCD32_TO_INT
Page 20
S7-400
S7-1200
S7-1500
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AB
Technology
Communication
LAD / FBD
STL
(not S7-1200)
SCL
nn
nn
DTB
ITD
DINT_TO_BCD32
INT_TO_DINT
nn
DTR
DINT_TO_REAL
CONVERT
xxx_TO_yyy
nn
INVI
nn
nn
INVD
nn
nn
nn
nn
NEGI
NEGD
NEGR
nn
nn
nn
Page 21
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AB
Communication
Technology
LAD / FBD
STL
(not S7-1200)
SCL
nn
CAW
nn
nn
CAD
nn
VARIANT_TO_DB_ANY
DB_ANY_TO_VARIANT
SCALE
SCALE
UNSCALE
Page 22
S7-400
S7-1200
Extended instructions
S7-300
S7-1500
Basic instructions
Description
A5E33285102-AB
Technology
LAD / FBD
RET
Communication
STL
(not S7-1200)
BEU
BEC
//
SHUT_DWN
SCL
IF THEN
IF THEN
ELSE
IF THEN
ELSIF
CASE OF
FOR TO DO
FOR TO BY
DO
WHILE DO
REPEAT
UNTIL
CONTINUE
EXIT
RETURN
nn
//, (**)
Page 23
S7-400
S7-1200
S7-1500
S7-300
Basic instructions
Extended instructions
Description
Communication
Technology
LAD / FBD
STL
(not S7-1200)
SCL
Jumps
Jump
Jump if RLO = 1
Jump if RLO = 0
Jump label
Define jump list
Jump distributor
Return
Safety only: Open global data block
Safety only: Open instance data block
Unconditional jump
Jump if RLO = 1 and save RLO
Jump if RLO = 0 and save RLO
Jump if BR = 1
Jump if BR = 0
Jump if OV = 1
Jump if OS = 1
Jump if the result is zero
Jump if the result is not zero
Jump if the result is greater than zero
A5E33285102-AB
-(JMP)
-[JMP]
-(JMPN) -[JMPN]
LABEL
JMP_LIST
SWITCH
-(RET)
-[RET]
-(OPN)
-[OPN]
-(OPNI)
-[OPNI]
nn
nn
nn
nn
nn
nn
nn
nn
nn
JC
JCN
:
JL
JU
JCB
JNB
JBI
JNBI
JO
JOS
JZ
JN
JP
GOTO
nn
nn
nn
nn
nn
nn
nn
nn
nn
nn
nn
nn
nn
nn
nn
nn
nn
nn
Page 24
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AB
Technology
Communication
LAD / FBD
STL
(not S7-1200)
SCL
nn
nn
JM
JPZ
nn
nn
nn
nn
nn
JMZ
JUO
LOOP
nn
nn
nn
OPN
OPNI
CDB
L DBLG
nn
nn
nn
nn
L DBNO
nn
L DILG
nn
L DINO
nn
Page 25
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
Code blocks
Call block
LAD / FBD: only with S7-300/400
Conditional block call
Unconditional block call
Runtime control
Limit and enable password legitimation
Restart cycle monitoring time
Exit program
Get error locally
Get error ID locally
Compress CPU memory
Control CiR process
Initialize all retain data
Configure time delay
Change protection level
Measure program runtime
LAD and FBD: new
Safety only: Fail-safe acknowledgment from
an operator control and monitoring system
A5E33285102-AB
Communication
Technology
STL
(not S7-1200)
LAD / FBD
CALL
SCL
nn
CC
UC
nn
nn
ENDIS_PW
RE_TRIGR
STP
GET_ERROR
GET_ERR_ID
COMPRESS
CiR
INIT_RD
WAIT
PROTECT
RUNTIME
F_ACK_OP
Page 26
S7-300
S7-400
S7-1200
S7-1500
Basic instructions
Extended instructions
Description
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
INVERT
SCL
nn
DECO
ENCO
SEL
MUX
AND
OR
XOR
AND
DEMUX
AW
OW
XOW
AD
AND, &
OR
XOR
AND, &
OR
OD
OR
XOR
XOD
XOR
ROR
ROL
Page 27
S7-400
S7-1500
S7-300
S7-1200
Basic instructions
Extended instructions
Description
A5E33285102-AB
Communication
Technology
LAD / FBD
SHR
SHL
SHR
SHL
nn
STL
(not S7-1200)
SCL
SRW
SLW
SSI
SSD
SRD
SLD
RRD
RLD
RLDA
RRDA
SHR
SHL
nn
nn
nn
nn
SHR
SHL
nn
nn
L
L STW
LAR1
LAR1 <D>
LAR1 AR2
LAR2
LAR2 <D>
nn
nn
nn
nn
nn
nn
nn
Page 28
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
Transfer
Transfer
Transfer accumulator 1 to status word
Switch AR1 and AR2
Transfer AR1 to accumulator 1
Transfer AR1 to double word
Transfer AR1 to AR2
Transfer AR2to accumulator 1
Transfer AR2 to double word
Legacy
Implement sequencer
Implement sequencer
Discrete control-timer alarm
Motor control-timer alarm
Compare input bits with the bits of a mask
Compare scan matrix
Lead and lag algorithm
Create bit pattern for seven-segment display
Create tens complement
Count number of set bits
A5E33285102-AB
Technology
LAD / FBD
nn
Communication
STL
(not S7-1200)
SCL
T
T STW
CAR
TAR1
TAR1 <D>
TAR1 AR2
TAR2
TAR2 <D>
nn
nn
nn
nn
nn
nn
nn
nn
DRUM
DRUM_X
DCAT
MCAT
IMC
SMC
LEAD_LAG
SEG
BCDCPL
BITSUM
Page 29
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
Time accumulator
Save data to shift register
Shift bit to shift register
Get status bit
Call block
Save RLO in BR bit
Open MCR ranges
Close MCR ranges
Enable MCR range
Disable MCR range
Set bit array
Set byte array
Reset bit array
Reset byte array
Enter substitute value
Swap content of accumulators 1 and 2
Shift content to the next higher accumulator
Shift content to the next lower accumulator
Add accumulator 1 to AR1
Add accumulator 1 to AR2
A5E33285102-AB
Technology
LAD / FBD
nn
nn
nn
nn
nn
Communication
STL
(not S7-1200)
TONR_X
WSR
SHRB
A 0V
UC
SAVE
MCR(
)MCR
MCRA
MCRD
SET
SETI
RESET
RESETI
REPL_VAL
TAK
PUSH
POP
+AR1
+AR2
SCL
nn
nn
nn
nn
nn
nn
nn
nn
nn
nn
nn
nn
Page 30
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AB
Technology
Communication
LAD / FBD
STL
(not S7-1200)
SCL
nn
nn
nn
BLD
NOP 0
NOP 1
nn
nn
nn
Page 31
Basic instructions
Extended instructions
Technology
Communication
Page
Instruction groups
Page
Instruction groups
Page
43
34
Interrupts
39
44
Process image
36
Alarms
41
Table functions
44
Distributed I/O
36
Diagnostics
42
Addressing
45
PROFIenergy
38
Pulse
43
Additional instructions
46
S7-1500
39
S7-1200
S7-400
32
S7-300
Description
LAD / FBD
STL
(not S7-1200)
SCL
Combine times
T_COMBINE*
* SCL: Use conversion functions x_TO_y (z. B. TIME_TO_DINT) or comparator and math functions (e.g. +, -, >, <).
A5E33284667-AB
Page 32
S7-400
S7-1200
S7-1500
S7-300
Basic instructions
Extended instructions
Description
Time-of-day functions
Set time-of-day
Read time-of-day
Read local time
Write local time
Synchronize slave clocks
Read system time
Set time zone
Runtime meters
Set runtime meters
Start and stop runtime meters
Read runtime meters
Set time-of-day and time-of-day status
Synchronize slave clocks
Local time
Calculate local time
Calculate local time from base time
Calculate base time from local time
Set time-of-day interrupt using local time
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
WR_SYS_T
RD_SYS_T
RD_LOC_T
WR_LOC_T
SNC_RTCB
TIME_TCK
SET_TIMEZONE
RTM
SET_RTM
CTRL_RTM
READ_RTM
SET_CLKS
SNC_RTCB
LOC_TIME
BT_LT
LT_BT
S_LTINT
Page 33
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
A5E33285102-AB
Extended instructions
Description
Technology
LAD / FBD
Communication
STL
SCL
(not S7-1200)
SET_SW
TIMESTMP
SET_SW_S
S_MOVE
S_COMP
STRG_VAL
VAL_STRG
S_CONV
:=
=
STRG_...
_STRG
Strg_TO_Chars
Chars_TO_Strg
MAX_LEN
JOIN
SPLIT
ATH
HTA
Page 34
S7-300
S7-400
S7-1200
S7-1500
Basic instructions
A5E33285102-AB
Extended instructions
Description
Additional instructions
Determine the length of a character string
Combine character strings
Read the left characters of a character string
Read the right characters of a character string
Read the middle characters of a character string
Delete characters in a character string
Insert characters in a character string
Replace characters in a character string
Find characters in a character string
Runtime information
Read out name of a tag in the input parameter
Query combined global name of input parameter
assignment
Read out name of the block instance
Query combined global name of the block instance
Read out name of the block
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
LEN
CONCAT
LEFT
RIGHT
MID
DELETE
INSERT
REPLACE
FIND
GetSymbolName
GetSymbolPath
GetInstanceName
GetInstancePath
GetBlockName
Page 35
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
A5E33285102-AB
Extended instructions
Description
Process image
Update the process image inputs
Update the process image outputs
Synchronize the process image inputs
Synchronize the process image outputs
Distributed I/O
DP & PROFINET
Read data record
Write data record
Read process image
Transfer process image
Read process image area
Transfer process image area
Receive interrupt
Enable/disable DP slaves
Reconfigure IO system
To do this, switch modules on or off in order to, for
example, flexibly run through or bridge the
production steps of a manufacturing process.
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
UPDAT_PI
UPDAT_PO
SYNC_PI
SYNC_PO
RDREC
WRREC
GETIO
SETIO
GETIO_PART
SETIO_PART
RALRM
D_ACT_DP
ReconfigIOSystem
Page 36
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
Additional instructions
Read data record from I/O
Write data record to I/O
Read consistent data of a DP standard slave
Write consistent data of a DP standard slave
iDevice / iSlave
Receive data record
Make data record available
Send interrupt
PROFIBUS
Trigger hardware interrupt from DP standard slave
Synchronize DP slaves / Freeze inputs
Read diagnostics data from a DP slave
Determine topology for DP master system
ASi
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
RD_REC
WR_REC
DPRD_DAT
DPWR_DAT
RCVREC
PRVREC
SALRM
DP_PRAL
DPSYC_FR
DPNRM_DG
DP_TOPOL
ASi_3422
ASI_CTRL
Page 37
S7-1500
S7-1200
S7-400
S7-300
Basic instructions
A5E33285102-AB
Extended instructions
Description
PROFIenergy
IO controller
Start and exit energy-saving mode
Start and exit energy-saving mode / Read out
status information
Set the switching response of the power modules
Start and exit energy-saving mode using
WakeOnLan
iDevice / iSlave
Control PROFIenergy commands in the I-Device
Generate negative answer to command
Generate answer to command at start of pause
Generate answer to command at end of pause
Generate queried energy savings modes as
answer
Generate queried energy data as answer
Generate PEM status as answer
Generate number of PROFIenergy commands as
answer
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
PE_START_END
PE_CMD
PE_DS3_WRITE_ET200S
PE_WOL
PE_I_DEV
PE_Error_RSP
PE_Start_RSP
PE_End_RSP
PE_List_Modes_RSP
PE_Get_Mode_RSP
PE_PEM_Status_RSP
PE_Identify_RSP
Page 38
S7-1500
S7-1200
S7-400
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
PE_Measurement_List_RSP
PE_Measurement_Value_RSP
RD_DPAR
RD_DPARA
PARM_MOD
RD_DPARM
WR_PARM
WR_DPARM
ATTACH
DETACH
SET_CINT
QRY_CINT
SET_TINT
SET_TINTL
Page 39
S7-400
S7-1200
S7-1500
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
CAN_TINT
ACT_TINT
QRY_TINT
SRT_DINT
CAN_DINT
QRY_DINT
MSK_FLT
DMSK_FLT
READ_ERR
DIS_IRT
EN_IRT
DIS_AIRT
EN_AIRT
MP_ALM
Page 40
S7-1500
S7-1200
S7-400
S7-300
Basic instructions
Extended instructions
Description
Alarms
Generate program alarm with associated values
Get alarm status
Generate user diagnostics alarm that will be
entered in the diagnostics buffer.
Generate alarm message
Generate alarm message with acknowledgment
Create permanently acknowledged PLC alarms
D stands for Diagnostics (can be diagnosed) or
also for Delete (deletable)
Create acknowledgeable PLC alarms
D stands for Diagnostics (can be diagnosed) or
also for Delete (deletable)
Determine the acknowledgment status of the last
ALARM_SQ incoming alarm
S stands for short and C for check
Write a user diagnostics event to the diagnostics
buffer
Write user message
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
Program_Alarm
Get_AlarmState
Gen_UsrMsg
ALARM_S
ALARM_SQ
ALARM_D
ALARM_DQ
ALARM_SC
WR_USMSG
Page 41
S7-1500
S7-1200
S7-400
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
NOTIFY_8P
ALARM_8
ALARM_8P
NOTIFY
ALARM
AR_SEND
READ_SI
DEL_SI
EN_MSG
DIS_MSG
RD_SINFO
RT_INFO
OB_RT
Page 42
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
A5E33285102-AB
Extended instructions
Description
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
C_DIAG
RDSYSST
LED
Get_Name
GetStationInfo
DeviceStates
ModuleStates
GEN_DIAG
GET_DIAG
CTRL_PWM
RecipeExport
RecipeImport
DataLogCreate
DataLogOpen
DataLogWrite
Page 43
S7-1500
S7-1200
S7-400
S7-300
Basic instructions
A5E33285102-AB
Extended instructions
Description
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
DataLogClear
DataLogClose
DataLogDelete
DataLogNewFile
CREAT_DB
CREATE_DB
CREA_DBL
READ_DBL
WRIT_DBL
ATTR_DB
DEL_DB
DELETE_DB
TEST_DB
ATT
FIFO
TBL_FIND
LIFO
Page 44
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
A5E33285102-AB
Extended instructions
Description
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
TBL
TBL_WRD
WRD_TBL
DEV
CDT
TBL_TBL
PACK
GEO2LOG
LOG2GEO
LOG2MOD
IO2MOD
RD_ADDR
GEO_LOG
Page 45
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
LOG_GEO
RD_LGADR
GADR_LGC
LGC_GADR
SET_ADDR
Page 46
Basic instructions
A5E33285102-AB
Extended instructions
Technology
Communication
Page 47
Basic instructions
Extended instructions
Technology
Communication
Page
Instruction groups
Page
Instruction groups
Page
Time-controlled inputs/outputs
50
48
S7-300C functions
50
Motion control
51
S7-1500
49
S7-400
Function modules
S7-1200
48
S7-300
Description
Counting (and measuring)
Control fast counters
Fast counter for counting, measuring and
position detection
PID control
Compact PID
Universal PID controller with integrated
optimization for low hydraulic actuators
PID controller with integrated optimization for
valves and actuators
Temperature controller with integrated
optimization for temperature processes
A5E33284667-AB
LAD / FBD
STL
(not S7-1200)
SCL
CTRL_HSC
High_Speed_Counter
PID_Compact
PID_3Step
PID_Temp
Page 48
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
CONT_C
CONT_S
PULSEGEN
TCONT_CP
TCONT_S
TUN_EC
TUN_ES
CONT_C_SF
CONT_S_SF
PULSGEN_SF
Page 49
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
S7-300C functions
Position with analog output
Position with digital output
Control counter
Control frequency measurement
Control pulse width modulation
Time-controlled inputs/outputs
Synchronize TIO module
Read in process input signals with time stamp
Read in edges on digital input and associated
time stamp
Output process output signals time-controlled
Output edges at digital output time-controlled
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
ANALOG
DIGITAL
COUNT
FREQUENC
Pulse
TIO_SYNC
TIO_IOLink_IN
TIO_DI
TIO_IOLink_OUT
TIO_DQ
Page 50
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
Motion control
S7-1x00 motion control
Enable axis
Acknowledge error
Reference axis
Stop axis
Move axis to absolute position
Move axis to relative position
Traverse axis at set velocity
Traverse axis in jog mode
Execute axis jobs as motion sequence
Change dynamic settings of the axis
Write tag of positioning axis
Continuously read dynamic data of a
positioning axis
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
MC_Power
MC_Reset
MC_Home
MC_Halt
MC_MoveAbsolute
MC_MoveRelative
MC_MoveVelocity
MC_MoveJog
MC_CommandTable
MC_ChangeDynamic
MC_WriteParam
MC_ReadParam
Page 51
Basic instructions
Extended instructions
Technology
Communication
Page
52
55
66
S7 communication
52
Modbus TCP
56
PROFINET CBA
66
54
Communications processors
57
MPI communication
66
WEB server
55
S7-300C functions
65
TeleService
67
S7-300
S7-400
S7-1500
Page
S7-1200
Instruction groups
Description
A5E33285102-AB
LAD / FBD
Instruction groups
STL
(not S7-1200)
Page
SCL
SENDDP
RCVDP
GET
PUT
USEND
Page 52
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AB
Communication
Technology
LAD / FBD
STL
(not S7-1200)
SCL
URCV
BSEND
BRCV
C_CNTRL
SENDS7
RCVS7
Note: S stands for short,
because only one parameter is possible
GET_S
PUT_S
USEND_S
URCV_S
Page 53
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
TSEND_C
TRCV_C
TMAIL_C
TCON
TDISCON
TSEND
TRCV
T_RESET
T_DIAG
T_CONFIG
IP_CONFIG
TUSEND
TURCV
Page 54
S7-400
S7-1500
S7-300
S7-1200
Basic instructions
Extended instructions
Description
A5E33285102-AB
Communication
Technology
LAD / FBD
STL
(not S7-1200)
SCL
IP_CONF
FW_TCP
FW_IOT
WWW
F_FB_MP
F_FB_RNG_4
F_FB_RNG_16
F_FB_KTP_
Mobile
Page 55
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
Technology
LAD / FBD
A5E33285102-AB
Communication
STL
(not S7-1200)
SCL
MB_CLIENT
MB_SERVER
MODBUSPN
TCP_COMM
MOD_CLI
MOD_SRV
Page 56
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
LAD / FBD
Communications processors
Not for SIMATIC S7-1500 Software Controller CPU 150xS
Point-to-point or PtP communication
S7-300/400: Commands for ET200SP CM PtP
Configured communications parameters
dynamically
Configure PtP communications port
S7-300/400: only when using an ET200SP
CM PtP
Configure serial transmission parameters
dynamically
Configure PtP sender
Configure serial receive parameters
dynamically
Configure PtP recipient
Configure protocol
Transfer data of the send buffer
Send data
Enable receipt of messages
A5E33285102-AB
Communication
Technology
STL
(not S7-1200)
SCL
PORT_CFG
Port_Config
SEND_CFG
Send_Config
RCV_CFG
Receive_Config
P3964_Config
SEND_PTP
Send_P2P
RCV_PTP
Page 57
S7-400
S7-1200
S7-1500
S7-300
Basic instructions
Extended instructions
Description
Receive data
Delete receive buffer
Delete receive buffer
Query RS-232 signals
Read status
Set RS-232 signals
Set accompanying signals
Get extended functions
Set extended functions
USS communication
S7-300/400: Commands for ET200SP CM PtP
Edit communication via USS network
Communication by means of a USS network
Prepare and display data for the drive
Data exchange with the drive
Read out parameters from the drive
Read data from drive
Change parameters in the drive
Change data in drive
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
Receive_P2P
RCV_RST
Receive_Reset
SGN_GET
Signal_Get
SGN_SET
Signal_Set
Get_Features
Set_Features
USS_PORT
USS_Port_Scan
USS_Drive
USS_Drive_Control
USS_RPM
USS_Read_Param
USS_WPM
USS_Write_Param
Page 58
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
MODBUS (RTU)
S7-300/400: Commands for ET200SP CM PtP
Configure port on the PtP module for Modbus
RTU
Configure communications module for
Modbus
Communicate as Modbus master via PtP port
Communicate as Modbus master
Communicate as Modbus slave via PtP port
Communicate as Modbus slave
PtP link: CP 340
Receive data
Send data
Output message text with up to 4 tags on
printer
Delete receive buffer
Read accompanying signals on the RS-232C
interface
Read accompanying signals on the RS-232C
interface
A5E33285102-AB
Communication
Technology
LAD / FBD
STL
(not S7-1200)
SCL
MB_COMM_LOAD
Modbus_Comm_Load
MB_MASTER
Modbus_Master
MB_SLAVE
Modbus_Slave
P_RCV
P_SEND
P_PRINT
P_REST
V24_STAT_340
V24_SET_340
Page 59
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
P_RCV_RK
P_SND_RK
P_PRT341
V24_STAT
V24_SET
RECV_440
SEND_440
RES_RECV
V24_STAT_441
V24_SET_441
Page 60
S7-400
S7-1500
S7-300
S7-1200
Basic instructions
Extended instructions
Description
A5E33285102-AB
Communication
Technology
LAD / FBD
STL
(not S7-1200)
SCL
MODB_341
MODB_441
MODBUSCP
MB_CPCLI
MB_CPSRV
Note: S stands for serial
S_RCV
S_SEND
S_VSTAT
S_VSET
S_XON
S_RTS
Page 61
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
S_V24
S_MODB
S_USST
S_USSR
S_USSI
AG_SEND
AG_RECV
AG_LOCK
AG_UNLOCK
AG_CNTRL
AG_CNTEX
Page 62
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
PROFIBUS DP
Data transfer to the CP as DP master or DP
slave
Receipt of data from the CP as DP master or
DP slave
Request for diagnostics information
Transfer of control information to the
PROFIBUS CP
PROFINET IO
Data transfer to the CP as IO controller or IO
device
Receipt of data from the CP as IO controller
or IO device
Read data record or write data record in the
IO controller
Alarm evaluation by the CP 343-1 as IO
controller
A5E33285102-AB
Communication
Technology
LAD / FBD
STL
(not S7-1200)
SCL
DP_SEND
DP_RECV
DP_DIAG
DP_CTRL
PNIO_SEND
PNIO_RECV
PNIO_RW_REC
PNIO_ALARM
Page 63
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
PROFIenergy
Start or end the energy-saving pause
Extended starting or ending of the energysaving pause
Handling of the commands of the IO controller
in the PROFIenergy device
Transfer of the switch setting of power
modules to ET 200S
Additional instructions
Use of a logical trigger for ERPC
communication
Setup of FTP connections from and to an FTP
server
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
PE_START_END_CP
PE_CMD_CP
PE_I_DEV_CP
PE_DS3_Write_ET200_CP
LOGICAL_TRIGGER
FTP_CMD
Page 64
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
GPRSComm:CP 1242-7
Establish connection via the GSM network
Terminate connection via the GSM network
Send data via the GSM network
Receive data via the GSM network
Transfer configuration data to CP
S7-300C functions
ASCII, 3964
Send data (ASCII, 3964)
Receive data (ASCII, 3964)
Reset input buffer
(ASCII, 3964)
RK 512
Send data (RK 512)
Fetch data (RK 512)
Receive data and make available
(RK 512)
A5E33285102-AB
Communication
Technology
LAD / FBD
STL
(not S7-1200)
SCL
TC_CON
TC_DISCON
TC_SEND
TC_RECV
TC_CONFIG
SEND_PTP_300C
RCV_PTP_300C
RES_RCVB_300C
SEND_RK_300C
FETCH_RK_300C
SERVE_RK_300C
Page 65
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AB
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
I_GET
I_PUT
I_ABORT
PN_IN
PN_OUT
PN_DP
Note: X stands for the MPI interface
X_SEND
X_RCV
X_GET
Page 66
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AB
Communication
Technology
LAD / FBD
STL
(not S7-1200)
SCL
X_PUT
X_ABORT
TM_Mail
PG_DIAL
AS_DIAL
SMS_SEND
AS_MAIL
Page 67
Basic instructions
Extended instructions
Communication
Technology
S7-300
S7-400
S7-1200
S7-1500
Description
SIMATIC Ident
Read data from transponder
Read out data from code reading system
Reset reader
Set program on the code reading system
Write data to the transponder
Status queries
Read out status of the reader
Read out status of the transponder
Extended functions
Download configuration data to the reader
Back up configuration data of the reader
Detect transponder population
Read out EPC memory data of a transponder
Read out TID memory data of a transponder
Read out UID of a HF transponder
Switch on/off antennas of RF300 readers
A5E33285102-AB
LAD / FBD
STL
(not S7-1200)
SCL
Read
Read_MV
Reset_Reader
Set_MV_Program
Write
Reader_Status
Tag_Status
Config_Download
Config_Upload
Inventory
Read_EPC_Mem
Read_TID
Read_UID
Set_ANT_RF300
Page 68
S7-300
S7-400
S7-1200
S7-1500
Basic instructions
Extended instructions
Technology
Description
LAD / FBD
A5E33285102-AB
Communication
STL
(not S7-1200)
SCL
Set_ANT_RF600
Set_Param
Write_EPC_ID
Write_EPC_Mem
Advanced_CMD
Ident_Profile
Reset_MOBY_D
Reset_MOBY_U
Reset_MV
Reset_RF200
Reset_RF300
Reset_RF600
Reset_Un
Page 69
Siemens AG
Digital Factory
Postfach 48 48
90026 Nuremberg
GERMANY
www.siemens.com/automation