7 - 94
7 OPERATION CONTROL PROGRAMS
F/FS G
—
7.13.10 Time to wait : TIME
Format TIME(S) Number of basic steps 7
[Usable data]
Usable Data
Word device Constant
Setting
data
Bit device
16-bit
integer
type
32-bit
integer
type (L)
64-bit
floating
point
type (F)
Coasting
timer
16-bit
integer
type (K/H)
32-bit
integer type
(K/H, L)
64-bit
floating
point
type (K)
Calculation
expression
Bit
conditional
expression
Comparison
conditional
expression
(S) —
— —
— — — —
: Usable
[Setting data]
Setting data Description Data type of result
(S) Waiting time (0 to 2147483647)ms Logical type (true/false)
[Functions]
(1) A wait state continues for the time specified with (S). The result is false when the
elapsed time is less than the preset time, or the result is true and execution
transits when the preset time has elapsed.
(2) When a 16-bit integer type word device is used to specify any of 32768 to
65535ms at (S), convert it into an unsigned 16-bit integer value with USHORT.
(Refer to the program example.)
[Errors]
(1) An operation error will occur if:
• (S) is an indirectly specified device and its device No. is outside the range. ; or
• The data (device data at indirect specification) specified with (S) is outside the
range of 0 to 2147483647.
[Program examples]
(1) Program which sets a wait of 60 seconds (when constant is specified)
TIME K60000
(2) Program for a case where there may be a wait of 32768 to 65535ms for 16-bit
integer type indirect designation (#0)
TIME USHORT(#0)
(3) Program which SETS (RSTs) a bit device when the specified time has elapsed
SET M100 = TIME K60000