CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Wed Feb 26, 2020 9:12 pm

All times are UTC+01:00

Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Feb 26, 2019 9:40 am 

Joined: Tue Dec 19, 2017 1:22 pm
Posts: 1

I am trying to implement MC_MoveVelocity and MC_GearIn on two axes. Both the Master and the Slave axes are in Cyclic Synchronous Position operation mode.

Question 1: Is it possible to change the velocity of the Master axis (via MC_MoveVelocity) and the gearing ratio of the Slave axis (via MC_GearIn) simultaneously?

It looks to me like either the Master axis has to be InVelocity in order for the MC_GearIn instance to perform a proper gearing or the MC_GearIn has to be InGear in order for the Slave axis to properly follow changes of velocity on the Master axis.

Question 2: Does MC_GearIn subscribe on Actual Position or Set Position?

If executing MC_MoveVelocity and MC_GearIn simultaneously does not perform the expected motion, I could execute MC_MoveVelocity on both axes after the gearing ratio to be performed and take care of aborting the one MC_MoveVelocity if the other MC_MoveVelocity is aborted or throws an error.

Thank you very much in advance.

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 3 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited