beautypg.com

Datecompare, Parameters, Error description – Yaskawa MotionWorks IEC Toolboxes User Manual

Page 536: Datacompare

background image

Yaskawa Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

523

DateCompare

This function block will calculate the difference between two real time clock values and provide the difference as a
real time clock value. The clock values may be obtained using the RealTimeClock function block.

Parameters

*

Parameter

Data
Type

Description

VAR_INPUT

Default

B

Enable

BOOL

The function will continue to execute while enable
is held high.

FALSE

V

Clock1

RTCStruct

The first (older) real time clock value

N/A

V

Clock2

RTCStruct

The second (newer) real time clock value

N/A

VAR_OUTPUT

B

Valid

BOOL

Indicates that the outputs of the function are valid.

B

Error

BOOL

Set high if error has occurred during the execution of the function
block. This output is cleared when 'Execute' or 'Enable' goes low.

E

ErrorID

UINT

If Error is true, this output provides the Error ID. This output is
reset when 'Execute' or 'Enable' goes low.

V

ClockDiff

RTCStruct

Outputs the time difference between Clock1 and Clock2

Error Description

There will be no Errors reported.