× Forum Header

Parallel Port Setup

More
03 Jun 2013 04:40 #35160 by tomfool
Parallel Port Setup was created by tomfool
My breakout board supports the control of three external relays. The machine I am working on currently will require two of these relays to be controlled from within the part program.

The two functions are:
1. Turn welding purge gas on and off. (Relay controls solenoid valve)
2. Turn welding machine power supply on and off. (Relay controls contactor)

When looking at the Parallel Port Setup choices in Stepconf Wizard, I see that I have choices such as Coolant Flood and Spindle CW for output pins.

I assume these pins can then be controlled using M8/M9 codes to control the gas and M3/M5 codes to control the power supply?

If this isn't correct what do you suggest?

Just wondering, what about all the other standard M codes that don't seem to have choices in the Parallel Port Setup menu. How are they connected?
I have read a bit about the user defined codes, I'm asking about the other standard codes.

Thanks...

Please Log in or Create an account to join the conversation.

More
03 Jun 2013 18:47 #35176 by BigJohnT
Replied by BigJohnT on topic Parallel Port Setup
You can use the digital out pins and they are in the Stepconf Wizard. Digital out pins are controlled with M62-65 . If you use spindle on you will need to have S>0 for M3/4 to turn the spindle on.

JT

Please Log in or Create an account to join the conversation.

More
03 Jun 2013 20:00 #35185 by andypugh
Replied by andypugh on topic Parallel Port Setup

1. Turn welding purge gas on and off. (Relay controls solenoid valve)
2. Turn welding machine power supply on and off. (Relay controls contactor)


I would be tempted to control these with coolant-flood and coolant-mist. Though that might be a problem if you don't want to turn them both off at the same time.

Please Log in or Create an account to join the conversation.

More
16 Jun 2013 04:21 - 16 Jun 2013 06:32 #35695 by adelabarra
Replied by adelabarra on topic Parallel Port Setup
Hello everybody!
I don't know if this is exactly the right place to post.
I've just "succeeded" on installing emc2-2.4.5 with RTAI 3.3 and Slackware kernel 2.6.10 with r12 patch. :dry:
But there is a problem about parallel port configuration.
When I try to run the "ptest.hal" I receive by dmesg:

insmode parport_pc failed:

Unknown symbol parport_ieee1284_ecp_read_data
Unknown symbol parport_ieee1284_epp_read_data
Unknown symbol parport_ieee1284_ecp_read_nibble


From that I made some hacking and found that if I insmod the "parport"
module it seems to work but don't know if it really does, because when I test the pins nothing happens.

Do I have to recompile the kernel with the "ieee1284" as Module?
Do I have to check first if my port is open collector? (Because if I don't insert the resistance nothing should happen¿?)
Do I really need to insert the "parport" module to insmod the parport_pc or is there another better module instead?

I'm Sorry... there is a lot of questions.

Regards.

Alejandro.


Moved to a new post
Last edit: 16 Jun 2013 06:32 by adelabarra. Reason: Moved to a new post.

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum