Fourth rele

More
01 Nov 2009 18:19 #1068 by FabioP
Fourth rele was created by FabioP
Hi,
from some days I'm trying to connect a fourth rele of the second parallel port, that manually works well with this Hal component net rele4 pyvcp.rele04 parport.1.pin-14-out , but to a M1xx code don't show error

File Attachment:

File Name: configs.gz
File Size:7 KB
.

#!/bin/sh

# M101 in your G code program will run the Linux commands in this
# shell script "batch" file, passing the P and Q variables as command
# line arguments.

# give the command line arguments descriptive names
P=$1
Q=$2

echo "M101 P$P Q$Q: halcmd setp rele4 parport.1.pin-16-out True"

exit 0

this file is readable,writable and executable, path as manual is /home/cnc/emc2/nc_files/
Attachments:

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

More
02 Nov 2009 12:20 #1074 by BigJohnT
Replied by BigJohnT on topic Re:Fourth rele
www.linuxcnc.org/docview/html//gcode_main.html#sec:M100-to-M199:

The file M101 does not need an echo to work AFAIK

#!/bin/bash

# file to turn on paraport pin 14 to open the collet closer

halcmd setp parport.0.pin-14-out True

exit 0

John

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

More
03 Nov 2009 11:11 #1082 by FabioP
Replied by FabioP on topic Re:Fourth rele
thanks, now it works

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

Time to create page: 0.071 seconds
Powered by Kunena Forum