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

TOPIC: Sine

Sine 6 years 5 months ago #9286

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi all,

Is there a member on-board who is willing to give me some hints how to create,
in a plc, a sine curve with 2 sliders (X-Av and a Y-Av) ?
Thanks...
/Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
Last Edit: 6 years 5 months ago by marc.
The administrator has disabled public write access.

Sine 6 years 5 months ago #9288

  • brew
  • brew's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 108
  • Karma: 0
marc,

do you mean that a subroutine in the PLC
will output a signal that is a sine wave?
like the
X is the amplitude
and the
Y is the HZ?
and you can adjust the X and Y numbers?

bill
The administrator has disabled public write access.

Sine 6 years 5 months ago #9291

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Bill,

To be honest, yes...
I have tried the XYCurve and completely forgot I even created a video many moons ago about application programming but I can't reproduce it.
It's a shame there is no small signal generator implemented in proview.
I need the continuous adjustable sine as an input in a (PID) controller for (educational) testing purpose.
The step and ramp is not a problem.

An ideas? I think I have a black spot in my memory again.

Great to hear from you again.
How are you and the brewery/beer business?

/Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
Last Edit: 6 years 5 months ago by marc.
The administrator has disabled public write access.

Sine 6 years 5 months ago #9294

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3177
  • Thank you received: 502
  • Karma: 133
Hi Marc,

You can use a Timint connected to a Sin. The input of the Timint will influence the frequency. For the amplitude you can set FactorVal in the Sin object with a StoAp. You might have to reset the timint now and then to avoid loss of significance after long times.

/Claes
The administrator has disabled public write access.

Sine 6 years 5 months ago #9299

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Claes,

This is exactly what I needed.
Works great.
Thanks.

/Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.

Sine 6 years 5 months ago #9304

  • brew
  • brew's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 108
  • Karma: 0
Hi Marc,

Claes beat me to it!

The brewery is done. Just some upgrades every once an a while.
Proview never crashes on me... works for weeks and weeks...

I will post the complete program soon, so people can play with it.

Come on by and drink some beer -- made by Proview!

bill
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 8.720 seconds