Bin - Mitsubishi Electric melsec-k Programming Manual

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

Advertisement

4-4-8.
BIN
...
Conversion from BCD to BIN
1
2
3
-
B I N
K 3 X 6 0
D O
-
4
5
6
I
(
D 1
1
t D 2
1
Fig. 4-38. BIN instruction
When X O becomes ON, BIN (binary)
conversion is executed for the con-
tents (BCD) of
s,
and the result is
stored in D.
I
b
(Coding)
0
J,
D
XO
1
R X N
2
11.1
3
11.2
O d V
The possible conversion combinations
are shown in the following table.
xo
It-
Generally most input data are decimal
numbers, so this BIN instruction exists.
The input data are taken in as BCD, and
internal processing is executed after con-
version to binary numbers.
(1) The data are taken in from input X60 to 6B
(a BCD number of 3 digits), the numerical value is
set for the present value of counter
C1
,
and this value reduced by 20 is set for the present vzilue of
- M O V
DO
(Coding)
0
L D
1
B I N
2
K 3
3
4
M O V
5
6
7
-
8
K
9
1 0
M O V
1 1
1 2
Fig. 4-39. Application for BIN instructions
X O
X 6 0
D O
D O
c
1
Setting of the present
count value for C1
2 0
D O
D O
~
Setting of the present
count value for C2

Advertisement

Table of Contents
loading

Table of Contents