Time To Wait: Time - Mitsubishi Electric R16MTCPU Programming Manual

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

Time to wait: TIME

Format
TIME(S)
Setting data
■Usable data
: Usable
Setting
Usable Data
data
Bit
Word device
device
16-bit
integer
type
(S)
■Description, data type of result
Setting data
Description
(S)
Waiting time (0 to 2147483647)[ms]
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)
TIME K60000
■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)
■Program which SETS (RSTs) a bit device when the specified time has elapsed
SET M100 = TIME K60000
Number of basic steps
8
Constant
32-bit
64-bit
16-bit
integer
floating
integer
type (L)
point
type
type (F)
(K/H)
Usable steps
F/FS
Calculation
expression
32-bit
64-bit
integer
floating
type
point
(K/H, L)
type (K)
4 OPERATION CONTROL PROGRAMS
G
Bit
Comparison
conditional
conditional
expression
expression
Data type of result
Logical type (true/false)
279
4.19 Other Instructions
4

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents