mesa 5i25 output driving gecko g540 output

More
24 May 2021 01:28 #209969 by ericg
Hi, haven't been on for a while, as I have only been using my cnc machine occasionally, but I have recently wanted to add some laser cross hairs for aligning the xy position more easily. I have been following some old videos by swolebo to assist but am stuck at step 1.
I have a mesa 5i25 card connected to a gecko g540 driver, I want to use the gecko output 2 to drive the crosshairs on/off, this output is connected to the mesa board db25 via pin 1.
mesa io0 is the output to control this pin so my code is...
setp hm2_5i25.0.gpio.000.is_output true
net laser motion.digital-out-00 => hm2_5i25.0.gpio.000.out

so using mdi g64 p0 does turn motion.digital-out-00 true and g65p0 turns it false but nothing happens to the g540 output 2,
not sure if it's a software or hardware issue as I cannot physically get to the db25 pin1 to test it

any help as always is greatly appreciated

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

More
24 May 2021 01:57 #209975 by PCW
You could check the 5I25 pin 1 output when disconnected from the G540

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

More
24 May 2021 04:04 #209991 by ericg
Thanks for the quick reply PCW, I went to try that, forgetting that when I unplug the cable I open the estop line so no power to run the commands, BUT.... as I was doing this I heard the relay I had connected to the gecko output click on and off as I moved the cable, sure enough I have a faulty db25 cable, just my luck the only pin damaged is the one I needed - Murphy strikes again.
all good now with replacement cable
onto my next general question in another section
regards... Eric

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

More
22 Jun 2021 08:59 #212656 by slese
Hi Eric.
Having a hard time getting my Mesa 5125 and g540 configured. Any chance of posting your config files so i can try and follow them.
Regards.

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

More
06 Sep 2021 04:04 #219716 by ericg
apologies slese, I missed this request, I hope you have things sorted now, but here are my files anyway
Eric
Attachments:

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

More
06 Sep 2021 11:24 #219752 by slese
Awesome. Will have another go. Thank you so much

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

More
06 Sep 2021 23:12 #219802 by ericg
happy to help, if you more info , I would be happy to assist as much as I can remembering I'm a bit of a full time novice at this. The people on this forum are also fabulous and very patient, I know because they have put up with me a lot
regards
Eric
The following user(s) said Thank You: slese

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

More
19 Sep 2021 10:34 #221075 by slese
Have not for gotten your generous offer of help. CNC has taken a back seat for the moment. Work is demanding during these Covid times.
Reading your scripts i think i can see where i may have um gone wrong...

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

More
19 Sep 2021 12:01 #221080 by ericg
no problem, when you need help, just ask, I owe this forum big time so if I can give back, I'm happy to do so.
Eric

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

Moderators: cmorley
Time to create page: 0.094 seconds
Powered by Kunena Forum