Output setup help need

More
13 Sep 2016 20:06 #80420 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 or Create an account to join the conversation.

More
14 Sep 2016 08:42 #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.
The following user(s) said Thank You: Wstudio

Please Log in or Create an account to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum