7. Description of Parameters MD500 User Manual
- 178 -
7.8.3 The Counting Function
The MD500 has the counting function. The sampling DI terminal must be set for the function 25 "Counter input ". For high pulse
frequency, use terminal DI5.
Function Code Parameter Name Setting Range Default
Fb-08 Set count value 1 to 65535 1000
)E Designated count value 1 to 65535 1000
,QWKHIROORZLQJÀJXUH:KHQWKHFRXQWLQJYDOXHUHDFKHVWKHOHYHOVHWLQ)EWKHGLJLWDORXWSXWWHUPLQDOVHWIRUWKHIXQFWLRQ6HW
FRXQWYDOXHUHDFKHGEHFRPHVRQ:KHQWKHFRXQWLQJYDOXHUHDFKHVWKHOHYHOVHWLQ)EWKHGLJLWDORXWSXWWHUPLQDOVHWIRUWKH
IXQFWLRQ'HVLJQDWHGFRXQWYDOXHUHDFKHGEHFRPHVRQ
Figure 7-52 The counting function schematic diagram
DIx
DIx
Allocate DIx with the
counter input function.
Any of F4-04
to F4-=26
Allocate DIx with the
counter reset function.
U0-12
Count value
Fb-08
Set count value
Clear to 0
Compare
DO
Any of F5-00
to F5-05 = 8
Reset
Allocate DO with the set count
value reached function.
DO outputs the set count
value reached signal.
Any of F4-04
to F4-= 25
Fb-
Designated
count value
DO
DO outputs the
designated count value
reached signal.
Reset
Any of F5-00
to F5-05 = 8
Allocate DO with the
designated count value
reached function.
Count reset input
Output of set count
value reached
Count pulse input
U0-12 (Count value)
Fb-08 = 11
U0-12 = 11
1 2 3 10 11 12
U0-12 = 0
Fb-= 20
U0-12 = 20
1 2
Output of designated
count value reached
7KHVHWWLQJVRIUHODWHGIXQFWLRQSDUDPHWHUVLQWKHSUHFHGLQJÀJXUHDUHDVIROORZV
Function Code Parameter Name Setting Description
$Q\RI)WR) DIx function selection 25 Counter input
$Q\RI)WR) DIx function selection 26 Counting reset
Any of F5-00 to F5-05 DOx function selection 8 Set counting value reached
Any of F5-00 to F5-05 DOx function selection Designated counting value reached
Note
ƕ For high pulse frequency, use terminal DI5.
ƕ You cannot allocate the "Set counting value reached" function and the "Designated
counting value reached" function to the same DO terminal.
ƕ 7KHFRXQWHUNHHSVFRXQWLQJLQWKHGULYHUXQQLQJVWRSVWDWH,WVWRSVFRXQWLQJXQWLOWKHVHWFRXQWLQJYDOXHLVUHDFKHG
ƕ The counting value is retentive at power down.
ƕ An automatic stop system can be implementing by connecting the output
counting value reached signal of the DO to the stop input terminal.
efesotomasyon.com