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

ページ / 472
 
 
 
7 - 53 
7   OPERATION CONTROL PROGRAMS  
 
F/FS G 
 
 
7.9.4 Device input : DIN  
Format 
DIN(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 
 
[Setting data] 
 
Setting data 
Description 
Data type of result 
(D) 
Input destination data  
(S) 
Input source bit data  
Data type of (D)  
(Integer type)  
 
[Functions] 
(1)   The bit data specified with (S) is input to the data specified with (D).  
 
(2)   Specify a multiple of 16 as the device No. of the bit data specified with (S).  
 
(3)   If the type of (D) is a 16-bit integer type, 16 points of the (D) data, starting at the 
least significant bit, are input in order to the bit devices headed by the one 
specified with (S).  
 
(4)   If the type of (D) is a 32-bit integer type, 32 points of the (D) data, starting at the 
least significant bit, are input in order to the bit devices headed by the one 
specified with (S).  
 
[Errors] 
(1)   An operation error will occur if:  
•  (D) or (S) is an indirectly specified device and its device No. is outside the 
range.  
•  (S) is an indirectly specified device and its device No. is not a multiple of 16.  
 
[Program examples] 
(1)   Program which inputs the data of X0-XF to D0  
 
DIN D0, X0  
 
 
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
 
X0 
XF