Class StoAo
Version 1.0
Modified 08-MAR-2026 11:05:32.00
Code rt_plc_macro_io.h
 Stores an analog value ( e.g. output signal of the type
 pwr_tFloat32) on the specified local Ao object.

 The complete name of the Ao object has to be supplied;
 its last segment is shown in the right empty part of
 the symbol.

Example
 The current sum of Ai1 and Ai0 is calculated and stored in Ao0

RtBody attributes pwr_sClass_stoao
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
Ao-signal.

DevBody attributes 
AttrRef AoObject In Used by the PLC Editor. Specifies the complete name of
the current Ao object.
AttrRef SigChanCon   Used by the PLC Editor.
Int32 AoObjectSegments   Specifies how many segments of the Ao object name that
is to be displayed in the symbol of the StoAo object.
The segments are counted from behind.

0 and 1 both result in displaying the last segment of
the signal object name.
Boolean ShowSigChanCon   Specifies if the name on the channel object (
associated with the signal object) is to be displayed
in the symbol of the StoAo object or not. FALSE means
no displaying and TRUE displaying.
See also SigChanConSegments.
Int32 SigChanConSegments   Specifies, when ShowSigChanCon = TRUE, how many
segments of the channel object name that is to be
displayed in the symbol of the StoAo object. The
segments are counted from behind.
0 and 1 both result in displaying the last segment of
the channel object name.
PlcNode PlcNode  


GraphPlcNode
object_type 72
parameters[0] 1
parameters[1] 0
parameters[2] 0
parameters[3] 0
subwindows 0
graphmethod 7 (Get,Set)
graphindex 1
default_mask[0] 1
default_mask[1] 0
segname_annotation 0
devbody_annotation 1
compmethod 11
compindex 0
tracemethod 0
traceindex 0
connectmethod 5
executeordermethod 2
objname StoAo
graphname StoAo
debugpar


Template Object
AoObjectSegments 2
SigChanConSegments 2
ShowSigChanCon 1


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
 Ao-signal.

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

SigChanCon Intern
Class Intern
Type AttrRef
Flags INVISIBLE
Body DevBody
 Used by the PLC Editor.

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

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

ShowSigChanCon Intern
Class Intern
Type Boolean
Flags
Body DevBody
 Specifies if the name on the channel object (
 associated with the signal object) is to be displayed
 in the symbol of the StoAo object or not. FALSE means
 no displaying and TRUE displaying.
 See also SigChanConSegments.

SigChanConSegments Intern
Class Intern
Type Int32
Flags
Body DevBody
 Specifies, when ShowSigChanCon = TRUE, how many
 segments of the channel object name that is to be
 displayed in the symbol of the StoAo object. The
 segments are counted from behind.
 0 and 1 both result in displaying the last segment of
 the channel object name.

PlcNode Buffer
Class Buffer
Type PlcNode
Flags INVISIBLE
Body DevBody