ATC M6 Macro ToolRackOut not working <resolved, outputs flipped>
Posted: Tue Jan 21, 2025 5:05 pm
Background:
I have a 4x8 machine that I have retrofitted with a retractable tool rack/bar that holds the forks for the tool holders. There is a pneumatic cylinder / solenoid that in it's normal state (off) keeps the tool bar retracted (= off the work surface). When the solenoid is activated, the bar extends over the work surface allowing the ATC spindle to grab the appropriate tool.
When I set up the outputs in the Wizard I assigned Output 47 to ToolRackOut. I didn't assign an output to ToolRackIn as when 47 is turned off, the solenoid deactivates and pressurizes the return side of the pneumatic cylinder causing the ToolRack to pull in.
I can manually move the tool rack with an M94/M95 command but I have manipulate M94/95 via /80 and /81 as the PLC won't move the rack if it thinks the bar is out or in. It's not a simple M94/81 to get it out and M95/81 to get it to return.
Since it seemed overly complicated using the ToolRackOut/In output setting, and I couldn't get it to work, I changed Output 47 to M94M95121 and modified the MFun6.mac to add lines M94 /121 M95/121 to move the ToolRack as needed. I left the M94 M95 /80 /81 commands in the file assuming the PLC would still be checking their state but the movement would be via the M94/121 call.
The problem:
Even with the macro edits as described above, the tool rack will not extend at the beginning of the tool change. It only extends after the tool change as it's moving to the TouchPlate which is mounted at the end of the ToolRack. (Yes, I know not ideal but it's what I have at the moment.)
Yes, I have moved the slider in the Wizard to indicate I'm using a custom M6 macro.
M94 /121 M95/121 works as expected moving the tool bar.
There were two other copies of the M6 macro in the ATC folders. I renamed them to make sure they weren't being used.
Report attached. Thanks in advance for any assistance.
Steve
I have a 4x8 machine that I have retrofitted with a retractable tool rack/bar that holds the forks for the tool holders. There is a pneumatic cylinder / solenoid that in it's normal state (off) keeps the tool bar retracted (= off the work surface). When the solenoid is activated, the bar extends over the work surface allowing the ATC spindle to grab the appropriate tool.
When I set up the outputs in the Wizard I assigned Output 47 to ToolRackOut. I didn't assign an output to ToolRackIn as when 47 is turned off, the solenoid deactivates and pressurizes the return side of the pneumatic cylinder causing the ToolRack to pull in.
I can manually move the tool rack with an M94/M95 command but I have manipulate M94/95 via /80 and /81 as the PLC won't move the rack if it thinks the bar is out or in. It's not a simple M94/81 to get it out and M95/81 to get it to return.
Since it seemed overly complicated using the ToolRackOut/In output setting, and I couldn't get it to work, I changed Output 47 to M94M95121 and modified the MFun6.mac to add lines M94 /121 M95/121 to move the ToolRack as needed. I left the M94 M95 /80 /81 commands in the file assuming the PLC would still be checking their state but the movement would be via the M94/121 call.
The problem:
Even with the macro edits as described above, the tool rack will not extend at the beginning of the tool change. It only extends after the tool change as it's moving to the TouchPlate which is mounted at the end of the ToolRack. (Yes, I know not ideal but it's what I have at the moment.)
Yes, I have moved the slider in the Wizard to indicate I'm using a custom M6 macro.
M94 /121 M95/121 works as expected moving the tool bar.
There were two other copies of the M6 macro in the ATC folders. I renamed them to make sure they weren't being used.
Report attached. Thanks in advance for any assistance.
Steve