M100

More
02 Jan 2020 12:42 #153786 by RobotMatic
M100 was created by RobotMatic
I want to make an M100 function to put a 1 or a 0 on a physical pin of the parallel port

I put into the file

halcmd setp parport.0.pin-09-out-fake TRUE

exit 0.

But don't work. !!

what is my mistake ? The file works!!.

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

More
02 Jan 2020 12:58 #153788 by BigJohnT
Replied by BigJohnT on topic M100
The examples in the documents have been tested and work. Not sure what parallel port pin would have the word fake in it.

linuxcnc.org/docs/2.7/html/gcode/m-code.html#mcode:m100-m199

JT

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

More
02 Jan 2020 13:05 #153790 by Clive S
Replied by Clive S on topic M100
I think a SIM file has fake pins

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

More
02 Jan 2020 13:15 #153791 by BigJohnT
Replied by BigJohnT on topic M100
I did find a file sim/axis/panelui-demo/sim_hardware.hal that uses fake
net fake-xstep => parport.0.pin-02-out-fake

and it looks like sim/gscreen/spartan/sim_hardware.hal is the same file but that's the only two I could find.

JT

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

More
02 Jan 2020 13:19 #153793 by RobotMatic
Replied by RobotMatic on topic M100
Thakkkkk youuuuu!!!

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

Time to create page: 0.105 seconds
Powered by Kunena Forum