Class StoNumSp
Version 1.0
Modified 08-MAR-2026 11:05:32.00
Code rt_plc_macro_string.h
 Store String parameter. Used in run time to write a number of characters in
 string parameters.

 Stores a specified number of characterns in a string value to specified string
 attribute in a local object. The receiving
 attribute may not concern a pointer.
 The last name segment of the object and the name of the
 parameter will be shown in the right empty part of the
 StoNumSp symbol.

RtBody attributes pwr_sClass_stonumsp
String80 In VAL The input is connected to an string attribute or left
open. In the latter case In is default a NULL string and not
adjustable in the run time system. The In attribute
specifies which value should be assigned to the
parameter.

DevBody attributes 
AttrRef Object sts Used by the PLC Editor. Specifies the complete name of
the current object.
Int32 ObjectSegments   Specifies how many segments of the actual object name
that is to be displayed in the symbol of the StoNumSp
object. The segments are counted from behind.

0 and 1 both result in displaying the last segment of
the actual object name.
Int32 NumberOfChar   Specifies number of character to copy.
If the string is shorter than NumberOfChar the string
and the NULL termination is copied. If the lengh of the
string is equal or greater than NumberOfChar, the NULL
termination is not copied. In this case the previous string
in the target attribut should be larger than NumberOfChar. If not,
the NULL termination is lost and the result is undefined.
PlcNode PlcNode  


GraphPlcNode
object_type 269
parameters[0] 1
parameters[1] 0
parameters[2] 0
parameters[3] 0
subwindows 0
graphmethod 15
graphindex 0
default_mask[0] 1
default_mask[1] 0
segname_annotation 0
devbody_annotation 1
compmethod 12
compindex 0
tracemethod 0
traceindex 0
connectmethod 7
executeordermethod 2
objname StoNumSp
graphname StoNumSp
debugpar


Template Object
ObjectSegments 2
NumberOfChar 79


Attributes detail


In Input
Class Input
Type String80
Flags RTVIRTUAL | DEVBODYREF
GraphName VAL
Body RtBody
 The input is connected to an string attribute or left
 open. In the latter case In is default a NULL string and not
 adjustable in the run time system. The In attribute
 specifies which value should be assigned to the
 parameter.

Object Intern
Class Intern
Type AttrRef
Flags
GraphName sts
Body DevBody
 Used by the PLC Editor. Specifies the complete name of
 the current object.

ObjectSegments Intern
Class Intern
Type Int32
Flags
Body DevBody
 Specifies how many segments of the actual object name
 that is to be displayed in the symbol of the StoNumSp
 object. The segments are counted from behind.

 0 and 1 both result in displaying the last segment of
 the actual object name.

NumberOfChar Intern
Class Intern
Type Int32
Flags
Body DevBody
 Specifies number of character to copy.
 If the string is shorter than NumberOfChar the string
 and the NULL termination is copied. If the lengh of the
 string is equal or greater than NumberOfChar, the NULL
 termination is not copied. In this case the previous string
 in the target attribut should be larger than NumberOfChar. If not,
 the NULL termination is lost and the result is undefined.

PlcNode Buffer
Class Buffer
Type PlcNode
Flags INVISIBLE
Body DevBody