Linhvct Posted November 12, 2013 Report Posted November 12, 2013 Dear all, I have used PID instruction in my program, but it always result zero value and I have no idea what is going on. Is anyone have experience like this before and tell me where I'm wrong!? I attached an emage below hope you can help me figure it out. Thank you!
Mendon Systems Posted November 12, 2013 Report Posted November 12, 2013 Is that screenshot online from the PLC or from the simulator?? PID does not work in the simulator.
PMCR Posted November 12, 2013 Report Posted November 12, 2013 You are using a battery backed memory area (DM) for the background data manipulation for the PID instruction (C+7 - C+38). You should clear this area (D7907 - D7938) prior to starting the PID instruction. 'Stale' data in this memory area can cause the instruction to not function correctly. The other thing to check is the P_ER bit immediately after the PID instruction (before the SCL instruction). Put a normally open contact of P_ER and an output that you are not using (W511.15?). Monitoring this will tell you if the PID instruction is causing an error. If it is, the help for the PID instruction will tell you what might be causing the error.
Linhvct Posted November 13, 2013 Author Report Posted November 13, 2013 Thank you, It's true that I did used one DM in C+7 to C+38 acidently. I fixed it and it's ok know
chou Posted February 11, 2016 Report Posted February 11, 2016 Hi Linhvct, Can you forward the example of your previous program for this PID function ?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now