Class StoAtoIp
Version 1.0
Modified 08-MAR-2026 11:05:32.00
Code rt_plc_macro_io.h
 Store analog value to Integer parameter. Used in run time to write in
 integer parameters.

 Stores the value of an analog quantity ( e.g. output signal of the
 type pwr_tFloat32) on the specified 32-, 16-, or 8-bits integer
 parameter in a local object. The value is rounded to closest integer
 value.

 The last name segment of the object and the name of the
 parameter will be shown in the right empty part of the
 StoIp symbol.

RtBody attributes pwr_sClass_StoAtoIp
Float32 In VAL The input is connected to an analog signal or left
open. In the latter case In is default 0.0 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 attribute.
Int32 ObjectSegments   Specifies how many segments of the actual object name
that is to be displayed in the symbol of the StoAtoIp
object. The segments are counted from behind.

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


GraphPlcNode
object_type 259
parameters[0] 1
parameters[1] 0
parameters[2] 0
parameters[3] 0
subwindows 0
graphmethod 7 (Get,Set)
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 StoAtoIp
graphname StoAtoIp
debugpar


Template Object
ObjectSegments 2


Attributes detail


In Input
Class Input
Type Float32
Flags RTVIRTUAL | DEVBODYREF
GraphName VAL
Body RtBody
 The input is connected to an analog signal or left
 open. In the latter case In is default 0.0 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 attribute.

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 StoAtoIp
 object. The segments are counted from behind.

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

PlcNode Buffer
Class Buffer
Type PlcNode
Flags INVISIBLE
Body DevBody