Справочник Пользователя для Mitsubishi Electronics 13JW55

Скачать
Страница из 350
 
 
5 - 9
 
 
 
5.2  Transfer Instruction 
Project name 
QB-11 
Program name 
MAIN 
5.2.1    MOV (P)      16-bit data transfer 
X7
T0
T0
1
T0
K50
C10
K1500
X1
C10
RST
13
X2
D0
T0
18
MOV
X3
D1
C10
21
MOVP
X4
D2
K157
24
MOVP
X5
D3
H4A9D
27
MOVP
2
3
0
D
S
 
 
 
 
1
●  When the input condition turns on, the current value of the timer T0 is transferred 
to the data register D0. 
S
... Source, 
D
... Destination 
● The current value of T0 is stored in the register in binary (BIN code). And the 
value is transferred to the data register D0 in binary (The code is not converted at 
the transfer.) 
0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1
T0
8
4
2
1
128 64 32 16
0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 1
D0
8
4
2
1
128 64 32 16
45
 
2
●  When the input condition turns on, the decimal number 157 is transferred to the
data register D2. And the value is stored in the register in binary. The decimal 
number (K) is converted into binary automatically, then transferred. 
0 0 0 0 0 0 0 0 1 0 0 1 1 1 0 1
D2
8
4
2
1
128 64 32 16
K157