fast counters in mitsubishi FX

klops

Member
Join Date
Dec 2004
Location
gdansk
Posts
5
hi

i'm using gx developer 6.0 and plc FX1N. I have encoder to counting impulses whose are used for on or off outputs y1..y6.

i have declared function flock as follow:

____________________
A-phase--| X0 |
B-phase--| X1 |
100 ---| on_y1 (DINT) y1 |----
500 ---| off_y1 (DINT) y2 |----
200 ---| on_y2 (DINT) y3 |----
600 ---| off_y2 (DINT) y4 |----
300 ---| on_y3 (DINT) y5 |----
700 ---| off_y3 (DINT) y6 |----
400 ---| on_y4 (DINT) |
800 ---| off_y4 (DINT) |
400 ---| on_y5 (DINT) |
800 ---| off_y5 (DINT) |
400 ---| on_y6 (DINT) |
800 ---| off_y6 (DINT) |
--------------------

where on_Yx - sets output Yx
off_Yx - reset outputYx

i also have variable START_COUNT- it's raising edge sets cycle of machine.

-----| START_COUNT |-------(cycle)


and in program describing my function block:
___________________
cycle --| EN ENO |
C235-- | s1 DHSCS_M d |--- Y1
on_y1--| s2 |
-------------------

___________________
cycle--| EN ENO |
C235--| s1 DHSCR_M d |--- Y1
off_y1--| s2 |
-------------------

and now:
i don't know how connect counter (eg C235-it's counting from in X0) with specified input.
in manual i found:

-----|M 8000|---------(C235)
and counstant K to which that counter may count (wchich i don't know how connect to this counter).

if i do something like that, my compiler generates errors :/ (OUT works only with bool outputs :/)

maybe it is necessary to conect this counter witch functions COUNTER_FB, COUNTER32M or something like this? but i don't know how it connect :/

everything i do, i do in ladder diagram.

and last problem:
restriction to 3xSET i 3xRST in function HSCRS/R for one counter.
how it multiple?
maybe use X0 - C235, and X1 - C236? (this affects witch 6xSET and 6xRST - exactly how i need).

i'll be gratefull for indicate any links, examples programs or sometjhing.
 

Similar Topics

Please Help me! Is the only way possible for reseting a fast counter or HSC the one of the physical inputs or there´s a way of doing it...
Replies
2
Views
1,451
hi:) plc: mitsubishi FX1N i have to use fast counters and functions HCSCS/R, and i don't understand how counter (e.g. C254) works. this counter...
Replies
0
Views
3,460
Hi All, I've been playing with 2 stratix switches in my test bench and seeing how different configurations affect the behaviour when 2 managed...
Replies
3
Views
189
Dear all, Im using Allen Bradley Compact Logix L36ERM as a PLC. and facing a problem where I need to create a FIFO buffer that fills an...
Replies
5
Views
1,640
Dear Members; We have Fluke 754 hart communicator. We have wired up three transmitters of Rosemount Model C3051 with this input module. But when...
Replies
4
Views
1,801
Back
Top Bottom