OUTPUT_REF

The data type OUTPUT_REF contains data describing the state of a digital output. In addition to the switching state it contains time stamps for state changes.

TYPE OUTPUT_REF :
STRUCT
    Level                : BOOL;       (* current level of the digital output *)

    NextStateChangeValid : BOOL;       (* time value NextStateChange is valid *)
    NextStateChange      : T_DCTIME32; (* time of next state change - current level will be inverted *)

    NextOnTimeValid      : BOOL;       (* time value NextOnTime is valid *)
    NextOnTime           : T_DCTIME32; (* time when the digital output is turned ON next time *)

    NextOffTimeValid     : BOOL;       (* time value NextOffTime is valid *)
    NextOffTime          : T_DCTIME32; (* time when the digital output is turned OFF next time *)
END_STRUCT
END_TYPE

Level

Current switching state of the digital output

NextStateChangeValid

NextStateChangeValid is TRUE, if the time stamp NextStateChange is valid.

NextStateChange

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

NextOnTimeValid

NextOnTimeValid is TRUE, if the time stamp NextOnTime is valid.

NextOnTime

Time of the next positive switching edge (distributed clock TimeStamp)

NextOffTimeValid

NextOffTimeValid is TRUE, if the time stamp NextOffTime is valid.

NextOffTime

Time of the next negative switching edge (distributed clock TimeStamp)