EasyManuals Logo

Siemens Simatic S7 Series System Manual

Siemens Simatic S7 Series
726 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #322 background imageLoading...
Page #322 background image
Program instructions
7.15 String
S7-200 SMART
322 System Manual, 09/2015, A5E03822230-AC
7.15.2
Copy substring from string
LAD / FBD
STL
Description
SSCPY IN,
INDX, N, OUT
The copy substring from string instruction copies the assigned number of charac-
ters N from the string specified by IN, starting at the index INDX, to a new
string assigned by OUT.
Note: The SSTR_CPY instruction operates on bytes and not characters. Because
Chinese characters are not represented by a single byte, unexpected results can
occur with the SSTR_CPY instruction with strings containing Chinese characters.
If you know the number of bytes that a character string occupies, you can use the
SSTR_CPY instruction with the correct number of bytes.
Non-fatal errors with ENO=0
SM bits affected
0006H Indirect address
0091H Operand out of range
009BH Index = 0
None
Input / output
Data type
Operand
IN
STRING
VB, LB, *VD, *LD, *AC, Constant string
OUT
STRING
VB, LB, *VD, *LD, *AC
INDX, N
BYTE
IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *LD, *AC, Constant
Example: Copy substring instruction
AD
STL
Starting at the seventh byte after the
byte count in the string at VB0, copy 5
bytes to a new string at VB20.
Network 1
LD I0.0
SSCPY VB0, 7, 5, VB20

Table of Contents

Other manuals for Siemens Simatic S7 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens Simatic S7 Series and is the answer not in the manual?

Siemens Simatic S7 Series Specifications

General IconGeneral
CPUVaries by model (e.g., S7-300, S7-400, S7-1200, S7-1500)
Communication InterfacesPROFIBUS, PROFINET, Ethernet, MPI
ProgrammingTIA Portal, STEP 7
Programming LanguagesLAD, FBD, STL, SCL, GRAPH
I/O ModulesDigital, Analog, Specialty modules available
Operating Temperature0°C to 60°C (standard models)
MountingDIN rail mounting
Operating Voltage24V DC or 120/230V AC (varies by model)
Protection ClassIP20 (standard models)
MemoryVaries depending on the S7 model. Includes work memory (RAM) for program execution, load memory (EEPROM or Flash) for program storage, and system memory for operating system functions. Memory sizes range from kilobytes to megabytes.

Related product manuals