Hello all
I just designed my own steel rule bender. The x axis feeds the rule into the bender head. The Y axis bends the rule. The bending action is done via a planetary gearboxed large stepper motor. I convert the drawing which is DXF format into GCode. The X-axis is no problem. However I need the y axis to make a radial twist and then immediately come back to its 0 position. Thus for example, if I am bending a 50mm curve, the y motor must turn (do the twisting action) to a set degrees (degrees according to the GCode) for say 5 steps then return to its 0 position. In this manner, the Y axis will be "oscilating" once left and once right again. Then it waits for the X axis to forward the blade a little and the Y axis will again bend left and return to the 0. This will continue until the entire curve is bent.
I have tried to slave the Y axis together with the X axis, thus when the command to the X axis is given, only the X Motor will turn. However, when the command to the Y axis is given, it will also turn the Xaxis. This is important as the curve need to be advanced for ever little bend.
What I need is a command which will simply turn the Y-axis forward and backwards. For example,
I send a GCODE to make a 50mm curve in 300 steps over 10 steps of the X Axis.
So I use this command of
Y+30
Y-30
X+10
It seems to work a bit but on a rectangular it does not work
Any help here would be appreciated.
Secondly, when the Gcode encounters space between the line, it needs to delay and trigger the notcher relay mechanism. (I simply use the M7/M9 which is connected to the notcher mechanism) After the notch has been made, the GCode continues on it way.
If my explanation is unclear, please contact me
Kind Regards
G Barnes