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

ページ / 350
 
 
5 - 53
 
 
 
Project name 
QTEST7 
Program name 
MAIN 
5.7.3    Exercise 3   FMOV 
Create a program in which turning on X0 turns on the 64 outputs Y40 to Y7F and 
turning off X0 turns off the 64 outputs Y40 to Y7F. 
 
Create the following program with GX Works2 filling in the blanks            . 
Then, check the operation using the demonstration machine. 
X0
X0
0
5
K255
FMOV
1)
2)
K2Y40
FMOV
3)
K8
 
 
Hint
 
1
1
1
1
1
1
1
1
255
Y40
Y41
Y42
Y43
Y44
Y45
Y46
Y47
MOV
(Output card)
CPU
The constant is output from the CPU in the binary notation.
When 255 is output from Y40,
128
1
Y47
1
Y46
1
Y45
1
Y44
1
Y43
1
Y42
1
Y41
1
Y40
64
32
16
8
4
2
1
=1
+
2
+
4
+
8
+
16
+
32
+
64
+
128=255
In this exercise, a 64-point output module is used (Y40 to Y7F). 
How many blocks are required for 255 on the output basis?
 
1)  
 
2)  
 
3)  
 
 
 
Comparison
 
The following shows a program which is created with the sequence instructions, not 
with the FMOV instruction. The 130 steps are used. 
Y40
X0
Y41
Y42
Y7F
0