Mitsubishi Electric melsec-k Programming Manual page 66

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

Advertisement

(c) The contents of C1 and C2 are converted to BCD, and the output is executed separately for
the first and second digit.
However, the fact that consecutive output of the 1st digit and the 10th digit in the sequence of
Y10 to Y1F is not possible, is the point of this exercise.
Sequence:
(i) BCD conversion is executed for the contents of C1, and they are output into M O
to M7 via DO.
R C D
C i
As C1 is smaller than 60, the BCD does not exceed 2 digits.
Accordingly, MO to M7 (BCD x 2 digits) becomes:
L
-----
Y
Contents (BCD) of C1
(ii)
M o
-+
Y 1 8
-
'lB
}
they are output
M 4 w M 7
- +
Y l o " Y 1 3
Instead of an output for each point, a collective output via the data register is
convenient.
M o
- M 3
- +
D1
4
Y 1 8
-
Y 1 ,
Collective output is pssible by proceeding this way.
(iii) As these conversion operations and output operations must be executed con-
tinuously, execution is made by using contact b of the dummy (normally ON
signal) by
, - + p +
(iv) The same sequence as for C1 is also applicable to C2.

Advertisement

Table of Contents
loading

Table of Contents