EasyManua.ls Logo

Mitsubishi Electric Q173DSCPU - Time to Wait: TIME

Mitsubishi Electric Q173DSCPU
556 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5 - 124
5 OPERATION CONTROL PROGRAMS
F/FS G
5.13.12 Time to wait : TIME
Format TIME(S) Number of basic steps 7
[Usable data]
Setting
data
Usable Data
Bit device
Word device Constant
Calculation
expression
Bit
conditional
expression
Comparison
conditional
expression
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)
(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
65535[ms] at (S), convert it into an unsigned 32-bit integer value with ULONG.
(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 65535[ms] for 16-bit
integer type indirect designation (#0)
TIME ULONG(#0)
(3) Program which SETS (RSTs) a bit device when the specified time has elapsed
SET M100 = TIME K60000

Table of Contents

Related product manuals