Hello Guest it is March 28, 2024, 08:25:59 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bhdh405

Pages: 1
1
General Mach Discussion / Re: associating M codes to output points
« on: March 01, 2017, 09:58:20 PM »
ok just got your post on the another discussion of this and this is making much more since now
the m10/m11 are a manual turn on and off of a output pin  so the command consists of m10( pin number ) and the g0 code to get it to implament the command

thank you for the help  :)
butch

2
General Mach Discussion / Re: associating M codes to output points
« on: March 01, 2017, 09:36:10 PM »
did some more web searching and found this info
now just to figure out how to associate it to the ouput pins
specificly m10 and m11 as I have a lathe with a turret head on it with a servo drive and encoders.
the lock and unlock is an air solenoid so I just need to turn that solenoid on and off ( reason for m code ) I can then associate the servo with the y or a axises in the g code  and use the g01 command to rotate it to the desired position.  as I can set the counts to a numeric value matching the station number and use the G01 command. ie
station 1 or zero depending on how you look at it is home
station 2 would be say 2 and that would equal 1000 counts from the encoder to reach that position
station 3 would be say 3 and that would equal 2000 counts from the encoder to reach that position   and so on you get the picture hear

where we usually associate the counts to a inch increment we now associate it with a station number or you can make it equal to degrees if you like but in short all the same.

CNC M Codes

M00 - Program stop; Mill and Lathe
 M01 - Optional program stop; Lathe and Mill
 M02 - Program end; Lathe and Mill
 M03 - Spindle on clockwise; Lathe and Mill
 M04 - Spindle on counterclockwise; Lathe and Mill
 M05 - Spindle off; Lathe and Mill
 M06 - Toolchange; Mill
 M08 - Coolant on; Lathe and Mill
 M09 - Coolant off; Lathe and Mi
 M10 - Chuck or rotary table clamp; Lathe and Mill
 M11 - Chuck or rotary table clamp off; Lathe and Mill[/color]
 M19 - Orient spindle; Lathe and Mill
 M30 - Program end, return to start; Lathe and Mill
 M97 - Local sub-routine call; Lathe and Mill
 M98 - Sub-program call; Lathe and Mill
 M99 - End of sub program; Lathe and Mill

3
General Mach Discussion / Re: associating M codes to output points
« on: March 01, 2017, 09:20:06 PM »
ok the m11p is pin numbers associated with the m3/4 commands makes since now.  I was thinking it was something different

butch

4
General Mach Discussion / Re: associating M codes to output points
« on: March 01, 2017, 08:51:23 PM »
talk to me about the m10 and m11 codes and how many of them are there and how did you get them assigned to the outputs ???????????????????

butch

5
General Mach Discussion / associating M codes to output points
« on: March 01, 2017, 03:14:00 PM »
trying to find a table that will allow me to associate an existing m code number to a output number so that when I write the machining file I can enter say m12 to turn on out put 2 and m13 to turn it off type of thing.    ???

I am still pretty new with the m and g codes so lets start simple and then go to complex
butch

Pages: 1