I front lithe challenge, this moment get large code for implemented.
The code must be prepared to work as limited PLC (Relay controls), two alternatives to make
1)Code using FB-Function Blocks and Logic gates (AND,OR,XOR,NOT)
2)Ladder code
Note, not have counter with ENABLE. Only, INPUT and RESET
The graphic signals: A/B is input and V/counter the result.
Click to large image
The code must be prepared to work as limited PLC (Relay controls), two alternatives to make
1)Code using FB-Function Blocks and Logic gates (AND,OR,XOR,NOT)
2)Ladder code
Note, not have counter with ENABLE. Only, INPUT and RESET
The graphic signals: A/B is input and V/counter the result.
Click to large image