11/21/2024 10:26 AM | |
Joined: 9/16/2024 Last visit: 11/28/2024 Posts: 4 Rating:
|
Hi I am using a S7 1214 and a Basic KTP 400 to set a PV value into a cu counter using %MW (int). On monitoring the counter in operation it reads the entered pre-set value ok until the 1st count input then the PV value jumps to 258? Any ideas on what I am doing wrong? ------------------------------------------------------------------------------------------ |
Last edited by: Moderator_Lan at: 11/21/2024 11:25:39New subject after splitting |
|
11/21/2024 7:55 PM | |
Joined: 7/7/2010 Last visit: 9/12/2025 Posts: 16094 Rating:
|
In between your logic and the count-up input to the counter, add a P-TRIG or similar leading-edge contact so the counter is only enabled for one PLC scan for each count requirement. The 258 means the count up input was on for 258 PLC scans.
|
science guy |
|
11/25/2024 11:34 AM | |
Joined: 9/16/2024 Last visit: 11/28/2024 Posts: 4 Rating:
|
Hi Tag list and screen shots, the PV value goes up 258 counts with every input to the CU point? Thanks again Dave AttachmentCounter.docx (181 Downloads) |
11/25/2024 2:28 PM | |
Joined: 6/24/2013 Last visit: 9/12/2025 Posts: 1696 Rating:
|
This is why I use data blocks for global variables.... addressing is done by system |
Follow us on