AXL SE CNT1
Hi All
I have a project where I am using a AXL SE CNT1. I need to count pulses. The pulse count setpoint varies depending on the recipe'
Is it possible to reset the count even if the comparative value hasn't been reached?
Hi All
I have a project where I am using a AXL SE CNT1. I need to count pulses. The pulse count setpoint varies depending on the recipe'
Is it possible to reset the count even if the comparative value hasn't been reached?
Comments
Hello Shaun,
I found this in the documentation I hope it helps:
https://pxc1.esc-eu-central-1.empolisservices.com/gatekeeper/guesttoken/45?app=/service-express/portal/cb?redirect=https://pxc1.esc-eu-central-1.empolisservices.com/service-express/portal/project1_p/document/iu-45-7b6b5741-c02a-475d-88a1-61c78be79782?context=%7B%22filter%22:%7B%7D,%22page%22:1%7D
Hi Oliver
Thank you for the feed back. I did find the article but still battled. Firstly let me be straight up I am using Codesys to programme my PLC.
I read the manual but couldn't reset the count. What must 0307hex be set to?
Do you have any programming examples?
0307hex is the index number of an "Application Object" (like a module parameter), which is described in section 13.7. But that Application Object is not relevant to this question.
In this case, the Codesys IDE should show three input words and three output words for the CNT module. The table in Oliver's post says that setting bit 2 in the first Output word will reinitialise the count.
So setting the first Output word to 0x0004 should work, unless I have the endianess mixed up in which case 0x0400 should work.
Do either of those output values reinitialise the count?
Hi Martin
Thanks for that. I tried 0x0004. I will be back on site later in the week and give 0x0400 a go.
Hi Oliver and Martin
Thank you for your help. I was able to reset my counter and the project is working. Also cheers for forwarding my issue to my local Phoenix branch.