Time (time keyword), General – Yaskawa LEGEND-MC User Manual

Page 233

Advertising
background image

223

LEGEND-MC User’s Manual

TIME (Time Keyword)

[General]

DESCRIPTION:

The TIME operand contains the value of the internal free running, real time clock. The returned value
represents the number of servo loop updates and is based on the TM command. The default value for the
TM command is 1000. With this update rate, the operand TIME will increase by 1 count every update of
approximately 1000usec. Note that a value of 1000 for the update rate (TM command) will actually set an
update rate of 1/1024 seconds. Thus the value returned by the TIME operand will be off by 2.4% of the
actual time.

The clock is reset to 0 with a standard reset or a master reset.

The keyword, TIME, does not require an underscore (_) as with the other operands.

USAGE:

EXAMPLES:

Used as an Operand

Yes (without underscore)

Minimum value

-2147483647

Can be Interrogated

No

Maximum value

2147483647

Format

TIME

Distributed Control

No, Local

MG TIME

Display the value of the internal clock

Myvar = TIME

Assign TIME to Myvar

# Loop

Loop label

X = X + 1

Increment counter

JP # Loop, X, <500

Check if counter is less than 500

MG “Duration =”, TIME - Myvar

Print message

Advertising