Output setup help need

  • Wstudio
  • Topic Author
  • New Member
  • New Member
More
10 years 1 month ago #80420 by Wstudio
Output setup help need was created by Wstudio
I need a help to setting m101 cide to setting true the gpio outut pins! My hal file setp is ok! But i need the help for m101 and 102 code to set true and false it!!!!
Because iam newbee i need deep explanation if is possible!

Please Log in to join the conversation.

More
10 years 1 month ago #80430 by andypugh
Replied by andypugh on topic Output setup help need
There is an example script here:
linuxcnc.org/docs/2.7/html/gcode/m-code.html#mcode:m100-m199

The first line is important, "#!/bin/bash" tells linux that the script should be passed to "bash" (which is basically the Linux command line) to be interpreted.
The file needs to be saved as plain text in the same folder as the HAL and INI files (typically, but see the link there on file search paths) and it needs to be called "m101" or similar. It also needs to be set as executable (ie, it can run as a program). You can do this by right-clicking the file icon in the the fle manager and selecting "allow execution" or similar.

Please Log in to join the conversation.

Time to create page: 0.076 seconds
Powered by Kunena Forum