Professional Documents
Culture Documents
InfoPLC Net s7 1500 Compare Table Int Mnemo en US
InfoPLC Net s7 1500 Compare Table Int Mnemo en US
S7-1200 / S7-1500
Comparison list for programming languages based on the international mnemonics
Reference manual
Edition
02/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-AA
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
Industry Sector
Postfach 48 48
90026 NRNBERG, Germany
Comparison list for S7-300, S7-400, S7-1200, S7-1500
02/2014
A5E33284667-AA
Page 2
Basic instructions
Instructions that you use often, such as bit logic operations, timers, counters, math functions
Extended instructions
More intricate instructions for further options, for example date and time, interrupts, alarms, PROFIenergy
SIMATIC S7-1200 as of firmware 3.x; SIMATIC S7-1200 supports only LAD, FBD and SCL.
( )
nn
grayed
out
xyz
usable
usable with restrictions
not necessary
We recommend that you do not use the grayed out commands in the S7-1200 or S7-1500. The reason for this is
that these commands are not suitable for symbolic addressing or multi-instances. SIMATIC counters and timers
are not advisable because they are not capable of multi-instances.
New instruction as of V13
For this the SIMATIC S7-1200 requires at least firmware 4.0 and SIMATIC S7-1500 at least firmware 1.5
A5E33285102-AA
Page 3
A5E33284667-AA
Page 4
Basic instructions
Extended instructions
Technology
Communication
Page
Instruction groups
Page
Instruction groups
Page
21
VARIANT instructions
11
22
Timers
Move operations
13
22
Counters
Conversion operations
15
Additional instructions
23
Comparator operations
17
S7-1500
10
S7-400
Math functions
S7-1200
S7-300
General
Description
General
Insert network
Insert empty box
Open branch
Close branch
Insert input
Invert Boolean result
Bit logic operations
AND logic operation
A5E33285102-AA
LAD / FBD
-|
STL
(not S7-1200)
SCL
nn
nn
nn
(
)
nn
-|NOT|-
-o|
&
nn
NOT
&
Page 5
S7-400
S7-1500
S7-300
Extended instructions
S7-1200
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
A5E33284667-AA
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
<Operand>;
FP;
<Operand>;
FP;
R_TRIG
F_TRIG
FP
FN
nn
nn
nn
nn
nn
nn
nn
nn
nn
nn
Page 6
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AA
Communication
Technology
LAD / FBD
STL
(not S7-1200)
SCL
R_TRIG
F_TRIG
-||-|/|-
nn
nn
nn
nn
nn
nn
TP
TON
TOF
TONR
nn
nn
RESET_TIMER
PRESET_TIMER
nn
TP
SD
S_ODT
SF
S_OFFDT
nn
S_PULSE
Page 7
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33284667-AA
Technology
Communication
LAD / FBD
STL
(not S7-1200)
SCL
S_PEXT
nn
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
-(R)
-(SD)
-(SS)
-[R]
-[SD]
-[SS]
Page 8
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
Counters
IEC counters
Count up
Count down
Count up and down
SIMATIC counters
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-AA
Communication
Technology
LAD / FBD
STL
(not S7-1200)
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 9
S7-400
S7-1500
S7-300
S7-1200
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
Math functions
Calculate
Add
Subtract
Multiply
Divide
Return remainder of division
Create twos complement
Create ones complement
Increment
Decrement
Form absolute value
A5E33284667-AA
Technology
Communication
STL
(not S7-1200)
LAD / FBD
SCL
CMP >=
CMP <=
CMP >
CMP >
IN_RANGE
OUT_RANGE
-|OK|-|NOT_OK|-
>= I/D/R
<= I/D/R
> I/D/R
> I/D/R
>=
<=
>
<
nn
nn
nn
CALCULATE
ADD
SUB
MUL
DIV
nn
+
*
/
MOD
NEGI, NEGD
INVI, INVD
nn
+
*
/
NEG
INC
DEC
nn
nn
nn
nn
ABS
Page 10
S7-400
S7-1500
S7-1200
S7-300
Basic instructions
Extended instructions
Description
Get minimum
Get maximum
Set limit value
Form square
Form square root
Form natural logarithm
Form exponential value
Form sine value
Form cosine value
Form tangent value
Form arcsine value
Form arccosine value
Form arctangent value
Return fraction
Exponentiate
VARIANT instructions
Comparator operations
Check data type of a VARIANT tag
Check element data type of a VARIANT tag
A5E33285102-AA
Communication
Technology
LAD / FBD
STL
(not S7-1200)
SCL
MIN
MAX
LIMIT
SQR
SQRT
LN
EXP
SIN
COS
TAN
ASIN
ACOS
ATAN
FRAC
EXPT
**
FRAC
**
TypeOf
TypeOf
TypeOfElements TypeOfElements
Page 11
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33284667-AA
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
EQ_Type
nn
NE_Type
nn
EQ_ElemType
nn
NE_ElemType
nn
IS_NULL
NOT_NULL
IS_ARRAY
nn
nn
VariantGet
VariantPut
CountOfElements
MOVE_BLK_VARIANT
VARIANT_TO_DB_ANY
DB_ANY_TO_VARIANT
Page 12
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
() ()
Extended instructions
Description
Array-DB instructions
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
Move operations
Move value
S7-300/400: LAD and FBD only
Move data type from ARRAY of BYTE
(Deserialize)
Move data type to ARRAY of BYTE
(Serialize)
Read field
Recommendation: indexed access to an array
Write field
Recommendation: indexed access to an array
Move block
Move block uninterruptible
Fill block
Fill block uninterruptible
A5E33285102-AA
Communication
Technology
STL
(not S7-1200)
LAD / FBD
SCL
ReadFromArrayDB
WriteToArrayDB
ReadFromArrayDBL
WriteToArrayDBL
MOVE
:=
Deserialize
Serialize
FieldRead
FieldWrite
MOVE_BLK
UMOVE_BLK
FILL_BLK
UFILL_BLK
Page 13
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
Swap
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
A5E33284667-AA
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
SWAP
ReadLittle
WriteLittle
ReadBig
WriteBig
PEEK
PEEK_BOOL
POKE
POKE_BOOL
POKE_BLK
Page 14
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
Additional instructions
Recommendation: program symbolically
Move block
Move block uninterruptible
Fill block
Conversion operations
Convert value
S7-1200/1500: is performed implicitly, so
usually unnecessary.
Round numerical value
Generate next higher integer from floatingpoint number
Generate next lower integer from floatingpoint number
Truncate numerical value
Scale
S7-1200: FBD, LAD and SCL only
Normalize
S7-1200: FBD, LAD and SCL only
A5E33285102-AA
Communication
Technology
LAD / FBD
STL
(not S7-1200)
SCL
BLKMOV
UBLKMOV
FILL
CONV
CONVERT
ROUND
CEIL
RND
RND+
ROUND
CEIL
FLOOR
RND-
FLOOR
TRUNC
SCALE_X
NORM_X
Page 15
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33284667-AA
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
SCALE
UNSCALE
nn
nn
nn
nn
nn
BTI
ITB
BTD
DTB
ITD
BCD16_TO_INT
INT_TO_BCD16
BCD32_TO_INT
DINT_TO_BCD32
INT_TO_DINT
nn
DTR
DINT_TO_REAL
nn
INVI
nn
Page 16
S7-1500
S7-400
Extended instructions
S7-300
S7-1200
Basic instructions
A5E33285102-AA
Description
Communication
Technology
LAD / FBD
STL
(not S7-1200)
SCL
nn
INVD
nn
nn
nn
nn
nn
NEGI
NEGD
NEGR
CAW
nn
nn
nn
nn
nn
CAD
nn
IF THEN
IF THEN
ELSE
IF THEN
ELSIF
CASE OF
FOR TO DO
FOR TO BY
DO
Page 17
S7-400
S7-1200
Extended instructions
S7-300
S7-1500
Basic instructions
Description
A5E33284667-AA
Technology
LAD / FBD
Communication
STL
(not S7-1200)
RET
BEU
BEC
//
-(JMP)
-[JMP]
-(JMPN) -[JMPN]
LABEL
JMP_LIST
SWITCH
-(RET)
-[RET]
JC
JCN
:
JL
nn
nn
nn
JU
JCB
JNB
JBI
SCL
WHILE DO
REPEAT
UNTIL
CONTINUE
EXIT
RETURN
nn
//, (**)
GOTO
nn
nn
nn
nn
nn
nn
nn
nn
nn
nn
Page 18
S7-400
S7-1500
S7-300
S7-1200
Basic instructions
Extended instructions
Communication
Technology
Description
LAD / FBD
STL
(not S7-1200)
SCL
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
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
LAD / FBD: only with S7-300/400
Open data block in DI register
LAD / FBD: only with S7-300/400
Swap data block register
Load the length of a global data block into
accumulator 1
nn
nn
nn
nn
nn
nn
nn
nn
JNBI
JO
JOS
JZ
JN
JP
JM
JPZ
nn
nn
nn
nn
nn
nn
nn
nn
nn
nn
nn
JMZ
JUO
LOOP
nn
nn
nn
OPN
OPN DBx
nn
OPNi
OPN DIx
nn
CDB
L DBLG
nn
nn
A5E33285102-AA
Page 19
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33284667-AA
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
L DBNO
nn
L DILG
nn
L DINO
nn
CALL
nn
CC
UC
nn
nn
ENDIS_PW
RE_TRIGR
STP
GET_ERROR
GET_ERR_ID
INIT_RD
WAIT
Page 20
S7-400
S7-1500
S7-300
S7-1200
Basic instructions
Extended instructions
Description
A5E33285102-AA
Communication
Technology
LAD / FBD
STL
(not S7-1200)
SCL
PROTECT
RUNTIME
INV
nn
DECO
ENCO
SEL
MUX
AND
OR
XOR
AND
DEMUX
AW
OW
XOW
AD
AND, &
OR
XOR
AND, &
OR
OD
OR
XOR
XOD
XOR
Page 21
S7-400
S7-1500
()
()
S7-300
S7-1200
Basic instructions
Extended instructions
Description
A5E33284667-AA
Technology
LAD / FBD
SHR
SHL
SHR
SHL
nn
Communication
STL
(not S7-1200)
SCL
ROR
ROL
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
nn
nn
nn
nn
nn
Page 22
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33285102-AA
Technology
LAD / FBD
nn
Communication
STL
(not S7-1200)
SCL
LAR2
LAR2 <D>
nn
nn
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
Page 23
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33284667-AA
Technology
LAD / FBD
nn
nn
nn
Communication
STL
(not S7-1200)
BCDCPL
BITSUM
TONR_X
WSR
SHRB
A 0V
UC
SAVE
MCR(
)MCR
MCRA
MCRD
SET
SETI
RESET
RESETI
REPL_VAL
TAK
PUSH
POP
SCL
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-AA
Communication
Technology
LAD / FBD
STL
(not S7-1200)
SCL
nn
nn
nn
nn
nn
+AR1
+AR2
BLD
NOP 0
NOP 1
nn
nn
nn
nn
nn
Page 25
Basic instructions
Extended instructions
Communication
Technology
Page
Instruction groups
Page
Instruction groups
Page
36
String + char
28
Interrupts
32
37
Process image
29
Alarms
34
Table functions
37
Distributed I/O
30
Diagnostics
36
Addressing
38
PROFIenergy
31
Pulse
36
Additional instructions
39
S7-1500
32
S7-1200
S7-400
26
S7-300
Description
LAD / FBD
STL
(not S7-1200)
SCL
T_COMP*
T_CONV*
T_ADD*
T_SUB*
T_DIFF*
T_COMBINE*
* SCL: Use conversion functions x_TO_y (z. B. TIME_TO_DINT) or comparator and math functions (e.g. +, -, >, <).
A5E33285102-AA
Page 26
Basic instructions
A5E33285102-AA
Extended instructions
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
Set daylight saving time/standard time
without time-of-day status
Transfer time-stamped alarms
Set daylight saving time/standard time with
time-of-day status
Technology
Communication
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
SET_SW
TIMESTMP
SET_SW_S
Page 27
Basic instructions
A5E33284667-AA
Extended instructions
String + char
Convert several strings organized as an
array or PLC data type into one char array
with separators
Convert a char array into several strings
organized as an array or PLC data type
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
Convert ASCII string to hexadecimal
number (conversion is included in the
conversion functions, e.g.
CHAR_TO_WORD)
Convert hexadecimal number to ASCII
string
Technology
Communication
JOIN
SPLIT
S_MOVE
S_COMP
:=
=
S_CONV
STRG_VAL
VAL_STRG
STRG_...
_STRG
Strg_TO_Chars
Chars_TO_Strg
MAX_LEN
ATH
HTA
Page 28
Basic instructions
A5E33285102-AA
Extended instructions
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
Read out name of a tag in the input
parameter
Read out name of the block instance
Read out name of the block
Process image
Update the process image inputs
Update the process image outputs
Synchronize the process image inputs
Synchronize the process image outputs
Communication
Technology
LEN
CONCAT
LEFT
RIGHT
MID
DELETE
INSERT
REPLACE
FIND
GetSymbolName
GetInstanceName
GetBlockName
UPDAT_PI
UPDAT_PO
SYNC_PI
SYNC_PO
Page 29
Basic instructions
A5E33284667-AA
Extended instructions
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
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
Technology
Communication
RDREC
WRREC
GETIO
SETIO
GETIO_PART
SETIO_PART
RALRM
D_ACT_DP
RD_REC
WR_REC
DPRD_DAT
DPWR_DAT
RCVREC
PRVREC
SALRM
Page 30
Basic instructions
Extended instructions
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-AA
Communication
Technology
DP_PRAL
DPSYC_FR
DPNRM_DG
DP_TOPOL
ASi_3422
ASI_CTRL
PE_START_END
PE_CMD
PE_DS3_WRITE_ET200S
PE_WOL
PE_I_DEV
PE_Error_RSP
PE_Start_RSP
Page 31
Basic instructions
Extended instructions
A5E33284667-AA
Technology
Communication
PE_End_RSP
PE_List_Modes_RSP
PE_Get_Mode_RSP
PE_PEM_Status_RSP
PE_Identify_RSP
PE_Measurement_List_RSP
PE_Measurement_Value_RSP
RD_DPAR
RD_DPARA
PARM_MOD
RD_DPARM
WR_PARM
WR_DPARM
ATTACH
DETACH
Page 32
Basic instructions
A5E33285102-AA
Extended instructions
Cyclic interrupt
Set cyclic interrupt parameters
Query cyclic interrupt parameters
Time-of-day interrupt
Set time-of-day interrupt
Set time-of-day interrupt
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
Technology
Communication
SET_CINT
QRY_CINT
SET_TINT
SET_TINTL
CAN_TINT
ACT_TINT
QRY_TINT
SRT_DINT
CAN_DINT
QRY_DINT
MSK_FLT
DMSK_FLT
READ_ERR
DIS_IRT
EN_IRT
DIS_AIRT
Page 33
Basic instructions
Extended instructions
A5E33284667-AA
Technology
Communication
EN_AIRT
MP_ALM
Program_Alarm
Get_AlarmState
Gen_UsrMsg
ALARM_S
ALARM_SQ
ALARM_D
ALARM_DQ
ALARM_SC
Page 34
Basic instructions
A5E33285102-AA
Extended instructions
Communication
Technology
WR_USMSG
NOTIFY_8P
ALARM_8
ALARM_8P
NOTIFY
ALARM
AR_SEND
READ_SI
DEL_SI
EN_MSG
DIS_MSG
Page 35
Basic instructions
Extended instructions
Diagnostics
Read current OB start information
Read out runtime statistics
Determine OB program runtime
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
Read identification data and maintenance
data
Pulse
Pulse width modulation
Recipes & data logging
Recipe functions
Export recipe
Import recipe
A5E33284667-AA
Technology
Communication
RD_SINFO
RT_INFO
OB_RT
C_DIAG
RDSYSST
LED
Get_Name
GetStationInfo
DeviceStates
ModuleStates
GEN_DIAG
GET_DIAG
Get_IM_Data
CTRL_PWM
RecipeExport
RecipeImport
Page 36
Basic instructions
A5E33285102-AA
Extended instructions
Data logging
Create data log
Open data log
Write data log
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
Execute table instruction
Technology
Communication
DataLogCreate
DataLogOpen
DataLogWrite
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
TBL
Page 37
Basic instructions
A5E33284667-AA
Extended instructions
Technology
Communication
TBL_WRD
WRD_TBL
DEV
CDT
TBL_TBL
PACK
GEO2LOG
LOG2GEO
LOG2MOD
IO2MOD
RD_ADDR
Page 38
Basic instructions
A5E33285102-AA
Extended instructions
Additional instructions
Determine start address of a module
Determine the module slot belonging to a
logical address
Determine the IO addresses from the
hardware ID
Determine logical start address of a module
Determine the slot belonging to a logical
address
S7-1500: only exists to provide compatibility
- not recommended
Additional instructions
iSlave
Set network address as own iSlave
Technology
Communication
GEO_LOG
LOG_GEO
RD_LGADR
GADR_LGC
LGC_GADR
SET_ADDR
Page 39
Basic instructions
A5E33284667-AA
Extended instructions
Technology
Communication
Page 40
Basic instructions
Extended instructions
Technology
Communication
Page
Instruction groups
Page
41
S7-300C functions
43
S7-1500
43
S7-400
Function modules
S7-1200
41
S7-300
Description
A5E33285102-AA
LAD / FBD
Instruction groups
Page
Motion control
STL
(not S7-1200)
43
SCL
CTRL_HSC
High_Speed_Counter
PID_Compact
PID_3Step
Page 41
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33284667-AA
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 42
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
Function modules
Various instructions FM modules counting /
positioning / cam control / PID control /
temperature control
S7-300C functions
Position with analog output
Position with digital output
Control counter
Control frequency measurement
Control pulse width modulation
Motion control
S7-1x00 motion control
Enable axis
Acknowledge error
Reference axis
Stop axis
Move axis to absolute position
Move axis to relative position
A5E33285102-AA
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
ANALOG
DIGITAL
COUNT
FREQUENC
Pulse
MC_Power
MC_Reset
MC_Home
MC_Halt
MC_MoveAbsolute
MC_MoveRelative
Page 43
S7-1500
S7-400
S7-1200
S7-300
Basic instructions
Extended instructions
Description
A5E33284667-AA
Technology
LAD / FBD
Communication
STL
(not S7-1200)
SCL
MC_MoveVelocity
MC_MoveJog
MC_CommandTable
MC_ChangeDynamic
Page 44
Basic instructions
Extended instructions
Technology
Communication
Page
Instruction groups
Page
Instruction groups
Page
PROFINET CBA
55
46
S7-300C functions
54
MPI communication
55
WEB server
47
55
TeleService
56
Modbus TCP
47
/iDevice
S7-1500
48
S7-400
Communications processors
S7-1200
45
S7-300
S7 communication
Description
S7 communication
Read data from a remote CPU
Write data to a remote CPU
Send data uncoordinated
Receive data uncoordinated
Send data in segments
Receive data in segments
Query connection status
A5E33285102-AA
LAD / FBD
STL
(not S7-1200)
SCL
GET
PUT
USEND
URCV
BSEND
BRCV
C_CNTRL
Page 45
Basic instructions
Extended instructions
Additional instructions
A5E33284667-AA
Technology
Communication
TSEND_C
TRCV_C
TMAIL_C
TCON
TDISCON
TSEND
TRCV
T_RESET
T_DIAG
T_CONFIG
IP_CONFIG
Page 46
Basic instructions
Extended instructions
Additional instructions
Send data via Ethernet (UDP)
Receive data via Ethernet (UDP)
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
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-AA
Technology
Communication
TUSEND
TURCV
IP_CONF
FW_TCP
FW_IOT
WWW
MB_CLIENT
MB_SERVER
MODBUSPN
TCP_COMM
MOD_CLI
MOD_SRV
Page 47
Basic instructions
Extended instructions
Communications processors
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
Receive data
Delete receive buffer
Delete receive buffer
Query RS-232 signals
Read status
Set RS-232 signals
A5E33284667-AA
Technology
Communication
PORT_CFG
Port_Config
SEND_CFG
Send_Config
RCV_CFG
Receive_Config
P3964_Config
SEND_PTP
Send_P2P
RCV_PTP
Receive_P2P
RCV_RST
Receive_Reset
SGN_GET
Signal_Get
SGN_SET
Page 48
Basic instructions
Extended instructions
A5E33285102-AA
Technology
Communication
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
MB_COMM_LOAD
Modbus_Comm_Load
MB_MASTER
Modbus_Master
MB_SLAVE
Modbus_Slave
Page 49
Basic instructions
Extended instructions
A5E33284667-AA
Technology
Communication
P_RCV
P_SEND
P_PRINT
P_REST
V24_STAT_340
V24_SET_340
P_RCV_RK
P_SND_RK
P_PRT341
V24_STAT
V24_SET
RECV_440
SEND_440
RES_RECV
Page 50
Basic instructions
Extended instructions
A5E33285102-AA
Technology
Communication
V24_STAT_441
V24_SET_441
MODB_341
MODB_441
MODBUSCP
MB_CPCLI
MB_CPSRV
Note: S stands for serial
S_RCV
S_SEND
S_VSTAT
S_VSET
S_XON
Page 51
Basic instructions
Extended instructions
A5E33284667-AA
Technology
Communication
S_RTS
S_V24
S_MODB
S_USST
S_USSR
S_USSI
AG_SEND
AG_RECV
AG_LOCK
AG_UNLOCK
AG_CNTRL
AG_CNTEX
DP_SEND
DP_RECV
Page 52
Basic instructions
Extended instructions
A5E33285102-AA
Technology
Communication
DP_DIAG
DP_CTRL
PNIO_SEND
PNIO_RECV
PNIO_RW_REC
PNIO_ALARM
PE_START_END_CP
PE_CMD_CP
PE_I_DEV_CP
PE_DS3_Write_ET200_CP
Page 53
Basic instructions
Extended instructions
Additional instructions
Use of a logical trigger for ERPC
communication
Setup of FTP connections from and to an FTP
server
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)
A5E33284667-AA
Technology
Communication
LOGICAL_TRIGGER
FTP_CMD
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 54
Basic instructions
Extended instructions
A5E33285102-AA
Technology
Communication
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
X_PUT
X_ABORT
Page 55
Basic instructions
Extended instructions
TeleService
Transfer e-mail
Establish remote connection to PG/PC
Establish remote connection to AS
Send SMS message
Transfer e-mail
A5E33284667-AA
Technology
Communication
TM_Mail
PG_DIAL
AS_DIAL
SMS_SEND
AS_MAIL
Page 56
Siemens AG
Industry Sector
Postfach 48 48
90026 Nuremberg
GERMANY
www.siemens.com/automation