TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: GERHARD REITHOFER
from: THEO
date: 2018-12-23 11:50:00
subject: Re: Servo basics

Gerhard Reithofer  wrote:
> That's realy interesting but it's strongly NC oriented. I can control my
> 3d-printer via USB by sending S3G commands (sailfish fimrware) but
> that's too specific bound to the hardware and to the XYZ thinking.
>
> What I'm dreaming of is a controller which allows defining a step input
> (including speed and maybe acceleration paramaters) and the motor moves
> to the position without any additional input. The final positition is
> sent back or confirmed on request via the used interface.
> Think of an axis contorl of a robot arm. The combination of several such
> modules can be controlled by a raspberry because the hardware part and
> the real time components are not important on that level. As example it
> I would be very simple add a GUI for programming, etc.

That's what G-code does.  For example:

G0 X99

will move to position 99 (in whatever units you've configured) on the X
axis, leaving other axes unchanged.

M114

will read the current position.

Obviously there are G-codes for spindle control, coolant/material feed, etc,
but if you aren't using CNC you can ignore those.  While the axes are called
X/Y/Z and possibly A/B/C depending on firmware, you can treat them as
independent if you avoid commands like arc moves.

Theo

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.