ButtonBasherNo445533

GX Works 3: PIDINIT, PIDCONT

4 posts in this topic

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 by ButtonBasherNo445533

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

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 people like this

Share this post


Link to post
Share on other sites
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:-)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now