help start stop brak program vial lpt
31 Jan 2010 14:00 #1711
by cylon2
help start stop brak program vial lpt was created by cylon2
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
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
Please Log in or Create an account to join the conversation.
31 Jan 2010 18:30 #1713
by acemi
Replied by acemi on topic Re:help start stop brak program vial lpt
You need to add the following line to the [HAL] section in your ini file.
And you need to add the net lines for your keys to your hal file.
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
HALUI = halui
And you need to add the net lines for your keys to your hal file.
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
Please Log in or Create an account to join the conversation.
31 Jan 2010 18:35 #1714
by acemi
Replied by acemi on topic Re:help start stop brak program vial lpt
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
Please Log in or Create an account to join the conversation.
19 Feb 2010 16:22 #1963
by cylon2
Replied by cylon2 on topic Re:help start stop brak program vial lpt
okay that works fine
another question is it possible via rs232 to send and recive this signals?
because of not enough i/o ports
another question is it possible via rs232 to send and recive this signals?
because of not enough i/o ports
Please Log in or Create an account to join the conversation.
- Kirk_Wallace
- Offline
- Senior Member
Less
More
- Posts: 64
- Thank you received: 4
03 Mar 2010 04:23 #2165
by Kirk_Wallace
Replied by Kirk_Wallace on topic Re:help start stop brak program vial lpt
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
--
Kirk Wallace
www.wallacecompany.com/machine_shop/
www.wallacecompany.com/E45/index.html
California, USA
Please Log in or Create an account to join the conversation.
03 Mar 2010 12:59 #2169
by BigJohnT
Replied by BigJohnT on topic Re:help start stop brak program vial lpt
Here is an example of adding more controls via a usb joypad
wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Add...imple_Remote_Pendant
John
wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Add...imple_Remote_Pendant
John
Please Log in or Create an account to join the conversation.
19 Mar 2010 18:25 #2375
by cylon2
Replied by cylon2 on topic Re:help start stop brak program vial lpt
hello
i know that i can use more paralel ports but my computer on the mill is a portable and have only 1 paralel port
so the question is
is it possible to conect an microcontroler on rs232
can emc2 send for example 9200 baud rs232 an charakter "a" to the microcontroler ?
the microcontroler recive the carakter and show via led that the program is running / paused / breaked
or is it possible to use parport for communication to microcontroler i mean can emc2 toggle a pin of lpt that microcontroler recive 010011011000...
sorry for my bad english i hope anyone understand what i mean
i know that i can use more paralel ports but my computer on the mill is a portable and have only 1 paralel port
so the question is
is it possible to conect an microcontroler on rs232
can emc2 send for example 9200 baud rs232 an charakter "a" to the microcontroler ?
the microcontroler recive the carakter and show via led that the program is running / paused / breaked
or is it possible to use parport for communication to microcontroler i mean can emc2 toggle a pin of lpt that microcontroler recive 010011011000...
sorry for my bad english i hope anyone understand what i mean
Please Log in or Create an account to join the conversation.
- Kirk_Wallace
- Offline
- Senior Member
Less
More
- Posts: 64
- Thank you received: 4
19 Mar 2010 22:45 #2377
by Kirk_Wallace
Replied by Kirk_Wallace on topic Re:help start stop brak program vial lpt
Your situation may be different than mine, but for me, desktop PC's that and run EMC2 well, are nearly free and readily available. I believe each machine should have its own dedicated PC and you should not be temped to use the CNC PC for other things. I prefer microATX boards with three PCI slots, which I think are the best bang for the buck.
The popular FPGA EMC2 controllers use the parallel port for communication, so using the parallel port to communicate with a microprocessor should not be too much of a stretch. ClassicLadder has a serial port Modbus feature that has been used with VFD's. Rumor has it that the serial port can be used with bash scripts, Python or other programing for nonrealtime functions, such as for tool changers, coolant, etcetera. I have used the parallel port to bit-bang SPI ADC's, DAC's and an encoder.
www.wallacecompany.com/machine_shop/EMC2/serial_dac/
www.wallacecompany.com/machine_shop/EMC2/serial_adc/
wallacecompany.com/machine_shop/EMC2/AEAT-6010/
Many PIC or AVR microprocessors have SPI built in, so it should be possible to use this for all sorts of nonrealtime functions.
--
Kirk Wallace
www.wallacecompany.com/machine_shop/
www.wallacecompany.com/E45/index.html
California, USA
The popular FPGA EMC2 controllers use the parallel port for communication, so using the parallel port to communicate with a microprocessor should not be too much of a stretch. ClassicLadder has a serial port Modbus feature that has been used with VFD's. Rumor has it that the serial port can be used with bash scripts, Python or other programing for nonrealtime functions, such as for tool changers, coolant, etcetera. I have used the parallel port to bit-bang SPI ADC's, DAC's and an encoder.
www.wallacecompany.com/machine_shop/EMC2/serial_dac/
www.wallacecompany.com/machine_shop/EMC2/serial_adc/
wallacecompany.com/machine_shop/EMC2/AEAT-6010/
Many PIC or AVR microprocessors have SPI built in, so it should be possible to use this for all sorts of nonrealtime functions.
--
Kirk Wallace
www.wallacecompany.com/machine_shop/
www.wallacecompany.com/E45/index.html
California, USA
Please Log in or Create an account to join the conversation.
08 May 2010 10:59 #2822
by Banda
Replied by Banda on topic Debug Information of error
Dear Acemi!
I read with great interest this Your message!
I wold like make the same modification to mine machine .
I build my configuration files using wizard for 4 axis and than i add manually the B and C axis.So I have X,Y,Z,A,B,C
This configuration work properly and run well.
On this configuration i have 3 parallel port Lp0,Lp1,Lp2 correctly setted.
Following your example and adding it to mine .hal file for example i have this message error:
Debug file information:
LUCIANO.hal:104:Unknown command' net program-run<=parport.2.pin-06-in'
19681
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
In the .ini file I have
HALUI=halui
Please can You tell me where is my mistake?
For sure this is because i don't have a big experience on EMC2!!
If You need more information about mine .ini and .hal files please advise me!!
Very Thanks for Your help!!!
Kind Regards,
Luciano!!
I read with great interest this Your message!
I wold like make the same modification to mine machine .
I build my configuration files using wizard for 4 axis and than i add manually the B and C axis.So I have X,Y,Z,A,B,C
This configuration work properly and run well.
On this configuration i have 3 parallel port Lp0,Lp1,Lp2 correctly setted.
Following your example and adding it to mine .hal file for example i have this message error:
Debug file information:
LUCIANO.hal:104:Unknown command' net program-run<=parport.2.pin-06-in'
19681
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
In the .ini file I have
HALUI=halui
Please can You tell me where is my mistake?
For sure this is because i don't have a big experience on EMC2!!
If You need more information about mine .ini and .hal files please advise me!!
Very Thanks for Your help!!!
Kind Regards,
Luciano!!
Please Log in or Create an account to join the conversation.
08 May 2010 11:19 #2824
by BigJohnT
Replied by BigJohnT on topic Re:Debug Information of error
You have an error in your LUCIANO.hal file at line 104. It might be that you don't have a space between the signal name and the <= and a space after it...
John
John
Please Log in or Create an account to join the conversation.
Time to create page: 0.084 seconds