7i76e: MPG and Analog inputs with pncconf?

More
7 years 9 months ago #124127 by cmorley
How do you connect that code to halui?
Can you make a HAL pin in the .axisrc file?

Chris M

Please Log in to join the conversation.

More
7 years 9 months ago #124129 by phillc54
Yes, you can create a component and connect it in .axisrc

Cheers, Phill

Please Log in to join the conversation.

More
7 years 9 months ago #124336 by trilobyte
I have modified the hal file to usw ilopass for the mpgs:

this is working, but only for "jogincr.in00" the other increments 01,02 do not work anymore.
these worked before i added the ilowpass.

what is going wrong with my new hal?

Attachment not found



peter

Please Log in to join the conversation.

More
7 years 9 months ago #124352 by andypugh
You might need to make all the jogincr numbers (in the mux16) 100x smaller to compensate for the 100x scaling of ilowpass.

Please Log in to join the conversation.

More
7 years 9 months ago #124671 by trilobyte
i edited the second newest hal file, not the last one. this was my problem, now it is working.
@andypugh: i made the jogincr numbers smaler.

the maschine gos very smooth now with the mpgs!


Peter

Please Log in to join the conversation.

More
7 years 9 months ago #124714 by trilobyte

Clive s wrote: setp axis.x.jog-enable true
setp joint.0.jog-enable true
## The above line is to be able to jog without homing ##


i added these two lines for x and z axis (joint 0 and 1). but i'm still not able to move the machine until it is homed.
Where can I find documentation on the subject?

Peter

Please Log in to join the conversation.

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 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 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 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 to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum