![background image](http://html1.mh-extra.com/html/omron/trajexia-cj1w-mch72/trajexia-cj1w-mch72_operation-manual_742454266.webp)
All BASIC commands
Section 4-2
255
4-2-240 TICKS
/i
4-2-241 TIME
/i
4-2-242 TIME$
/i
Type
Task parameter
Syntax
TICKS
Description
The
TICKS
parameter contains the current count of the task clock
pulses.
TICKS
is a 32-bit counter that is decremented on each servo
cycle.
TICKS
can be written and read. It can be used to measure cycles
times, add time delays, etc.
Each task has its own
TICKS
parameter. Use the
PROC
modifier to
access the parameter for a certain task. Without
PROC
the current task
will be assumed.
Arguments
N/A
Example
delay:
TICKS = 3000
OP(9,ON)
test:
IF TICKS <= 0 THEN
OP(9,OFF)
ELSE
GOTO test
ENDIF
See also
N/A
Type
System parameter (read-only)
Syntax
TIME
Description
Returns the time from the real time clock. The time returned as an inte-
ger is the number of seconds since midnight 00:00:00.
Arguments
N/A
Example
>> PRINT TIME
>> 48002.0000
See also
N/A
Type
System command
Syntax
TIME$
Description
Prints the current time as defined by the real time clock as a string in 24-
hour format.
Arguments
N/A
Example
When the time is 13:20:00
>> PRINT TIME$
>> 13:20:00
See also
N/A
Содержание trajexia CJ1W-MCH72
Страница 69: ...Specifications Section 2 4 58...
Страница 83: ...FINS commands Section 3 4 72...
Страница 147: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...All BASIC commands Section 4 2 266...
Страница 278: ...267 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 371: ...360 Index...
Страница 373: ...362...