I/O settings

More
28 Feb 2020 16:30 #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





guess the syntax of the HAL modification is not correct
Attachments:

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

More
28 Feb 2020 16:43 #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 or Create an account to join the conversation.

More
28 Feb 2020 17:17 #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 or Create an account to join the conversation.

More
28 Feb 2020 17:32 #158770 by Arro
Replied by Arro on topic I/O settings
can M64/M65 be given as MDI command ?

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

More
28 Feb 2020 18:38 #158776 by rodw
Replied by rodw on topic I/O settings

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 or Create an account to join the conversation.

More
07 Mar 2020 08:50 #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 or Create an account to join the conversation.

More
07 Mar 2020 18:36 #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 or Create an account to join the conversation.

Time to create page: 0.278 seconds
Powered by Kunena Forum