On Sun, Mar 10, 2013, at 02:33 PM, Norton Allen wrote:
> I am new to EMC. I am the software guy responsible for automating
> operation of a simple mechanical device. The folks who created it, set
> it up with a stepper motor connected to the parallel port of a Linux box
> running EMC. There are two commands implemented via buttons in Axis:
> "Open" and "Close". These boil down to:
> 
>     [HALUI]
>     MDI_COMMAND = G0 X0
>     MDI_COMMAND = G0 X63.85
> 

If you are simply moving a single axis from one fixed position to another
it might be simpler to leave out most of LinuxCNC and just use a couple
of HAL blocks.

stepgen accepts position commands, and obeys velocity and accel
limits.  So all you need to do is step the command position from 0.00
to 63.85.  A couple of "halcmd setp" lines will do that.  Or you could
add a mux2 block to select between the two values, and then just
toggle the "sel" line between 0 and 1, again using setp commands.


-- 
  John Kasunich
  [email protected]

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to