7i76e: MPG and Analog inputs with pncconf?

More
7 years 9 months ago #124715 by cmorley
Do you have this in the [TRAJ] section of the INI?

NO_FORCE_HOMING = 1

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

More
7 years 9 months ago #124750 by trilobyte
Yes i've this in my ini:
"[TRAJ]
COORDINATES = XZ
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
DEFAULT_LINEAR_VELOCITY = 2.50
MAX_LINEAR_VELOCITY = 25.00
POSITION_FILE = position.txt
NO_FORCE_HOMING = 1"

Peter

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

More
6 years 7 months ago #158971 by Arro
Hi

I'm just trying to import some analog value from MESA 7i76e into LinuxCNC.
I thought the input was working on 4..20 mA signal, but I probably is detecting only the voltage source

Somebody can tell me the range ? I guess 0 to 24 Volt , what I'm actually using now...

However I'm trying to get the corresponding value from the HAL meter, but probably I'm not reading the right signal...

From the HAL-meter , Parameter Tab, I look at
hm2_7i76e.0.7i76.0.0.analogin0

but I get simply a fix value, even if I change the voltage from 0 to 20 VDC

Some inputs ?

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

More
6 years 7 months ago #158973 by andypugh

Arro wrote: Somebody can tell me the range ? I guess 0 to 24 Volt , what I'm actually using now...


From the 7i76 manual

ANALOG INPUTS
All field input pins are capable of reading the input voltage. These are not highly
accurate or high resolution but can be useful for things like potentiometer inputs. Input
resolution is 8 bits and input full scale value is 36.3V. Accuracy is +-5%. Software process
data modes 1 and 2 allow reading the analog voltage on inputs 0 through 3, in addition to
the 32 digital bit inputs


Have you set the smart-serial software mode correctly? (loadrt hm2_hm2_eth .... sserial_port_1="200xxxxx" or similar?
(I think you probably have, as I don't think that the pins will appear in HAL otherwise)

Is the hm2_7i76e.0.read function definitely running?

(halcmd show thread will show this, the exec time number should be different every time you call it)

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

More
6 years 7 months ago #158975 by Arro
Is the hm2_7i76e.0.read function definitely running?

- > I guess yes, coz I can read any digital inputs

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

More
6 years 7 months ago #158976 by Arro
I tried to import the signal through the variable "test_analog_input" with this line in custom.hal

net test_analog_input <= hm2_7i76e.0.7i76.0.0.analogin0

LinuxCNC start error:
PIN hm2_7i76e.0.7i76.0.0.analogin0 does not exist

Maybe some Loadrt missing ?

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

Moderators: cmorley
Time to create page: 0.206 seconds
Powered by Kunena Forum