Mitsubishi Electric melsec-k Programming Manual page 65

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

Advertisement

/
-
5-36 Time counting
for
xx
min
xx sec
(1) Subject
Output of the time output for
xx
min
xx
sec to the 16 points of the output board KYlO is
shown in the figure.
c/o
U N
l'l'
Notes:: 1 . The time starts from 00 min
80
sec with RUN of the CPU.
2. Return to 00 min 00 sec is ex-
ecuted after 59 min 59 sec.
Digit
seconds
Digit
10
minutes
Fig. 5-33. Display assignment for seconds and minutes
(2) Programming outlines
(a) Establishing of a counter input pulse every
1 second.
(b) Establishing of a counter C1 for seconds and a counter C2 for minutes.
1 pulsehec
Second counter
Counts up to 60 seconds
C 1
Count-up
signal of C1
(Signal for
minute coun-
ting)
Minute
counter
C 2
Counts up to 60 minutes
Count
-up
signal of C2
The contents of C1 and C2 are binary numbers.
Fig.
5-34. Counter circuit for seconds and minutes
-61 -

Advertisement

Table of Contents
loading

Table of Contents