Mitsubishi Electronics Q173CPU(N) ユーザーズマニュアル

ページ / 472
 
 
 
7 - 52 
7   OPERATION CONTROL PROGRAMS  
 
F/FS G 
 
 
7.9.3 Device output : DOUT  
Format 
DOUT(D), (S) 
 
Number of basic steps 
 
[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 
 
(Note-1) : PX and special M cannot be used at (D). 
(Note-2) : Range including M2000 to M2127 cannot be used at (D). 
 
[Setting data] 
 
Setting data 
Description 
Data type of result 
(D) 
Output destination bit data  
(S) 
Output source data  
Batch bit  
 
[Functions] 
(1)   The data specified with (S) is output to the bit data specified with (D).  
 
(2)   Specify a multiple of 16 as the device No. of the bit data specified with (D).  
 
(3)   If the type of (S) is a 16-bit integer type, 16 points of the (S) data, starting at the 
least significant bit, are output in order to the bit devices headed by the one 
specified with (D).  
 
(4)   If the type of (S) is a 32-bit integer type, 32 points of the (S) data, starting at the 
least significant bit, are output in order to the bit devices headed by the one 
specified with (D).  
 
[Errors] 
(1)   An operation error will occur if:  
•  (D) or (S) is an indirectly specified device and its device No. is outside the 
range.  
•  (D) is an indirectly specified device and its device No. is not a multiple of 16.  
 
[Program examples] 
(1)   Program which outputs the data of D0 to Y0-YF  
 
DOUT Y0, D0  
 
 
D0 
 
0 0 1 0 0 1 1 1 0 0
 
0
 
0
 
1
 
1
 
1
 
1
 
b0
 
b15
 
0
 
0
 
1
 
0
 
0
 
1
 
1
 
1
 
0
 
0 0 0 1 1 1 1
Y0
YF