Hello Rafael,
I have issue with the counter function. i have attached the PLC program.
add the counter in the variable table and it is declared as 'long'
However cannot used the counter as a normally open contact (like we did with timers). error 'cannot convert long to bool'
Have tried to used comparator function, but the ladder is working.
please help
Thks/Rgds
Mohammad
I attach you a working example.
Remember the differences between coil trigger activation and level. In your program the coil is always activated and the counter increases only once.
Please read the EasyPLC User Manual, page 36, there is explained how the counters works.