EasyManua.ls Logo

Mitsubishi Electric R32MTCPU - Time to Wait: TIME

Mitsubishi Electric R32MTCPU
354 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...
4 OPERATION CONTROL PROGRAMS
4.19 Other Instructions
279
4
Time to wait: TIME
Setting data
Usable data
: Usable
Description, data type of result
Processing details
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.
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.)
Operation error
An operation error will occur if:
(S) is an indirectly specified device and its device No. is outside the range.
The data (device data at indirect specification) specified with (S) is outside the range of 0 to 2147483647.
Program example
Program which sets a wait of 60 seconds (when constant is specified)
Program for a case where there may be a wait of 32768 to 65535 [ms] for 16-bit integer type
indirect designation (#0)
Program which SETS (RSTs) a bit device when the specified time has elapsed
Format Number of basic steps Usable steps
F/FS G
TIME(S) 8 
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)
16-bit
integer
type
(K/H)
32-bit
integer
type
(K/H, L)
64-bit
floating
point
type (K)
(S) 
Setting data Description Data type of result
(S) Waiting time (0 to 2147483647)[ms] Logical type (true/false)
TIME K60000
TIME ULONG(#0)
SET M100 = TIME K60000

Table of Contents

Other manuals for Mitsubishi Electric R32MTCPU

Related product manuals