Class Pulse
Version 1.0
Modified 08-MAR-2026 11:05:32.00
Code rt_plc_macro_logic.h
 One-shot pulse with variable width.

 The object produces, on a leading edge on the input, a
 pulse with the duration specified by TimerTime.

 If the input try to trigger a Pulse object already
 propagating a pulse, the pulse is extended, as the
 pulse period, TimerTime, is counted from the last
 leading edge of the input signal.

Hints
 If a reset function is needed instead of a pulse with a
 certain period the pulse can be realized by a Wait, And,
 Or, Edge, and a SR_R object.


RtBody attributes pwr_sClass_pulse
Boolean in in Input trigger signal.
Boolean Status sts Specifies current status of the object.
Boolean StatusOld StatusOld Last In-value
Boolean TimerFlag   Indicates an active timer.
Pointer to Boolean TimerNext   Points to the next element in the timer queue.
UInt32 TimerCount   Points to a Do or Dv object or, if these are not used,
to TimerDoDum. After a time of TimerTime the signal
specified by TimerDo is cleared.
Pointer to Boolean TimerDO  
Float32 TimerTime   Specifies the pulse duration, in seconds. TimerTime has
to be ³ execution time of the PLC program containing
the object.

The effective time can, according to the current
CPU-load, be longer (e.g. one PLC program cycle in
slowly running PLC programs ) and shorter ( as
described for fast running PLC programs) than the time
specified by TimerTime.
Boolean TimerDODum   Dummy. If TimerDoDum does not point to a Do or Dv
object it points to this attribute.
Objid TimerObjDId   Identity of this object is set at load file creation.
Used by the run time system.
Int32 TimerAcc   The operator's authorities to change TimerTime. Not
implemented.

0 -- Changes not allowed.
!= 0 -- Changes allowed.
Float32 TimerMin   Specifies a valid interval at changes made by the
operator on TimerTime.

TimerMin <= TimerTime <= TimerMax
Float32 TimerMax  

DevBody attributes 
Boolean ShowTimerTime   Specifies if TimerTime is to be displayed in the symbol
of the Pulse object or not. FALSE means no displaying
and TRUE displaying. The unit is seconds.
PlcNode PlcNode  


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


Template Object
ShowTimerTime 1


Attributes detail


in Input
Class Input
Type Boolean
Flags STATE | RTVIRTUAL | NOEDIT | NOREMOVE
GraphName in
Body RtBody
 Input trigger signal.

Status Output
Class Output
Type Boolean
Flags STATE | NOEDIT | REDUTRANSFER
GraphName sts
Body RtBody
 Specifies current status of the object.

StatusOld Intern
Class Intern
Type Boolean
Flags STATE | NOEDIT | INVISIBLE | REDUTRANSFER
GraphName StatusOld
Body RtBody
 Last In-value

TimerFlag Intern
Class Intern
Type Boolean
Flags STATE | INVISIBLE | REDUTRANSFER
Body RtBody
 Indicates an active timer.

TimerNext Intern
Class Intern
Type Pointer to Boolean
Flags POINTER | STATE | INVISIBLE | PRIVATE
Body RtBody
 Points to the next element in the timer queue.

TimerCount Intern
Class Intern
Type UInt32
Flags STATE | INVISIBLE | REDUTRANSFER
Body RtBody
 Points to a Do or Dv object or, if these are not used,
 to TimerDoDum. After a time of TimerTime the signal
 specified by TimerDo is cleared.

TimerDO Intern
Class Intern
Type Pointer to Boolean
Flags POINTER | STATE | INVISIBLE | PRIVATE
Body RtBody

TimerTime Intern
Class Intern
Type Float32
Flags REDUTRANSFER
Body RtBody
 Specifies the pulse duration, in seconds. TimerTime has
 to be ³ execution time of the PLC program containing
 the object.

 The effective time can, according to the current
 CPU-load, be longer (e.g. one PLC program cycle in
 slowly running PLC programs ) and shorter ( as
 described for fast running PLC programs) than the time
 specified by TimerTime.

TimerDODum Intern
Class Intern
Type Boolean
Flags STATE | INVISIBLE
Body RtBody
 Dummy. If TimerDoDum does not point to a Do or Dv
 object it points to this attribute.

TimerObjDId Intern
Class Intern
Type Objid
Flags INVISIBLE
Body RtBody
 Identity of this object is set at load file creation.
 Used by the run time system.

TimerAcc Intern
Class Intern
Type Int32
Flags
Body RtBody
 The operator's authorities to change TimerTime. Not
 implemented.

  0   -- Changes not allowed.
  != 0 -- Changes allowed.

TimerMin Intern
Class Intern
Type Float32
Flags
Body RtBody
 Specifies a valid interval at changes made by the
 operator on TimerTime.

 TimerMin <= TimerTime <= TimerMax

TimerMax Intern
Class Intern
Type Float32
Flags
Body RtBody

ShowTimerTime Intern
Class Intern
Type Boolean
Flags
Body DevBody
 Specifies if TimerTime is to be displayed in the symbol
 of the Pulse object or not. FALSE means no displaying
 and TRUE displaying. The unit is seconds.

PlcNode Buffer
Class Buffer
Type PlcNode
Flags INVISIBLE
Body DevBody