Mesa 7i96 Ethernet board

More
09 Jul 2017 21:26 #95552 by PCW
Replied by PCW on topic Mesa 7i96 Ethernet board
Do you have a running (motion works etc) LinuxCNC configuration when
you ran the scripts?

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

More
09 Jul 2017 21:41 #95555 by microsprintbuilder
Yes, I have axis running. Inputs are working, haven't checked the steppers yet

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

More
09 Jul 2017 21:44 #95556 by PCW
Replied by PCW on topic Mesa 7i96 Ethernet board
And you have "enable_raw" in you config string?

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

More
09 Jul 2017 22:10 #95557 by microsprintbuilder
I have this in my hal;

loadrt hm2_eth board_ip="10.10.10.10" config="firmware=hm2/7i96/7i96.BIT num_encoders=1 num_pwmgens=0 num_stepgens=5 sserial_port_0=00xxxx enable_raw"

I've attached my hal file as well
Attachments:

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

More
09 Jul 2017 22:33 #95558 by PCW
Replied by PCW on topic Mesa 7i96 Ethernet board
OK a couple things funny in the hal file:

firmware=hm2/7i96/7i96.BIT and sserial_port_0=00xxxx should be removed from the config line
but the actual problem is likely this:

setp hm2_7i96.0.watchdog.timeout_ns 1000000

You have set the watchdog timeout to the servo period (assuming default 1 ms servo thread period)
This pretty much guarantees that it will timeout and disable all outputs

This should be set for at least 10 ms (10000000 ns)

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

More
09 Jul 2017 23:23 #95562 by microsprintbuilder
Well all be, it works now. you are the man. Now how about my m101 m102 idea. Is that possible?

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

More
09 Jul 2017 23:24 #95563 by andypugh
Replied by andypugh on topic Mesa 7i96 Ethernet board
Yes. M101 etc can call a bash script that uses "halcmd setp" commands

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

More
09 Jul 2017 23:37 #95564 by microsprintbuilder
Would you happen to know or can tell me where to look for the individual addresses to turn each one on a off?

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

More
09 Jul 2017 23:51 #95565 by andypugh
Replied by andypugh on topic Mesa 7i96 Ethernet board
I thought it would be here, but it appears not:
github.com/LinuxCNC/hostmot2-firmware/blob/master/src/regmap

It might be in the same file downloaded direct from Mesa.

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

More
10 Jul 2017 00:49 #95569 by PCW
Replied by PCW on topic Mesa 7i96 Ethernet board
The output bits are all at the same address, data bits 0..5 are outputs 0..5
to control these as individual bits you would need to use the weighted_sum component

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

Moderators: PCWjmelson
Time to create page: 0.099 seconds
Powered by Kunena Forum