I/O settings

More
6 years 8 months ago #158760 by Arro
I/O settings was created by Arro
Hallo,

trying to setup some digital outputs for the MESA card
I configured HAL for more than 4 DIO and got the following failure

Attachment not found



Attachment not found



guess the syntax of the HAL modification is not correct

Please Log in to join the conversation.

More
6 years 8 months ago #158762 by tommylight
Replied by tommylight on topic I/O settings
What should the end result be?
The line with DIO and AIO is wrong in some way.
If you want to use the 4 analog inputs on the 7i76e, you do not need to add lines to hal, you have to change the 7i76e mode to 2 from 0, done in the same line where the IP and stuff is.
sserial_port_0=00xxxx
has to be changed to
sserial_port_0=20xxxx
For digital IO , if they have to be connected to physical IO's on the board, also no need to add anything in hal.

Please Log in to join the conversation.

More
6 years 8 months ago #158769 by Arro
Replied by Arro on topic I/O settings
I entered num_dio=10 at the end of the loadrt [EMCMOT] and it works , no more faults

However I'm not able to modify the status of the digital output (M64/M65 commands)
I noticed on AXIS that M64/M65 commands are not Active G-Codes (MDI Tab)

It seems they are not present as available codes

Please Log in to join the conversation.

More
6 years 8 months ago #158770 by Arro
Replied by Arro on topic I/O settings
can M64/M65 be given as MDI command ?

Please Log in to join the conversation.

More
6 years 8 months ago #158776 by rodw
Replied by rodw on topic I/O settings

Arro wrote: can M64/M65 be given as MDI command ?

I'm pretty sure I've used these before as MDI but the ones synced with motion (M62/M63) do not work.
How are you testing that the pins work?
I always use Halshow for this sort of stuff to watch the pin. Axis has a Show configuration (or similar named menu option to open it)
Find the pins you wish to observer and watch them.

Please Log in to join the conversation.

More
6 years 7 months ago #159387 by Arro
Replied by Arro on topic I/O settings
Yes you can give M64/M65 in the MDI Command line

Please Log in to join the conversation.

More
6 years 7 months ago #159429 by Todd Zuercher
Replied by Todd Zuercher on topic I/O settings
Actually m62/m63 can work as well, but you must also include a movement command for them to take effect. However from the MDI line there is little point to doing it.

Please Log in to join the conversation.

Time to create page: 0.172 seconds
Powered by Kunena Forum