On Thu, 6 Mar 2025, Viesturs L?cis wrote:
Date: Thu, 6 Mar 2025 00:28:18 +0200
From: "[UTF-8] Viesturs L?cis" <viesturs.la...@gmail.com>
Reply-To: "Enhanced Machine Controller (EMC)"
<emc-users@lists.sourceforge.net>
To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net>
Subject: [Emc-users] How to enable analog inputs on 7i84
Hello!
I would like to read analog voltage from 10K potentiometer that will
change voltage in range from 0 to 5V (I do understand that the reading
will be coarse because full range for the board is 36.3V and with 8bit
it is approximately 0.14V resolution) but that is for operator
convenience to show on vcp panel so not critical.
What do I need in HAL file for that? I have 5i24 board with 7i33 on
first and 7i44 on third connector. 7i84 is on channel 4 on the 7i44
board.
Manual does not explain how to change "software process data mode"
from 0 to 1. The only piece of info I found is this:
https://www.forum.linuxcnc.org/27-driver-boards/50030-7i84-analog-inputs
But I am not sure about the "sserial_port_0=1xxxxxxx" statement in the
config line when loading hm2 driver.
The driver is loaded in HAL file with this:
loadrt [HOSTMOT2](DRIVER) config=[HOSTMOT2](CONFIG)
And in the INI file I have these lines:
[HOSTMOT2]
DRIVER=hm2_pci
BOARD=5i24
CONFIG="num_encoders=4 num_pwmgens=4 num_stepgens=0"
So I am not sure about "sserial_port_0=1xxxxxxx" statement. I have a
suspicion that I have to specify particular channel for the 7i84.
Should I change 0 to 4 like this "sserial_port_4=1xxxxxxx"?
It should be:
"sserial_port_0=00001xxx"
The modes are listed in channel order left to right
Each sserial port (0..3) can have up to 8 channels
and "x" means disable the channel.
There can be up to 4 sserial ports (0..3) so 32 channels max
Assuming sserial devices 0,1,2,3 are mode 0 and sserial device 4
is to be mode 1
And then the whole config line should look like this?
CONFIG="num_encoders=4 num_pwmgens=4 num_stepgens=0 sserial_port_4=1xxxxxxx"
I would appreciate any confirmation or correction on this.
Viesturs
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
Peter Wallace
Mesa Electronics
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users