ken_rychlik
10-06-2010, 10:12 PM
I am digging into the programming to control my spindle semi-automatic mode. I can close some switches and have a pre-set hign, med, and low settings.
My question is this. Could I post this in the tool change file and do you think it would work.
If &tool = 11 then goto, low_speed
If &tool = 12 then goto, Med_speed
If &tool = 13 then goto High_speed
'sub routines for example
Low_speed:
SO,3,1 'this would turn on a relay tied to output 3
Return
Med_speed:
SO,6,1 'this would turn on relay tied to output 6
Return
High_speed:
SO,3,1 'both relays 3 & 6 on would run high speed
SO,6,1
Return
With a manual tool change file C9 would have this type of wording in it.
Then when a given tool is called for, it would run the spindle speed I have for that tool.
Any reason this wouldn't work? I am thinking of putting this just after the &tool line in the C9
I don't have a delta or yaskawa vfd, but do have ways of controlling it with relays.
Thanks
My question is this. Could I post this in the tool change file and do you think it would work.
If &tool = 11 then goto, low_speed
If &tool = 12 then goto, Med_speed
If &tool = 13 then goto High_speed
'sub routines for example
Low_speed:
SO,3,1 'this would turn on a relay tied to output 3
Return
Med_speed:
SO,6,1 'this would turn on relay tied to output 6
Return
High_speed:
SO,3,1 'both relays 3 & 6 on would run high speed
SO,6,1
Return
With a manual tool change file C9 would have this type of wording in it.
Then when a given tool is called for, it would run the spindle speed I have for that tool.
Any reason this wouldn't work? I am thinking of putting this just after the &tool line in the C9
I don't have a delta or yaskawa vfd, but do have ways of controlling it with relays.
Thanks