Nirtec Studio Forum

General Category => EasyPLC v.5 => Topic started by: Mohammad on April 04, 2017, 08:03:10 AM

Title: Using Counters
Post by: Mohammad on April 04, 2017, 08:03:10 AM
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
Title: Re: Using Counters
Post by: EasyPLC_Master on April 04, 2017, 10:23:28 AM
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.