Mitsubishi Electronics Q173CPU(N) Home Security System User Manual


 
7 - 54
7 OPERATION CONTROL PROGRAMS
F/FS G
7.9.5 Bit device output : OUT
Refer to the Section "1.3.4" for the correspondence version of the Motion CPU and the
software.
Format OUT(D)=(S) Number of basic steps 4
[Usable data]
Usable Data
Word device Constant
Setting
data
Bit device
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)
Calculation
expression
Bit
conditional
expression
Comparison
conditional
expression
(D)
— — — — — — — — — —
(S)
— — — — — — — —
: Usable
[Setting data]
Setting data Description Data type of result
(D) Bit device for device output
(S) Condition data which determines device output
Bit logical type
(true/false)
[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