Bit Device Output: Out - Mitsubishi Electric R16MTCPU Programming Manual

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

Bit device output: OUT

Format
OUT(D)=(S)
Setting data
■Usable Data
: Usable
Setting
Usable Data
data
Bit
Word device
device
16-bit
integer
type
(D)
(S)
■Description, data type of result
Setting data
Description
(D)
Bit device for device output
(S)
Condition data which determines device output
Processing details
• If the data specified with (S) is true, the bit data specified with (D) is set, and if the data specified with (S) is false, the bit
data specified with (D) is reset.
• When this instruction is set as a transition condition in the last block of a transient program, whether the data specified with
(S) is true or false is returned as logical type data.
• In this case, (S) cannot be omitted.
Operation error
An operation error will occur if:
• (D) or (S) is an indirectly specified device and its device No. is outside the range.
Program example
■Program which sets M100 when M0 is ON (1) and program which resets M100 when M0 is OFF
(0)
OUT M100 = M0
■Program which sets M100 when M0 and M1 are both on and resets M100 except it
OUT M100 = M0 * M1
■Program which sets M100 when D0 is equal to D2000 and resets M100 when D is not equal to
D2000
OUT M100 = (D0 == D2000)
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
Bit logical type (true/false)
183
4.11 Bit Device Controls
4

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents