String Instructions - Siemens Simatic S7-200 System Manual

Hide thumbs Also See for Simatic S7-200:
Table of Contents

Advertisement

S7-200 Programmable Controller System Manual

String Instructions

String Length
The String Length instruction (SLEN) returns the length of the string
specified by IN.
Copy String
The Copy String instruction (SCPY) copies the string specified by IN
to the string specified by OUT.
Concatenate String
The Concatenate String instruction (SCAT) appends the string
specified by IN to the end of the string specified by OUT.
SM Bits and ENO
6
For the String Length, Copy String, and Concatenate String
instructions, the following conditions affect ENO.
Error conditions that set ENO = 0
H 0006 (indirect address)
H 0091 (range error)
Table 6-61
Inputs/Outputs Data Types
IN
OUT
Table 6-62
Inputs/Outputs Data Types
IN, OUT
184
Valid Operands for the String Length Instruction
Operands
BYTE (String)
VB, LB, *VD, *LD, *AC
BYTE
IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *LD, *AC
Valid Operands for the Copy String and Concatenate String Instructions
Operands
BYTE (String)
VB, LB, *VD, *LD, *AC

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents