Using M64 command for a relay trigger

More
03 Jan 2021 03:51 #193927 by Hamel2020
Hi Guys ..

Trying to trigger a 24v relay by M64 P0 G-code , I did the following , but unfortunately always no signal from the pin [ No.7 ]

1. I checked the polarity, was correct.
2. I tried the two types of wiring as attached.
3. Trying the out put on hal meter : it was ok , for bot True & False for M64 P0 , M65 P0
But the problem I’m not able to get the 24V , also can’t invert the signal
4. Used the hal :

net relay-on motion.digital.out-00 => hm2_7i76e.0.7i76.0.0.output-07
setp hm2_7i76e.0.7i76.0.0.output-07 – invert true


Any advice please …

Thanks
Attachments:

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

More
03 Jan 2021 05:40 #193928 by Aciera
Probably best to attach your hal and ini files.

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

More
03 Jan 2021 20:32 #193984 by Hamel2020
Any Help Guys ... I'm stuck

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

More
03 Jan 2021 20:59 #193988 by Hamel2020
Hi Aciera ,
Thank you for reply , here's the files
Attachments:

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

More
04 Jan 2021 02:28 #194005 by tommylight
Above you have output 7, while in hal output 6 ???
Where is the relay wired on the 7i76E ? What physical pin ?
Output 7 should be the last pin on the right most column.

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

More
04 Jan 2021 02:41 #194006 by Hamel2020
Hi Tom ,
thank you for reply , Actually was mistake in typing the letter, it was the pin (No. 6 ),
and the connection was on the pin 6 the second one
here is the revised drawing
Attachments:

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

More
04 Jan 2021 03:30 #194009 by Hakan
Hi, check the TB1 connector. It looks like Vfield gnd is connected to NC.
Also it says only Vfield need to be powered and the jumper will power Vin. Not the other way, yes it is pedantic but if one is looking for reasons so maybe?

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

More
04 Jan 2021 03:41 #194010 by Hamel2020
Hi ..
I did as you see the sketch , wiring 2 ... but also the same issue , I think I have to do something in hal .. but I do not know

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

More
04 Jan 2021 04:30 #194012 by PCW
Are you sure you have the correct pin?
output 7 would be the top pin of TB6
(and you have output 6 in the hal file)

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

More
04 Jan 2021 04:55 #194015 by tommylight
Deleting the other topic with the same question, it already started causing confusion.
Hamel, no double posting, several users have replied here and you posted the same question a day after this ???

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

Time to create page: 0.085 seconds
Powered by Kunena Forum