Mitsubishi Electronics 13JW55 ユーザーズマニュアル

ページ / 350
 
 
5 - 25
 
 
 
Reference  
 If 
D
  is a bit device, the operation becomes as follows; 
 
FMOV instruction 
Input 
condition
D
S
K4
K2Y40
D0
FMOV
n
0 0 0 0 0 0 0 1 0 1 1 0 1 1 0 1
S
D0 (Example: when the content is 365)
As      specifies 
a two-digit number, 
these data are 
ignored.
D
0 1 1 0 1 1 0 1
Y48
Y4F
D
0 1 1 0 1 1 0 1
Y40
Y47
D
0 1 1 0 1 1 0 1
Y58
Y5F
D
0 1 1 0 1 1 0 1
Y50
Y57
D
n
4 devices (K4)
 
  Among the device of Y40 to Y5F, the devices specified as "1" are output first. 
 In the program shown below, turning on the input condition 1) turns on all the 
outputs Y40 to Y5F and turning on the input condition 2) turns them off. 
Input 
condition 1)
K4
K2Y40
K255
FMOV
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
Input 
condition 2)
K4
K2Y40
K0
FMOV
Bit pattern of K255
 
  In units of four bits, to turn off; 
16 bit devices or less 
 
MOV instruction 
 Example     
32 bit devices or less 
 
DMOV instruction 
 Example     
More than 32 bit devices 
  FMOV instruction 
 Example     
 
 
BMOV instruction 
Input 
condition
D
S
K4
K2Y40
D0
BMOV
n
5
Y48
n
4 devices (K4)
7
Y4F
5
Y40
1
Y47
5
Y58
5
Y5F
5
Y50
6
Y57
3
0
5
1
D0
3
0
5
7
D1
3
0
5
6
D2
3
0
5
5
D3
As      specifies 
a two-digit number, 
these data are 
ignored.
D
D
D
D
D
 
 In the example above, the devices D0 to D3 store the product code (16 bits). The 
BMOV instruction is useful for displaying and monitoring the last two digits 
representing their types. 
MOV K0 
K4M0
DMOV K0  K8M0
FMOV K0 K4M0
K4 
(Turns off 64 bit devices)