NEWS
emc2_2.4.3 Release
A fresh bugfix release (Changelog).
You can get it:
as a source package from sourceforge, from Git, or as a precompiled package which works on Ubuntu as described here.
 
Ubuntu 8.04&EMC2 Live CD
The EMC2 team has a custom Live-CD (EU mirror) based on Ubuntu 8.04 with emc 2.3.x included, that will let you try out EMC2 before installing, and it's also the easiest way to install Ubuntu and EMC2 together. (more)
 
emc2_2.4.2 Release
A fresh bugfix release (Changelog). You can get it: as a source package from sourceforge , from Git , or as a precompiled package which works on Ubuntu as described here .
 
Site Search
Google
Web LinuxCNC
Login
Home arrow Forum

EMC Support Forum
Welcome, Guest
Please Login or Register.    Lost Password?
help start stop brak program vial lpt
(1 viewing) 1 Guest
Go to bottom
TOPIC: help start stop brak program vial lpt
#1711
cylon2 (User)
Fresh Boarder
Posts: 3
User Offline Click here to see the profile of this user
help start stop brak program vial lpt 7 Months ago Karma: 0  
hello

i want control the emc2 over an external keypad to start / stop break the program
like the same keys as pc keyboard (F1 ,F2, R, T, P/S, ESC)
the external keyboard is on lpt the same with the motors
how its possible ?
plz help
im sry for my bad english
 
Logged Logged  
  The administrator has disabled public write access.
#1713
acemi (User)
Senior Boarder
Posts: 55
User Offline Click here to see the profile of this user
Re:help start stop brak program vial lpt 7 Months ago Karma: 6  
You need to add the following line to the [HAL] section in your ini file.
Code:

HALUI = halui


And you need to add the net lines for your keys to your hal file.
Code:


net emergency-stop <= parport.1.pin-02-in
net emergency-stop => iocontrol.0.emc-enable-in
net machine-on <= parport.1.pin-03-in
net machine-on => halui.machine.on
net machine-off <= parport.1.pin-04-in
net machine-off => halui.machine.off
net mode-auto <= parport.1.pin-05-in
net mode-auto => halui.mode.auto
net program-run <= parport.1.pin-06-in
net program-run => halui.program.run
net program-abort <= parport.1.pin-07-in
net program-abort => halui.abort
net program-pause <= parport.1.pin-08-in
net program-pause => halui.program.pause
net program-resume <= parport.1.pin-09-in
net program-resume => halui.program.resume



For more info:
www.linuxcnc.org/docs/devel/html/man/man1/halui.1.html
www.linuxcnc.org/docs/devel/html/man/man1/iocontrol.1.html
 
Logged Logged  
  The administrator has disabled public write access.
#1714
acemi (User)
Senior Boarder
Posts: 55
User Offline Click here to see the profile of this user
Re:help start stop brak program vial lpt 7 Months ago Karma: 6  
I assumed that your second parport (parport.1) was defined as input device then it's data pins (2..9) can be used for input
 
Logged Logged  
  The administrator has disabled public write access.
#1963
cylon2 (User)
Fresh Boarder
Posts: 3
User Offline Click here to see the profile of this user
Re:help start stop brak program vial lpt 6 Months, 2 Weeks ago Karma: 0  
okay that works fine
another question is it possible via rs232 to send and recive this signals?
because of not enough i/o ports
 
Logged Logged  
  The administrator has disabled public write access.
#2165
Kirk_Wallace (User)
Junior Boarder
Posts: 23
User Offline Click here to see the profile of this user
Re:help start stop brak program vial lpt 6 Months ago Karma: 1  
You should be able to use up to eight parallel ports with EMC2, so you pretty much are limited to the number of slots on your motherboard. There is nothing "off-the-self" for using RS232 with EMC2, except maybe using an external PLC.
--
Kirk Wallace
www.wallacecompany.com/machine_shop/
www.wallacecompany.com/E45/index.html
California, USA
 
Logged Logged  
  The administrator has disabled public write access.
#2169
BigJohnT (Admin)
Moderator
Posts: 748
User Offline Click here to see the profile of this user
Re:help start stop brak program vial lpt 6 Months ago Karma: 25  
Here is an example of adding more controls via a usb joypad

wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Add...imple_Remote_Pendant

John
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
© 2010 LinuxCNC.org
Joomla! is Free Software released under the GNU/GPL License.