Class AtDtSub
Version 1.0
Modified 08-MAR-2026 11:05:32.00
Code rt_plc_macro_time.h
 Subtracts a delta time from an absolute time.

 AtDtAdd subtracts the second delta time input from the first absolute time
 input.

 The first input has to be connected to an absolute time, and
 the second to a delta time.
 The resulting output is an absolute time.

RtBody attributes pwr_sClass_AtDtSub
Time ATime ATim Minuend absolute time.
DeltaTime DTime DTim Subtrahend absolute time.
Time ActVal Val The result of the subtraction ATime - DTime. The result is an absolute time.

DevBody attributes 
PlcNode PlcNode  


GraphPlcNode
object_type 11
parameters[0] 2
parameters[1] 0
parameters[2] 1
parameters[3] 0
subwindows 0
graphmethod 1 (standard, common attributes)
graphindex 0
default_mask[0] 3
default_mask[1] 1
segname_annotation 1
compmethod 5
compindex 0
tracemethod 0
traceindex 0
executeordermethod 2
objname AtDtSub
graphname AtDtSub


Attributes detail


ATime Input
Class Input
Type Time
Flags STATE | RTVIRTUAL | NOEDIT | NOREMOVE
GraphName ATim
Body RtBody
 Minuend absolute time.

DTime Input
Class Input
Type DeltaTime
Flags STATE | RTVIRTUAL | NOEDIT | NOREMOVE
GraphName DTim
Body RtBody
 Subtrahend absolute time.

ActVal Output
Class Output
Type Time
Flags STATE | NOEDIT | REDUTRANSFER
GraphName Val
Body RtBody
 The result of the subtraction ATime - DTime. The result is an absolute time.

PlcNode Buffer
Class Buffer
Type PlcNode
Flags INVISIBLE
Body DevBody