5/30/2023 12:12 PM | |
Joined: 1/21/2013 Last visit: 8/29/2025 Posts: 4087 Rating:
|
Hi Amritpal, To use the counter operations within GRAPH, you would have to use the parameter type COUNTER. To use an IEC counter, as you tried to do and as I would recommend, you can follow the example from "CTU: Count up". Kind regards |
5/30/2023 1:10 PM | |
Joined: 8/5/2014 Last visit: 8/25/2025 Posts: 191 Rating:
|
Hello Stefan, When i try to use IEC counter data type then it is showing error in the "Event" as showing in the attached picture, and when i select any event from the drop down list then it is showing error in the tag which is mentioned in "Action".
|
Regards, |
|
5/30/2023 1:25 PM | |
Joined: 1/21/2013 Last visit: 8/29/2025 Posts: 4087 Rating:
|
Hi Amritpal, You can either use counter operations together with the parameter type COUNTER, or you can program a call an IEC timer with CTU (or similar). You can't use counter operations with an IEC timer. Kind regards |
Last edited by: Stefan Arcularius at: 05/30/2023 13:34:41typo corrected |
|
5/31/2023 3:09 AM | |
Joined: 8/5/2014 Last visit: 8/25/2025 Posts: 191 Rating:
|
When I try to use data type counter in the Graph FB, then it shows "Data type counter is not allowed here".
|
Regards, |
|
5/31/2023 11:19 AM | |
Joined: 1/21/2013 Last visit: 8/29/2025 Posts: 4087 Rating:
|
Hi Amritpal, To use the COUNTER parameter type, you must address a counter. This can be done by using it's absolute address, which is the letter 'C' followed by the counter number, e.g. C1 as in my example, or by using a PLC tag of type COUNTER. Kind regards |
Follow us on