Help with PID, CX - Programmer

Hello guys

I have a project in which I have to control the water level of a tank using Omron. I need to get the pressure transmitter value in order to know the level of the tank and use it as an process variable of the PID.
Then I need to control the valve position.

I'm really new to Omron and i have no idea how to do the PID. I have read all the manuals but I still dont get it

Can someone help me please?

here is the program that I have so far. Just a reminder the PID parameters is just some random values because I need to do the calculations still.

Thanks
 
Hi haven't opened your code, hense I don't know what CPU you are using, but if it's a later model, then PIDAT is the instruction you want to use. Turn on bit 15 of Control word 9 with a one shot and let the CPU do the the work...
 
Hi haven't opened your code, hense I don't know what CPU you are using, but if it's a later model, then PIDAT is the instruction you want to use. Turn on bit 15 of Control word 9 with a one shot and let the CPU do the the work...

Thanks for your response

But what about the parameters? I dont really understand it
does the PIDAT instruction automatically sets them up?
 
NO. You have to populate the data areas associated with the PIDAT instruction before it will work.
This is accomplished by first writing parameter values to the data memory area associated with the PIDAT that define how YOU want it to operate. Then running the PIDAT using this predefined setup.
NOTE:- If I recall correctly, PIDAT is one of the few functions that does NOT work in simulate mode in CX-Programmer. You need a real PLC to fully test and observe operation.
 
Thanks for your answer.

Yes I'm working on the real PLC.
I set the parameters on the memory used for the instruction but my output does not change once reaching the setpoint.
What could the problem be? Wrong parameters? or logic program
 
Thanks for your answer.

Yes I'm working on the real PLC.
I set the parameters on the memory used for the instruction but my output does not change once reaching the setpoint.
What could the problem be? Wrong parameters? or logic program
Hi have you solved this problem? I am encountering same problem right now.
 

Similar Topics

Hi, I am new to PLC doing a part time job, I have given a task recently to write a PID program to maintain the pressure at a certain value by...
23
Replies
1,405
Views
Hello Can someone please help me make a program to cj1m omron plc. Hardware: cj1m cpu 12 ad041 v1, id211, oc211,od212 I will use the plc to...
1
Replies
1,920
Views
Hello All, I would consider myself a Moderate to Advanced Programmer when it comes to AB PLC's. However, i dont have much experience with HVAC...
10
Replies
976
Views
Hi all, I have a project where I need to hold 3.5 tonnes during material degradation, where the position will need to change to maintain this as...
15
Replies
2,286
Views
Hello everyone welcome Mitsubishi PLC PID reverse PID program can help anyone who needs sample.
1
Replies
1,573
Views
Top