(0)| 10/14/2023 11:44 AM | |
|
Posts: 3 Rating:
|
"For my thesis, I need to ensure that a slide driven by a servo motor generates a sinusoidal vibration. To achieve this, I need to generate a sinusoidal signal using TIA Portal, which is then sent to the motor through the PLC." "It's the first time I'm programming with TIA Portal. I've managed to generate a sinusoidal signal using the SInus function from the LGF library, but I'm struggling to make this signal stop after it has completed "x" amount of periods." I tried to make the sinus generatotr stop after the Sinus_Value had been equal to 0 zero x amount of times but this doenst seem to werk (i think it is because of the timing of the OB30 and my main OB1) Do any of you have a tip of how I can trouble shoot the timing of the networks so I can see why it always counts more then the sepcified amount of periods and why my signal doesnt stop exactly at the point it reaches 0? thanks in advance AttachmentSinus_generator.pdf (511 Downloads) |
| 10/14/2023 2:24 PM | |
|
Joined: 6/20/2017 Last visit: 10/6/2025 Posts: 486 Rating:
|
Here is the program in Tia18AttachmentTest1201_SineWave.zip (421 Downloads) |
|
Gustavo Antonio Banchetti Brucatori. |
|
| 10/16/2023 7:10 AM | |
|
Joined: 9/23/2005 Last visit: 1/13/2026 Posts: 5154 Rating:
|
Use a camming. Add a rotary virtual leading axis. Design a sinusoidal cam. Gear your existing axis to the leading axis. Done. There is a question if your HW supports this functionality though. In case constant amplitude is acceptable for you: a Scotch yoke. |
|
Regards, |
|
This contribution was helpful to
|
|
Follow us on