Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Class Curve not working as expected

Class Curve not working as expected 2 years 10 months ago #11052

  • galeman
  • galeman's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
Hi,

I've been trying to implement a dynamic setpoint for a pid control, and my idea is to use the instruction Curve. Basically my goal is to use a timer from 0 to 100 seconds, and based on the timing value, calculate a setpoint using a table with different values.

maybe i am using the wrong instruction. long time ago, i used an instruction block on a rockwell plc to convert a non-linear instrument into a linear one. what i am trying to do now is the opposite.

at this point, im just testing the instruction by typing directly a value at the INPUT, and the OUTPUT is just a mirror of the input.

any help would be really appreciated.
The administrator has disabled public write access.

Class Curve not working as expected 2 years 10 months ago #11054

  • brunad
  • brunad's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 247
  • Thank you received: 48
  • Karma: 11
Hi Galeman

Here is a first possibility with bloc CArithm to put in a plcpgm to make a stepped ramp.

Maybe you can modify it to calculate a setpoint using a table with different values.


plc_steps.png



steps.png


/Bruno
Last Edit: 2 years 10 months ago by brunad.
The administrator has disabled public write access.

Class Curve not working as expected 2 years 10 months ago #11057

  • galeman
  • galeman's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
thanks. let me try your suggestion and i'll let you know.
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 8.180 seconds