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 Tue Sep 17, 2019 10:24 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Oct 31, 2012 10:14 pm 
Offline

Joined: Fri Oct 26, 2012 7:24 pm
Posts: 13
Hi guys!
I'm doing a project where 5 module axes, 0-360, and they are moved with CNC motion.
I use:
smc_smoothpath -> smc_extendedcheckvelocity -> smc_checkvelocities -> smc_interpolator and then smc_controlaxisbypos.

But I have a little question: can I set the direction of the axes in positive value?
If I set the movement from 350 to 5, it does a backwards movement, instead I would a forward movement.

Can anyone help me?

Cheers


Top
   
PostPosted: Thu Nov 01, 2012 9:15 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3450
Hi,
The user can specify a period for the axes A, B, C, P, Q, U, V and W by setting the word PA, PB, PC and so on. By default these are 0, which means: finite and not modulo.
e.g. N0 PA360 (this means that A has a period of 360 degree).
Then, the decoder will modify ist behaviour in the way, that the additional axes always travel tot he nearest point. E.g:
N0 PA360
N0 G92 A270 (set the position of A axis to 270)
N0 G1 A0
This will move the axis in positive direction.

The position output of the ipo is not in the interval [0..Periodlimit], but can be outside of it. However, the FBs like SMC_ControlAxisByPos will take care of making the modulo.

cu
Edwin


Top
   
PostPosted: Thu Nov 01, 2012 2:54 pm 
Offline

Joined: Fri Oct 26, 2012 7:24 pm
Posts: 13
Thank you so much Edwin for your answer!

Anyway I don't use decoder but the other way "OutQueue".

Is it possbile to modify the direction from "shortest" to "positive" directly?

Thank you in advance.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 9 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