Program Control - Siemens SIMATIC S7-200 Manual

Software conversion tool
Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

S7-200 instruction
TRUNC Truncate to integer
I_S Integer to String
DI_S Double Integer to String
R_S Real to String
S_I String to Integer
S_DI String to Double Integer
S_R String to Real
DECO Decode
ENCO Encode
ATH ASCII to Hex
HTA Hex to ASCII
ITA Integer to ASCII
DTA Double Integer to ASCII
RTA Real to ASCII
SEG Segment display driver
* Only S7-200 literal string (ex. "123456") input parameters are converted. Due to differences between the S7-200 and S7-
1200 string storage format, S7-200 string direct address and indirect address parameters are not converted.
4.9

Program control

Table 4- 9
Program control conversion
S7-200 LAD program instruction
JMP Jump to label execution control
LBL Label a program position
RET Return from subroutine
STOP Go to STOP mode
WDR Watch Dog Reset
FOR Indexed loop execution control
NEXT Increment loop index
END End program execution
DIAG_LED CPU diagnostic LED control
SCR Sequence Control Relay
SCRT Sequence Control Relay Transition
SCRE Sequence Control Relay End
SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool
Manual, 1/2010
Converted?
S7-1200 instruction
Yes
TRUNC
Yes *
VAL_STRG
Yes *
Yes *
Yes *
STRG_VAL
Yes *
Yes *
Yes
DECO
Yes
ENCO
No
No
No
No
No
No
Converted?
Yes
JMP
Yes
LBL The label for the S7_1200 JMP and LBL
instructions must be alphanumeric characters. The
S7-200 label identifier can only be a number. This
number must be converted from a number to an
equivalent set of characters, such as 1 converts to
label1.
Yes
RET
Yes
STP
Yes
RE_TRIGR
No
You must recreate FOR-NEXT loop logic with JMP,
LBL, ADD, and Compare instructions.
No
No
No
No
No
No
S7-200 LAD instruction conversion
4.9 Program control
S7-1200 LAD program instruction
27

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents