You are on page 1of 71

SIMATIC

S7-1200 / S7-1500
Comparison list for programming languages based on the international mnemonics
Reference manual

Edition

12/2014

Comparison list for S7-300, S7-400, S7-1200, S7-1500


Reference manual
Legal information
Warning notice system

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

Overview of the comparison list

Measuring runtime of instructions and program parts (see below)

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)

Annex: Optional instructions for SIMATIC Ident


Measuring runtime of instructions and program parts
The runtime of parts of the user program and instructions depend on numerous factors. A tabular list is therefore not possible.
The RUNTIME (runtime measurement) instruction is used to measure the runtime of the entire program, individual blocks or
command sequences. The runtime measurement starts with the first call of the RUNTIME instruction and ends with the
second call.
For the runtime measurement of individual instructions, you use an OB priority >15. As a result, Monitor online does not
falsify the runtime. You can find additional information in the SIMATIC STEP 7 online help. Enter Runtime in the search box.
Program example in SCL:
Common_Data.opt.Last_Cycle := RUNTIME(#Tag_Memory); //Start of runtime measurement, LReal
speed test FB opt_DB(ON_2:=i1,);//Runtime measurement through RUNTIME
Common_Data.opt.Last_Cycle := RUNTIME(#Tag_Memory); //End of runtime measurement
The Last_Cycle tag contains the time that has elapsed between the previous call and the current call of RUNTIME.

A5E33285102-AB

Page 3

Loading objects to the CPU


The table shows which changes and which changed blocks can be loaded in which operating mode.
Very complex programs can prevent loading in RUN mode. Possible solutions:

Use a memory card with sufficient capacity.

Select a CPU with sufficient work memory.

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

Download PLC program to


device and reset
New OB

STOP
(Reset)
RUN

STOP
(Reset)
RUN

STOP
(Reset)
STOP

STOP
(Reset)
RUN

STOP
(Reset)
STOP

STOP
(Reset)
STOP

STOP
(Reset)
RUN

Changed OB: Code changes,


change of comments
OB with changed properties
(e.g. cycle time change)
Deleted OB

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

Changes and blocks


New FB/FC/DB/PLC data type
(UDT)
Deleted FB/FC/DB/PLC data
type (UDT)
Changed FB/FC: Code change,
change of comments
Changed FB/FC: Interface
change
Changed DB (no memory
reserve configured): Name/type
of tags changed, tags added or
deleted
Changed DB (memory reserve
configured): New tags added
Changed PLC data type
(UDT)
Changed PLC tags (added,
deleted, name changed)

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

Changes and blocks

S7-300

Changed retentivity settings (bit STOP


memory area, DB area)
Motion Control technology
-objects: Changes to MC servo
cycle clock, change from
asynchronous to cyclic (and
vice-versa). Changes to the HW
interface of the TO

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

Structure of the comparison list

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

Technological instructions (technology)


Technological functions, such as PID control, Motion

Instructions for communication (communication)


Instructions for communication, e.g. S7 Communication, Open User Communication
Validity and framework conditions

SIMATIC STEP 7 as of Version 13, as of service pack 1

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.

STL: you have to call some instructions via CALL.


Legend

()
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

Instructions in the section "Basic instructions"


Instruction groups

Page

Instruction groups

Page

Instruction groups

Page

13

Word logic operations

27

Bit logic operations

Math functions

16

Shift and rotate instructions

27

Safety functions

10

Move

17

Load and transfer

28

Timers

11

Conversion operations

20

Legacy

29

Counters

13

Program control operations

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

Scan operand for negative signal edge

Extended instructions

Set operand on positive signal edge


Set operand on negative signal edge
Scan Boolean result for positive signal edge
Scan Boolean result for negative signal edge

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

Set tag on positive signal edge


Set tag on negative signal edge
Normally open contact
Normally closed contact
Safety functions
Safety only: EMERGENCY STOP up to Stop
category 1
Safety only: Two-hand monitoring
Safety only: Two-hand monitoring with enable
Safety only: Parallel muting with two or four
muting sensors
Safety only: Parallel muting with two or four
muting sensors
Safety only: 1oo2 (2v2) evaluation of two
single-channel encoders combined with a
discrepancy analysis
Safety only: Feedback monitoring
Safety only: Safety door monitoring

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

Safety only: Acknowledgment for


simultaneous reintegration of all F-I/O /
channels of the F-I/O of an F-runtime group
after communication errors and/or F-I/O /
channel errors
Timers
IEC timers
Generate pulse
Generate on-delay
Generate off-delay
Time accumulator
Time accumulator (start timer)
Reset timer
Load time duration
Generate pulse
Start on-delay timer
Start off-delay timer

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

Assign pulse timer parameters and start


Assign extended pulse timer parameters and

S_PULSE
S_PEXT

nn
nn

S_PULSE
S_PEXT

Assign on-delay timer parameters and start


Assign retentive on-delay timer parameters

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

Compare data type for EQUAL with the data type

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

Form cosine value


Form tangent value
Form arcsine value
Form arccosine value
Form arctangent value
Return fraction
Exponentiate
Move
Move value
S7-300/400: Only LAD and FBD
Safety only: Write value indirectly to an F-DB
Safety only: Read value indirectly from an FDB
Move data type from ARRAY of BYTE
(deserialize)
Move data type to ARRAY of BYTE (serialize)
Move block
Move block uninterruptible
Move block
Fill block

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

Do not fill block uninterruptible


Swap
ARRAY DB
Read from ARRAY data block
Write to ARRAY data block
Read from ARRAY data block in load memory
Write to ARRAY data block in load memory
Variant
Read out VARIANT tag value
Write VARIANT tag value
Get number of ARRAY elements

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

Convert integer (32 bit) to BCD


Convert integer (16 bit) to integer (32 bit)
S7-1500: The conversion is also performed
implicitly
Convert integer (32 bit) to floating-point
number; S7-1500: The conversion is also
performed implicitly
You can generally convert number formats
and data types into other number formats and
data types. For additional information, refer to
the STEP 7 information system
Create ones complement integer (16 bit)
S7-1500: The conversion is also performed
implicitly
Create ones complement double integer (32
bit); S7-1500: The conversion is also
performed implicitly
Negate integer (16 bit)
Negate integer (32 bit)
Negate floating-point number

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

Switch bytes in the right word of


accumulator 1
Switch all bytes in accumulator 1
Variant
Convert VARIANT to DB_ANY
Convert DB_ANY to VARIANT
Legacy
Recommendation: Program symbolically
Convert integer into a floating-point number
which is scaled in physical units between a
low and a high limit (scale).
Unscale floating-point number into physical
units between a low and a high limit and
convert into an integer (unscale).

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

Program control operations


Run conditionally
Branch conditionally

Branch conditionally multiple times

Create multiway branch, execute conditionally


Run in counting loop
Run in counting loop with step width

Run if condition is met


Run if condition is not met

Description

Recheck loop condition


Exit loop immediately
Exit block
Conditional block end
Inserting a comment section
Only SIMATIC S7-1500 Software Controller
CPU 150xS: Shut down or restart Windows
and the controller

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

Jump if the result is less than zero


Jump if the result is greater than or equal to
zero
Jump if the result is less than or equal to zero
Jump if the result is invalid
Loop
Data blocks
Open data block in DB register
Open data block in DI register
Swap data block register
Load the length of a global data block into
accumulator 1
Load the number of a global data block into
accumulator 1
Load the length of an instance data block into
accumulator 1
Load the number of an instance data block
into accumulator 1

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

Word logic operations


Create ones complement
Decode
Encode
Select
Multiplex
S7-300/400: SCL only
Demultiplex
AND logic operation word by word
OR logic operation word by word
EXCLUSIVE OR logic operation word by word
AND logic operation double word by double
word
OR logic operation double word by double
word
EXCLUSIVE OR logic operation double word
by double word
Shift and rotate instructions
Rotate right
Rotate left

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

Shift right word by word


Shift left word by word
Shift word by word with sign
Shift double word by double word with sign
Shift right double word by double word
Shift left double word by double word
Rotate right double word by double word
Rotate left double word by double word
Rotate left by status bit CC 1
Rotate right by status bit CC 1
Load and transfer the registers in STL
Load
Load
Load status word in accumulator 1
Load AR1 with contents of accumulator 1
Load AR1 with double word or area pointer
Load AR1 with contents of AR2
Load AR2 with contents of accumulator 1
Load AR2 with double word or area pointer

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

Status -||-(CALL) -[CALL]


-(SAVE) -[SAVE]
-(MCR<) -[MCR<]
-(MCR>) -[MCR>]
-(MCRA) -[MCRA]
-(MCRD) -[MCRD]

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

Program display (null instruction)


Null instruction
Null instruction

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

Instructions in the section "Advanced instructions"


Instruction groups

Page

Instruction groups

Page

Instruction groups

Page

Recipes & data logging

43

String and Character

34

Interrupts

39

Data block functions

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

Module parameter assignment

S7-400

32

S7-300

Date and time

Description

LAD / FBD

STL
(not S7-1200)

SCL

Date and time

Compare time tags


T_COMP*

Convert times and extract
T_CONV*

Add times
T_ADD*

Subtract times
T_SUB*

Time difference
T_DIFF*

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

Set daylight saving time/standard time without


time-of-day status
Transfer time-stamped alarms
Set daylight saving time/standard time with timeof-day status
String and Character
Move character string
Compare character strings
Convert character string
Convert character string to numerical value
Convert numerical value to character string
Convert character string to Array of CHAR
Convert Array of CHAR to character string
Determine the maximum length of a character
string
Join multiple character strings
Split character array in multiple strings
Convert ASCII string to hexadecimal number
(conv-ersion is included in the conversion
functions, e.g. CHAR_TO_WORD)
Convert hexadecimal number to ASCII string

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

Control ASi master behavior


Control ASi master behavior

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

Generate list of supported measured values as


answer
Generate queried measured values as answer
Module parameter assignment
Read module data record
Read module data record asynchronously
Transfer module data records
Read data record from configured system data
Write module data record
Transfer data record
Interrupts
Attach an OB to an interrupt event
Detach an OB from an interrupt event
Cyclic interrupt
Set cyclic interrupt parameters
Query cyclic interrupt parameters
Time-of-day interrupt
Set time-of-day interrupt
Set time-of-day interrupt

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

Cancel time-of-day interrupt


Enable time-of-day interrupt
Query status of time-of-day interrupt
Time-delay interrupt
Start time-delay interrupt
Cancel time-delay interrupt
Query time-delay interrupt status
Synchronous error events
Mask synchronous error events
Unmask synchronous error events
Read out event status register
Asynchronous error event
Disable interrupt event
Enable interrupt event
Delay execution of higher priority interrupts and
asynchronous error events
Enable execution of higher priority
interrupts and asynchronous error events
Trigger multicomputing interrupt

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

Report up to eight signal changes


P stands for process (associated values)
Create PLC alarms without associated values for
eight signals
Create PLC alarms with associated values for
eight signals
P stands for process (associated values)
Report a signal change
Create PLC alarms with acknowledgment display
Send archive data
Additional instructions
Read out dynamically assigned system resources
Delete dynamically assigned system resources
Enable PLC alarms
Disable PLC alarms
Diagnostics
Read current OB start information
Read out runtime statistics
Determine OB program runtime

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

Determine current connection status


Read system status list
Read LED status
Read out name of a module
Read out information of an IO device
Read module status information of an IO system
Read module status information of a module
Generate diagnostics information
Read diagnostics information
Pulse
Pulse width modulation
Recipes & data logging
Recipe functions
Export recipe
Import recipe
Data logging
Create data log
Open data log
Write data log

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

Empty data log


Close data log
Delete data log
Data log in new file
Data block functions
Create data block
Create data block
Create data block in the load memory
Read from data block in the load memory
Write to data block in the load memory
Read data block attributes
Delete data block
Delete data block
Test data block
Table functions
Add value to table
Output first value of the table
Find value in table
Output last value of the table

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

Execute table instruction


Copy value from table
Link value logically with table element and save
Calculate standard deviation
Correlated data tables
Link tables
Collect/distribute table data
Addressing
Determine the hardware ID from the slot
Determine the slot from the hardware ID
From the addressing of STEP 7 V5.5 SPx,
determine the hardware ID
Determine the hardware ID from an IO address
Determine the IO addresses from the hardware ID
Additional instructions
Determine start address of a module
S7-1500: only exists to provide compatibility - not
recommended

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

Determine the module slot belonging to a logical


address
S7-1500: only exists to provide compatibility - not
recommended
Determine the IO addresses from the
hardware ID
Determine hardware identifier from slot and offset
in the user data address area
Determine slot from hardware identifier
S7-1500: only exists to provide compatibility - not
recommended
Additional instructions
iSlave
Set network address as own iSlave

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

Instructions in the section "Technology"


Instruction groups

Page

Instruction groups

Page

Instruction groups

Page

Time-controlled inputs/outputs

50

PID cntrol compact PID

48

S7-300C functions

50

Motion control

51

S7-1500

49

S7-400

Function modules

S7-1200

48

S7-300

Counting (and measuring)

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

PID basic functions


Continuous controller
Step controller for integrating actuators
Pulse generator for proportional actuators
Continuous temperature controller with pulse
generator
Temperature controller for integrating actuators
Automatic optimization for a continuous
controller
Automatic optimization for a step controller
Integrated system functions
Continuous controller
Step controller for integrating actuators
Pulse generator for proportional actuators
Function modules
Various instructions FM modules counting /
positioning / cam control / PID control /
temperature control

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

Instructions in the section "Communication"


Instruction groups

Page

52

Fail-safe HMI Panels

55

Communication w. iSlave /iDevice

66

S7 communication

52

Modbus TCP

56

PROFINET CBA

66

Open User Communication

54

Communications processors

57

MPI communication

66

WEB server

55

S7-300C functions

65

TeleService

67

S7-300

S7-400

S7-1500

Page

PROFINET and PROFIBUS

S7-1200

Instruction groups

Description

PROFINET and PROFIBUS


Safety only: Fail-safe sending of data via
PROFIBUS DP/PROFINET IO
Safety only: Fail-safe receiving of data via
PROFIBUS DP/PROFINET IO
S7 communication
Read data from a remote CPU
Write data to a remote CPU
Send data uncoordinated

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

Receive data uncoordinated


Send data in segments
Receive data in segments
Query connection status
Safety only: Fail-safe sending of data via S7
connections
Safety only: Fail-safe receiving of data via S7
connections
Additional instructions

Read data from a remote CPU


Write data to a remote CPU
Send data uncoordinated
Receive data uncoordinated

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

Open User Communication


Manage the communications connection and
send data via Ethernet
Manage the communications connection and
receive data via Ethernet
Manage the communications connection and
transfer e-mail
Additional instructions
Establish communications connection
Terminate communications connection
Send data via communications connection
Receive data via communications connection
Reset connection
Check connection
Configure interface
Program-controlled IP and connection
configuration via SEND/RECEIVE
Send data via Ethernet (UDP)
Receive data via Ethernet (UDP)

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

Change IP configuration parameters


Exchange data using FETCH and WRITE via
TCP
Exchange data using FETCH and WRITE via
ISO-on-TCP
WEB server
Synchronize user-defined Web pages
Fail-safe HMI Panels
For Mobile Panel 277 F IWLAN:
Communication via PROFISafe with
connected device
For Mobile Panel 277 F IWLAN:
Managing up to 4 panels in the effective
range
For Mobile Panel 277 F IWLAN:
Managing up to 16 panels in the effective
range
For second-generation mobile panels:
Communication via PROFIsafe with
connected device

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

For second-generation mobile panels:


F_FB_KTP_RNG
Managing panels in the effective range
Modbus TCP
Communicate as Modbus TCP client via
PROFINET
Communicate as Modbus TCP server via
PROFINET
Establish communication between a CPU with
an integrated PN interface and a partner that
supports the Modbus/TCP protocol.
Connection management
Communicate as Modbus TCP client via
Ethernet
Communicate as Modbus TCP server via
Ethernet

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

PtP link: CP 341


Receive data or make data available
Send or fetch data
Output message text with up to 4 tags on
printer
Read accompanying signals on the RS-232C
interface
Write accompanying signals on the RS-232C
interface
PtP link: CP 440
Receive data
Send data
Delete receive buffer
PtP link: CP 441
Read accompanying signals on the RS-232C
interface
Write accompanying signals on the RS-232C
interface

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

MODBUS slave (RTU)


Modbus slave instruction for CP 341
Modbus slave instruction for CP 441
MODBUS: CP 443
Establish communication between
a CP and a partner that supports the
OPEN MODBUS/TCP protocol
Communicate as Modbus client
Communicate as Modbus server
ET 200S serial interface
Receive data
Send data
Read accompanying signals on the RS-232C
interface
Write accompanying signals on the RS-232C
interface
Set data flow control using XON/XOFF
Set data flow control using RTS/CTS

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

Set data flow control using auto. control of the


RS-232C accompanying signals
Modbus slave instruction for ET 200S 1SI
Send data to a USS slave
Receive data from a USS slave
Initialize USS
SIMATIC NET CP
Open User Communication
Transfers data to the CP for transmission via
a configured connection
Transfers jobs to the CP to accept received
data
Blocks the data exchange via a connection
using FETCH/WRITE
Diagnostics of connections
Diagnostics of connections
Connection diagnostics, connection
establishment, ping request

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

Communication with iSlave


Read data of a communications partner within
own S7 station
Write data of a communications partner within
own S7 station
Abort connection to the communications
partner within own S7 station
PROFINET CBA
Update inputs of the user program interface
Update outputs of the user program interface
Break DP interconnections
MPI communication
Send data to communications partner outside
own S7 station
Receive data from communications partner
outside own S7 station
Read data from communications partner
outside own S7 station

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

Write data to communications partner outside


own S7 station
Abort existing connection to the
communications partner outside own S7
station
TeleService
Transfer e-mail
Establish remote connection to PG/PC
Establish remote connection to AS
Send SMS message
Transfer e-mail

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

Appendix: optional instructions

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

Switch on/off antennas of RF620R/RF630R


Set UHF parameters in the reader
Write EPC ID of a UHF transponder
Write to EPC memory of a UHF transponder
Ident function for trained users with command
transfer to a data structure
Sophisticated Ident function for experts with all
commands and options
Additional reset functions
Reset MOBY D reader
Reset MOBY U reader
Reset MV code reader
Reset RF200 reader
Reset RF300 reader
Reset RF600 reader
Reset function for experts allows universally
adjustable parameters

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

Subject to change without prior notice.


A5E33285102-AB
Siemens AG 2014

You might also like