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.
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.