ButtonBasherNo445533 Posted November 18, 2021 Report Posted November 18, 2021 (edited) I feel like I'm spamming this forum with questions....sorry! Ok, I'm trying to configure a PID loop using PID Control Instructions (the PID Operation Instruction version appears pretty limited in functionality for what I need). Anyway, reading through the manuals and I thought all I had to do was configure a (Word [Signed]) Array for the PIDINIT, and a (Word [Signed]) Array for the PIDCONT. So, I did this and connected up all the relevant data. But now I have no idea where I put the control data....do I have to assign an area in memory and effectively point everything at that address? Any ideas? Thanks :) Edited November 18, 2021 by ButtonBasherNo445533
ButtonBasherNo445533 Posted November 18, 2021 Author Report Posted November 18, 2021 OK, I got something working at least. I moved the Control and IO arrays into global labels and assigned a dedicated memory address. So now the PID functions....somewhat. The output will change from min to max output almost immediately, there is no gradual step up. So just need to work out why now...
GreenMan Posted November 19, 2021 Report Posted November 19, 2021 Good morning Try this exsample. This a FB that uses tht PID funtion and mapps it. Use E-Manual wiever and seach for the PID function for help Good luck R_PID_FB_v108.gx3 2
ButtonBasherNo445533 Posted November 19, 2021 Author Report Posted November 19, 2021 4 hours ago, GreenMan said: Good morning Try this exsample. This a FB that uses tht PID funtion and mapps it. Use E-Manual wiever and seach for the PID function for help Good luck R_PID_FB_v108.gx3 You're very kind, thank you!! I manged to get it working in the end - now just for some more testing! Thanks again and take care
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