Class CStoATv
Version 1.0
Modified 15-JAN-2025 13:23:35.00
Kod rt_plc_macro_time.h
 Conditional storage of absolute time value.

 Conditional storage of an absolute time value on a specified
 local ATv object.
 Conditional is aimed at the con-input, which is
 supposed to be connected.

 The conditional input signal can be inverted by means
 of the Attribute Editor.

 The time input can be connected to an output of type Time.
 It can also be hidden and instead, a constant time can be inserted,
 as a value of the input. The constant time is displayed in the plc-sheet.

 It is not allowed, by means of a function in C or PLC
 programs, to write in any of the inputs.

RtBody attributes pwr_sClass_CStoATv
Time In VAL Input time.
Boolean Cond con Specifies whether a storage will be done or not. FALSE
means no storage and TRUE means storage of an analog
value.

DevBody attributes 
AttrRef ATvObject In Specifies the name of the object where to store the
value.
Int32 ATvObjectSegments   Specifies how many segments of the ATv object name that
is to be displayed in the symbol of the CStoSv object.
The segments are counted from behind.
PlcNode PlcNode  


GraphPlcNode
object_type 280
parameters[0] 2
parameters[1] 0
parameters[2] 0
parameters[3] 0
subwindows 0
graphmethod 15
graphindex 1
default_mask[0] 3
default_mask[1] 0
segname_annotation 0
devbody_annotation 1
rtbody_annotation 1
compmethod 11
compindex 0
tracemethod 0
traceindex 1
connectmethod 30
executeordermethod 2
objname CStoATv
graphname CStoATv
debugpar Cond


Template Object
Cond 1


Attributes detail


In Input
Klass Input
Typ Time
Flags RTVIRTUAL | DEVBODYREF | NOREMOVE | NOEDIT
GraphName VAL
Kropp RtBody
 The input is connected to a time value or left
 open. In the latter case the value of In, is considered
 to be stored.

Cond Input
Klass Input
Typ Boolean
Flags STATE | RTVIRTUAL | DEVBODYREF | NOEDIT
GraphName con
Kropp RtBody
 Specifies whether a storage will be done or not. FALSE
 means no storage and TRUE means storage of an analog
 value.

ATvObject Intern
Klass Intern
Typ AttrRef
Flags
GraphName In
Kropp DevBody
 Specifies the name of the object where to store the
 value.

ATvObjectSegments Intern
Klass Intern
Typ Int32
Flags
Kropp DevBody
 Specifies how many segments of the ATv object name that
 is to be displayed in the symbol of the CStoSv object.
 The segments are counted from behind.

PlcNode Buffer
Klass Buffer
Typ PlcNode
Flags INVISIBLE
Kropp DevBody