EasyManua.ls Logo

Mitsubishi Electric Q173DSCPU - Bit Device Output: out

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 - 61
5 OPERATION CONTROL PROGRAMS
F/FS G
5.9.5 Bit device output : OUT
Format OUT(D)=(S) Number of basic steps 4
[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)
(D)
(S)
: Usable
[Setting data]
Setting data Description Data type of result
(D) Bit device for device output
Bit logical type
(true/false)
(S) Condition data which determines device output
[Functions]
(1) 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.
(2) 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.
(3) In this case, (S) cannot be omitted.
[Errors]
(1) An operation error will occur if:
• (D) or (S) is an indirectly specified device and its device No. is outside the
range.
[Program examples]
(1) Program which sets M100 when M0 is ON (1) and program which resets M100
when M0 is OFF (0)
OUT M100 = M0
(2) Program which sets M100 when M0 and M1 are both on and resets M100 except
it
OUT M100 = M0 * M1
(3) Program which sets M100 when D0 is equal to D2000 and resets M100 when D is
not equal to D2000
OUT M100 = (D0 == D2000)

Table of Contents

Related product manuals