Hello PLC Masters, I have an issue for you today that is making me pulling my hair off.
We have one dual channel machine here with a sub that just move the z2 axis until reach one proximity sensor. So the operator executes a function named M58, turn the machine to jog mode and press the Z2+ key, and then the machine moves until the switch.
The problem is that I'm trying to create a function to do it automatically, the new function is M59, but it just do not work! I put the M function de-codification function as well as the Function 8 to put the machine at fast feed rate, the Z2+ led turns on, the channel is enabled but it just don't move!
Can you guys please help me by telling just a single function block to get the axis moving by the PLC just executing my M function, the rest I guess that I can handle with my logic that in fact is working to catch the switch signal as well as all safety stuff.
In other words I just need to know how to tell to the machine to "move, now!" by PMC, the rest I can handle properly already.
Thank you by the advance,
Eduardo