Help with PID, CX - Programmer

kezin

Member
Join Date
Jan 2016
Location
Canada
Posts
13
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
 

Similar Topics

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...
Replies
1
Views
1,372
Hello all, I have an issue with a PID block in RsLogix 5000. The parameters are P: 3.25 I: 0.11 D: 0.01 The Set Point is 71 psi This loop...
Replies
63
Views
14,814
hey guys - I'm a novice PLC enthusiast, so this may be a simple one. I'm running a PID on a Micrologix 1200 PLC and I want to change the Gain for...
Replies
18
Views
4,246
I need a little help with a project I have been thinking about. We have a belt line that is fed by a gravity door (pretty much a hydraulic...
Replies
14
Views
2,737
Hi all, I have a request from client as follows, There's one PID for Control valve which would be controlling on basis of temperature. One...
Replies
1
Views
1,519
Back
Top Bottom