- Posts: 76
- Thank you received: 0
M100 to M199
- raglanlittlejohn
- Topic Author
- Offline
- Senior Member
-
Less
More
9 years 1 month ago #98423
by raglanlittlejohn
M100 to M199 was created by raglanlittlejohn
"For example to open and close a collet closer that is controlled by a parallel port pin using a bash script file using M101 and M102. Create two files named M101 and M102. Set them as executable files (typically right click/properties/permissions) before running LinuxCNC. Make sure the parallel port pin is not connected to anything in a HAL file."
I would like to use a custom command as above, but am unable to create an executable file. Please could someone explain how to do this, or point me to the best place to read up on it. I've tried creating a file with gedit, but cannot find anyway to set it as an executable file. I get a file named M100 in me/linuxcnc/nc_files, but Linuxcnc shows Unknown m command used: M100 when I put M100 in the MDI Command box.
I would like to use a custom command as above, but am unable to create an executable file. Please could someone explain how to do this, or point me to the best place to read up on it. I've tried creating a file with gedit, but cannot find anyway to set it as an executable file. I get a file named M100 in me/linuxcnc/nc_files, but Linuxcnc shows Unknown m command used: M100 when I put M100 in the MDI Command box.
Please Log in to join the conversation.
- raglanlittlejohn
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 76
- Thank you received: 0
9 years 1 month ago #98430
by raglanlittlejohn
Replied by raglanlittlejohn on topic M100 to M199
Got it working. Just copied the pyvcp-panel.xml file, replaced its contents and renamed it to M100. The rest of the process works fine as explained in the manual.
Please Log in to join the conversation.
9 years 1 month ago #98433
by bevins
Just to get an executable file?
Right click the file click on permissions and there is a checkbox to be able exec file.
Or you can chmod a+x
Replied by bevins on topic M100 to M199
raglanlittlejohn wrote: Got it working. Just copied the pyvcp-panel.xml file, replaced its contents and renamed it to M100. The rest of the process works fine as explained in the manual.
Just to get an executable file?
Right click the file click on permissions and there is a checkbox to be able exec file.
Or you can chmod a+x
Please Log in to join the conversation.
9 years 1 month ago #98434
by andypugh
Replied by andypugh on topic M100 to M199
It doesn't seem to be that easy in Stretch (and maybe in Wheezy)
There is no check-box.
Googling leads me to believe that command-line and chmod +x is the only way to do this in Debian. Which is disappointing.
There is no check-box.
Attachment not found
Googling leads me to believe that command-line and chmod +x is the only way to do this in Debian. Which is disappointing.
Please Log in to join the conversation.
- raglanlittlejohn
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 76
- Thank you received: 0
9 years 1 month ago #98437
by raglanlittlejohn
Replied by raglanlittlejohn on topic M100 to M199
Andy,
Thanks for confirming my problems with this. I need to get more familiar with the command line basics, and file types etc.
John.
Thanks for confirming my problems with this. I need to get more familiar with the command line basics, and file types etc.
John.
Please Log in to join the conversation.
9 years 1 month ago #98507
by bevins
Replied by bevins on topic M100 to M199
The file should have the correct first line for the script. Not just an empty file. .??
I can get the checkbox. I will check when i get to the shop tomorrow.
I can get the checkbox. I will check when i get to the shop tomorrow.
Please Log in to join the conversation.
Time to create page: 0.091 seconds
