I built a spray booth using X&Y for travel and A to change the angle of the spray nozzle, I want to use Z to constantly rotate the part I am spraying at a constant speed throughout the G code program. Currently, I'm using fusion 360 to post process X&Y, post processing as a plasma torch to operate the solenoid valve of the paint sprayer, I manually inserting the A axis commands. Mechanically everything works as designed, and I am fine with post processing this way as I only need to run 10 to 15 different programs. I'm trying to keep everything in the black box to make it as easy as possible to train someone to operate it. I am new to writing G code, and have been unable to find anything discussing this particular scenario. My questions are: 1. Can the Z be used at a constant speed throughout a program? If not 2. Can the black box x32 be used to output 0 to 10 V while simultaneously running the dry contact for the plasma? If no to 1, and yes to 2 3. Does anyone have recommendations on what to use to to run from the 0 to 10 V ( preferably in nema 23 as I already have my reduction gear), depending on the size cylinder I'm spraying, I need the motor to rotate at 100 to 250 RPM.
1) Not directly no - you can program a long Z move at a certain feedrate - but its not constant. Would it matter? As long as the gcode runs, you can send Z moves to match? 2) Yes, the PWM signal is used to drive the 0-10v signal. Relays are on Enable and Dir by default. They are "seperate" - but they are also related (With M3 S1-max is active, so is the Enable relay for example) 3) Not that I know of off the top of my head. But one might be able to use the PWM (with proper frequency setting in Grbl Settings) to pulse the STEP pin of an external stepper driver. Or one could use the coolant output to run a DC motor?
Peter, thank you for the quick response! That's fantastic, and what I was hoping to hear. Do I need to write a G1 command at the start of the program? Would that cause the other axis to slow down or stop so they arrive at the new coordinates at the same time? I apologize for the advanced questions coming from a beginner.
Moves on one command will be synced yes. You may need to do some maths to make sure the Z distance/feedrate does what you need it to do for the XYA move