NEWS
emc2_2.4.1 Release
A fresh bugfix release (Changelog). You can get it: as a source package from sourceforge , from Git , or as a precompiled package which works on Ubuntu as described here .
 
Ubuntu 8.04&EMC2 Live CD
The EMC2 team has a custom Live-CD (EU mirror) based on Ubuntu 8.04 with emc 2.3.x included, that will let you try out EMC2 before installing, and it's also the easiest way to install Ubuntu and EMC2 together. (more)
 
emc2_2.4.0 Release

A new major release. You can get it: as a source package from sourceforge, from Git , or as a precompiled package which works on Ubuntu as described here. (more)

 
Site Search
Google
Web LinuxCNC
Login
Home arrow Forum

EMC Support Forum
Welcome, Guest
Please Login or Register.    Lost Password?
M101 camand
(1 viewing) 1 Guest
Go to bottom
TOPIC: M101 camand
#2225
Timbob (User)
Junior Boarder
Posts: 20
User Offline Click here to see the profile of this user
M101 camand 4 Months, 3 Weeks ago Karma: 0  
I'm a bit new to emc and I'm trying to figure out how to turn some extra relays on and off. I wrote a nc file as it says in the manual made it an executable file as it says m101 m102. and it still says undefined M code used . Am I missing something here? So far I have been successful at making the machine do what I want but this has me puzzled. Any help would be great.
Tim
 
Logged Logged  
  The administrator has disabled public write access.
#2228
Rick G (User)
Expert Boarder
Posts: 102
User Offline Click here to see the profile of this user
Re:M101 camand 4 Months, 3 Weeks ago Karma: 10  
Hello,

You might want to send a copy of the program along for us to view. Also more information such as what you want to do, what version of EMC, etc.

Rick G
 
Logged Logged  
  The administrator has disabled public write access.
#2229
BigJohnT (Admin)
Moderator
Posts: 689
User Online Now Click here to see the profile of this user
Re:M101 camand 4 Months, 3 Weeks ago Karma: 23  
Tim,

From the manual:

The error "Unknown M code used" denotes one of the following

* The specified User Defined Command does not exist
* The file is not an executable file

www.linuxcnc.org/docview/html//gcode_mai...ml#sec:M100-to-M199:

What did you name the file? M101 or M101.ngc? It only needs to be named M101. I don't have EMC set up yet on this computer so I can't test is out. As Rick said if you attach the file perhaps someone can verify that the problem is not in your file. Usually it is named wrong or not in the correct directory.

John
 
Logged Logged  
  The administrator has disabled public write access.
#2238
Timbob (User)
Junior Boarder
Posts: 20
User Offline Click here to see the profile of this user
Re:M101 camand 4 Months, 3 Weeks ago Karma: 0  
I wrote the file word for word as it is in the manual and named it M101 and another M102 and made them executional. they are just on my desk top maybe thats why if so were should I put them I use emc2. I am just trying to open and close four air cylinders. I use the coolant and brake set up for two and need to
activate two others. attached is one of the files
Thanks Tim
 
Logged Logged  
 
Last Edit: 2010/03/08 09:48 By Timbob. Reason: spelling + file
  The administrator has disabled public write access.
#2247
Rick G (User)
Expert Boarder
Posts: 102
User Offline Click here to see the profile of this user
Re:M101 camand 4 Months, 3 Weeks ago Karma: 10  
Tim,

I am not near my machine however I think you want to put the files in the directory named in your .INI file. PROGRAM_PREFIX =

Rick G
 
Logged Logged  
  The administrator has disabled public write access.
#2248
Timbob (User)
Junior Boarder
Posts: 20
User Offline Click here to see the profile of this user
Re:M101 camand 4 Months, 3 Weeks ago Karma: 0  
That sounds great only I can't find where that is or how to get it there
THANKS FOR YOUR HELP!!
Tim
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
© 2010 LinuxCNC.org
Joomla! is Free Software released under the GNU/GPL License.