Mitsubishi Electric melsec-k Programming Manual page 35

Hide thumbs Also See for melsec-k:
Table of Contents

Advertisement

(1) Storage in D O of the cpnstant
K
(1 2 3 4)
(Coding)
0
L D
Xo
1 2 3 4
0
pL,+*===
1
M O V
2
K
3
DO
Fig. 4-28. Constant set by MOV
For storage of 1 2 3 4 (4 digit decimal number) in D O (16-bit register), storage is executed
after automatic conversion to binary numbers. Accordingly, it should be remembered that
the data are handled as binary numbers (BIN) in the programmable controller. BCD/BIN
conversion is executed in principle only with input and output of data via the input/output
unit.
+
Refer to the items in regard to BIN, BCD conversion.
(2) Take-in of the input signal from Xlo
-
1F
into Dlo.
1
M O V
2
K 4
XI
0
I
I
Fig. 4-29. Data input by MOV
By specifying "K4X10", the input of
4
"X"
input (X10 to 1F) as 4 x , 4
=
16
bits, is handled.
K indicates the number (1
-
4) of digits (1 digit of 4 bits).
Accordingly, as the data of D10 are in the status of X10 to lF, this kind of handling is executed
only for pure binary numbers.
In the case of BCD, execute "BIN" and store in D10.
(3) Output of the contents of D11 into Y50 to
5B.
bits (assumption of BCD
x
1 digit), Le.
3
Dl0
(Coding)
XO
I
Fig. 4-30. Data output by IQIOV
I
1
M O V
The contents of D11 are put out into
2
D 1 1
Y50
to 5B (3 x 4
=
12 points).
This is used for output of binary
numbers as they are. For output as
BCD, execute "BCD" and output to
Y.
K indicates the number (1
-
4) of
digits
.
3
K 3
Y50
-31-

Advertisement

Table of Contents
loading

Table of Contents