- Posts: 19306
- Thank you received: 0
mesa 5i25 and mx4660 installation and configuration
goofy wrote: We wired the motors and 1 of the 4 proximity switches. The problem is now, that I want to have the cleaner, the vacuum pump and the spindle controlled by relays. But when I turn on the Linuxcnc Computer first, it sends a high signal to the Output connection, that means, the relays stay tuned until I start Linuxcnc itself. Have you got any idea how to keep the signal low?
I guess you are using the parallel port?
You could try finding a parallel port with a different behaviour. Some are hardware-inverted, for example, and might not have the problem.
The "correct" answer is to use a charge-pump circuit. (LinuxCNC has a suitable HAL module)
wiki.linuxcnc.org/cgi-bin/wiki.pl?About_Charge_Pumps
Please Log in to join the conversation.
I dont know anything about the ChargePump. I just set the jumper at the mx4660 to on and thats it...
Please Log in to join the conversation.
(all GPIO pins have pullup resistors and are inputs at startup)
Many CNC BOBs use a chargepump circuit to disable outputs
until the controller signals that its running via the chargepump signal
since parallel port outputs do not have a defined startup state due to
BIOS and OS hardware probing at startup
The MX4660 has a chargepump circuit but unfortunately its rather useless
since it does not disable the outputs, only the step drives and it doesn't have a
chargepump status output that could be used as an output enable
Please Log in to join the conversation.
But anyway, we can teach ourselves to start first Linuxcnc and than turn on the hardware.
I will connect the remaining switches and the next days Im going to complete the machine itself. For sure I will come up with more questions. I hope you are not annoyed yet?!
Thanks
Mathias
Please Log in to join the conversation.
Im back again with some questions. We assembled the Y and X axis and tried to run the first time the machine to measure the work area. There is the first problem: It moves, but very very slow. Could you give me an advise how to get the desired jogging speed of at least 10m/min? In the next days I want to touch the configuration of 3 Axis and 4 joints for the Y. If anyone has a configuration to have a look at, It would be great.
Thanks a lot
Mathias
P.S. attached some pictures of the machine itself...
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22010
- Thank you received: 3
Set the scale first.
Please Log in to join the conversation.
When I open up the .ini file, there are a lot of VELOCITIES...
The first one is in the DISPLAY area. At the moment at 16.666667. The documentation says something about machine units? Is it in mm, s or rpm? The next velocities are in the joints sections. The values are MAX_VELOCITY = 500.0 and MAX_ACCELERATION = 800.0. At the moment its for all three axis the same, but only X and Y have the same hardware. They have both a rack and pinion drive.
The calculation is: pi x 2mm (modul 2) x 12 (number of teeth) x 0,53125 (gear with 34 and 64 teeth) = 40,0553 mm per revolution. At the moment I have the switches for the microstepping set to 1/10. Thats 2000 steps per revolution and 0,02 mm per step. The Scale I use at the moment is therefor 1/0,02 = 49,93 steps per mm. Is that right?
Thanks a lot and regards
Mathias
Please Log in to join the conversation.
The jog speed is set by DEFAULT_LINEAR_VELOCITY in the ini file
See
forum.linuxcnc.org/49-basic-configuratio...ge-default-jog-speed
Assuming you have set the default units to be metric, all of the velocities are in machine units per second so 10 m/min gives 10000/60 mm/sec = 166.66667
I think you are running at 100 mm/min (16.66667)
Please Log in to join the conversation.
thanks for your answer! Meanwhile I got the machine running at reasonable speed of 10m/min.
With the great help of IchGucksLive in the linuxcnc chat, the home switches are configured, the soft limits are set and many of my questions were answered. At the moment I hardly try to understand the structure of the hal. I have a router (Kress) on a relay and want to connect it to spindle on/off (M4/M5). The same I want to do with the vacuum table and the dust collection. The pins in the hal file are
#setp hm2_5i25.0.gpio.029.is_output true
#net spindel hm2_5i25.0.gpio.029.out
#setp hm2_5i25.0.gpio.024.is_output true
#net vakuum hm2_5i25.0.gpio.024.out
#setp hm2_5i25.0.gpio.017.is_output true
#net absauge hm2_5i25.0.gpio.017.out
If you have any idea to connect these pins to M4/M5, M8/M9, It would be great.
Thanks a lot and regards
Mathias
Attachment not found
Attachment not found
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
- Posts: 4739
- Thank you received: 2
To connect one of those singals to the halpin hm2_5i25.0.gpio.029.out by adding a line like this to your hal file.
For connecting to the coolant mist/flood (M7/M8) your hal file has signals called "coolant-mist" and "coolant-flood" and like above you could add this to your hal file.
There is no way to separate the action of the M7/M8 commands they will always both be shut off by M9.
For this reason for the vacuum table and dust collection controls on the routers I've configured. I choose to use a custom M-codes (M1xx) to control them.
linuxcnc.org/docs/html/gcode/m-code.html#mcode:m100-m199
Here is what the file I use for turning on my vacuum looks like (using your output pin).
M111 (vacuum on)
Please Log in to join the conversation.
