Attention

IronPLC implements many parts of the IEC 61131-3 standard and is working toward full Structured Text support. Key features still missing include structures and user defined function blocks.

SUB_DT_TIME

Subtracts a duration from a date-and-time value.

IEC 61131-3

Section 2.5.1.5.8

Support

Supported

Signatures

#

Input (IN1)

Input (IN2)

Return Type

Support

1

DATE_AND_TIME

TIME

DATE_AND_TIME

Supported

Description

Returns a new DATE_AND_TIME offset from IN1 by subtracting the duration IN2. The duration is converted from milliseconds to seconds.

Example

See Also