Hi forum
I have been trying to make me a Johnson Decade counter with the Oscat FF_DRE function block.
when i connect all five FF in a chain i allways get ALL of the outputs identical.
have done this in CFC as a POU or as a FB in a POU.
strange, as when i made my own decade counters years ago with digital IC's this was a simple task.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is due too updating of FBs I/O in the same cycle task.
I bet your previous hardware was not updating in the same cycle a block outputs with the Matching inputs.
You may want to use some memories to save the previous state of each output and use them as input. Then update the memories after your counter code.
EDIT : Just by Curiosity, why would you use such a counter ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi forum
I have been trying to make me a Johnson Decade counter with the Oscat FF_DRE function block.
when i connect all five FF in a chain i allways get ALL of the outputs identical.
have done this in CFC as a POU or as a FB in a POU.
strange, as when i made my own decade counters years ago with digital IC's this was a simple task.
This is due too updating of FBs I/O in the same cycle task.
I bet your previous hardware was not updating in the same cycle a block outputs with the Matching inputs.
You may want to use some memories to save the previous state of each output and use them as input. Then update the memories after your counter code.
EDIT : Just by Curiosity, why would you use such a counter ?