Basic Mesa Test

More
13 Dec 2018 23:54 #122393 by slammers
Basic Mesa Test was created by slammers
I am new to LinuxCNC. I have a machine that stopped working and I am trying to determine if my Mesa 5i25 card is bad.

I have been using the halrun command to create a simple program to turn an IO line on and off. The steps I took were to
loadrt host2mot
loadrt hm2_pci
loadrt threads
loadrt siggen

I created a thread to call siggen.0.upadate.
use setp hm2_5i25.0.gpio.000.is_output true

I used net to connect siggen.0.clock to a signal named clock and then to hm2_5i25.0.gpio.000.out

Started the thread. I see no output on the IO pin

if I run halmeter and look at signal hm2_5i25.0.gpio.000.out it goes between true and false every 1/2 second

Does this mean the actual IO line should also be going from high to low as I expected?

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

More
14 Dec 2018 00:49 #122399 by PCW
Replied by PCW on topic Basic Mesa Test
I don't think that will work without calls to the write function for the card in the thread

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

More
14 Dec 2018 01:17 #122401 by slammers
Replied by slammers on topic Basic Mesa Test
I added hm2_5i25.0.write_gpio to a faster thread than the sig gen. But that had no effect

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

More
14 Dec 2018 01:38 #122403 by slammers
Replied by slammers on topic Basic Mesa Test
I also noticed that as soon as I start the HAL threads, the outermost red LED on the mesa card lights up. When I exit HAL it turns off. Is this normal?

When I boot the PC the two red LEDs on the card go and off quite quickly.

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

More
14 Dec 2018 01:45 #122404 by PCW
Replied by PCW on topic Basic Mesa Test
No red light should be on once the card has initilaized at power up

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

More
14 Dec 2018 01:49 - 14 Dec 2018 02:29 #122405 by PCW
Replied by PCW on topic Basic Mesa Test
I take that back, later firmware illuminates the red /INIT if the watchdog has bitten
so you should not expect I/O to work (since the WD bit)
Last edit: 14 Dec 2018 02:29 by PCW.

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

More
14 Dec 2018 01:54 #122406 by slammers
Replied by slammers on topic Basic Mesa Test
ok, thanks. Now I just have to figure out how to kick the dog.

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

Time to create page: 0.366 seconds
Powered by Kunena Forum