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 Sun Jun 16, 2019 9:34 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Jan 14, 2018 3:57 pm 
Offline

Joined: Mon Dec 04, 2017 12:55 pm
Posts: 4
Hello everyone,

i am using codesys control for raspberry pi to control a robot arm with 5 joints. Each joint is moved by a stepper motor.The stepper motors are controlled by a Gecko G210X Digital Step Drive, so there are the signals step,disable and direction connected to the GPIO Pins of the raspberry pi. The encodervalues for the axis position is send via Modbus TCP/IP.
Now i want to use the SM_Drive_Pos_Control to control the axis of the robot. I know that i can connect the values from the encoders to the input in.dwActPosition. In the examples in the Online Help there are DC Motors connected to the output out.diSetVelocity.
How can i link the step motor driver signals to the Pos_Control drive, like for the DC Motors are linked to the output out.diSetVelocity?

thanks,regards
Markus


Top
   
PostPosted: Tue Jan 16, 2018 11:07 am 
Offline

Joined: Mon Dec 04, 2017 12:55 pm
Posts: 4
I have figured out a solution now, but im not sure if this will work.
I have functions for each axis, with inputs velocity, the amount of degrees the axis should move and the direction. My idea is now to pass the output out.diSetVelocity of the Pos_Control drive as input to my function to move the axis. But how do i get the amount of degrees the axis/ stepper motor should move ? Is the Pos_Control the drive i can use to solve this problem? Im a bit stuck at the moment and woudl be thankful for some advices.


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

All times are UTC+01:00


Who is online

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