Jump to content

Webinar Request: PID with digital Output


Recommended Posts

Thank you for the webinar video about PID, was immensely helpful for a project I'm working on.

 

 

Would it be possible to have a short webinar on PID with digital output only instead of analog out?  I know there are some key differences and it would be helpful to see some examples.

Link to comment
Share on other sites

Hello,

 

Currently, we are working on a PID webinar for UniLogic, which should incorporate a digital output for the control value.

 

However, if you are working with a normal transistor output, we recommend using a PWM function block and linking the control value to the duty cycle.  This example can be seen in the example project files of VisiLogic under "PID" and is call "V350_PID simple demo.vlp". 

 

If you are using the controller's HSO, you would also link the control value to the duty cycle, you just would not need to use a PWM FB since the HW configuration handles that for you.

 

Remember, the duty cycles have a range of 0-1000 (0% - 100.0%), so this would have linked to the control value output limits.

 

Let me know if this helps.

  • Upvote 1
Link to comment
Share on other sites

Hello,

 

Could you elaborate a little more on how you wish to control the relay output?  With PID, you are usually either controlling a digital output via PWM or controlling an analog output.

 

We normally do not advise using a relay output with PID since it is a mechanical switch and will degrade much quicker than a transistor output, and the switching frequency is rated much lower as well.

 

If the relay will be on/off for long periods of time, you could manipulate the frequency at which you run PWM to that output.  However, you would need to have a constant duty cycle for that output.

 

Please let me know if this helps.

Link to comment
Share on other sites

You can link the pid output to an MI and run a self resetting timer with your desired preset time.

Then use "less or equal" compare function so that your output will be energized when the timer's current value is smaller than the PID output.

 

For example if you set the timers preset value to 10 seconds, your min PID output should be 0 and the max should be 1000 (10mS resolution).

Link to comment
Share on other sites

A great example is a home project I'm working on using an SSR to run a fridge compressor for temperature control in a home brewing setup.

 

The compressor can't work on a PWM power cycle as cycling it on and off frequently will destroy the compressor motor, and it won't allow the system to get into a cool state where it would function correctly.

 

Essentially it requires a long On-Off cycle time to protect the hardware components, but still needs the advantages of PID control (yeast can get very particular about large temperature fluctuations, +-1 degree can drastically alter the flavor of the final beer.)

 

PWM is useful if the equipment can function analogous to an analog signal but doesn't work well if there are distinct power cycle limitations that can ruin the hardware with the extremely short power cycles.

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...