CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

Change Velcoity of MC_MoveAbsolute
https://forum.codesys.com/viewtopic.php?f=6&t=8588
Page 1 of 1

Author:  fatihdin [ Mon Feb 12, 2018 6:31 pm ]
Post subject:  Change Velcoity of MC_MoveAbsolute

Hi

I want to manage axis with absolute move velocity from analog pot while in movement.

I start to move an axis by MC_MoveAbsolute to target position with a velocity. While in movement (not arrive at target position), i want to change executed velocity in runtime. Is there any command or something like that or do i have to apply same MC_MoveAbsolute command again?

Thanks

Author:  Josep M. Rams [ Thu Feb 15, 2018 3:30 pm ]
Post subject:  Re: Change Velcoity of MC_MoveAbsolute

Hi

You can compare the actual potentiometer value with the value of the past cycle (with certain hysteresis). If the value has changed change execute from false to true.

D ont forget the hysteresis if not there will be continuous changes in move absolute. Have in count that every change will be apply├žied with the moveabsolute ramp.

Be healty!

Author:  nunojpg [ Thu Jun 28, 2018 7:27 pm ]
Post subject:  Re: Change Velcoity of MC_MoveAbsolute

Josep M. Rams wrote:
Hi

You can compare the actual potentiometer value with the value of the past cycle (with certain hysteresis). If the value has changed change execute from false to true.

!


Hi,

Are you sure this will work? The documentation on codesys does not specify if another execute edge will replace the current execution, but for eg. Beckhoff says "It is not possible to trigger a move function block with new parameters while it is active.".

I have been using two independent blocks, that I execute alternatively. Maybe there is a smarter solution :)

Author:  Josep M. Rams [ Thu Jun 28, 2018 8:55 pm ]
Post subject:  Re: Change Velcoity of MC_MoveAbsolute

I am using it in Twincat.

Sent from my Moto G (5S) Plus using Tapatalk

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/