ST_SwitchEvent

TYPE ST_SwitchEvent : 
STRUCT 
    ID       : UDINT; 
    Valid    : BOOL;       (* time value is valid *) 
    Level    : BOOL;       (* next level of the digital signal *) 
    Position : LREAL; 
    DcTime   : T_DCTIME32; (* time when the digital output changes *) 
    Duration : DINT; 
END_STRUCT 
END_TYPE

Name

Type

Description

ID

UDINT

Internal ID of the switching edge

Valid

BOOL

Valid is TRUE if the DcTime timestamp is valid.

Level

BOOL

Current switching state of the digital output

Position

LREAL

Switching position of the switching operation

DcTime

T_DCTIME32

Time of the next change of state (distributed clock TimeStamp)

Duration

DINT

Not used