Mitsubishi Electronics 13JW55 Network Card User Manual


 
5 - 51
Project name QTEST5
Program name MAIN
5.7 Exercise
5.7.1 Exercise 1
MOV
Transfer the eight input statuses (X0 to X7) to D0 once then output them to Y70 to
Y77. (For example, Y70 turns on when X0 turns on.)
X0 Y70
X1 Y71
X2 Y72
X3 Y73
X4 Y74
X5 Y75
X6 Y76
X7 Y77
Create the following program with GX Works2 filling in the blanks .
Then, check the operation using the demonstration machine.
SM401
D0MOV
0
D0MOV
1)
2)
Hint
0/1
0/1
0/1
0/1
0/1
0/1
0/1
0/1
X0
X1
X2
X3
X4
X5
X6
X7
K2X0
(Input module)
0/1
0/1
0/1
0/1
0/1
0/1
0/1
0/1
D0
0/1
0/1
0/1
0/1
0/1
0/1
0/1
0/1
(Output module)
Y70
Y71
Y72
Y73
Y74
Y75
Y76
Y77
CPU
K2Y70
MOV
MOV
The CPU imports the input signal as "1" when it is on,
and imports as "0" when it is off.
The output module turns on when the CPU outputs "1",
and turns off when the CPU outputs "0".
Comparison
The following shows a program which is created with the sequence instructions, not
with the MOV instruction.
Y70
X0
Y71
X1
Y72
X2
Y73
X3
Y74
X4
Y75
X5
Y76
X6
Y77
X7
0
2
4
6
8
10
12
14
1)
2)