7i76e: MPG and Analog inputs with pncconf?

More
13 Jan 2019 10:01 #124065 by cmorley
You would need to scale the analog input to range of the max jograte required.
then connect the scaled rate to the signal 'jog-speed'

analog_input -> scaled component -> jog-speed

You'll have to look up the actual pin names and component detail.
they would probably be best to put in the postgui_hal file

Other's may have better ideas.

Chris M

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

More
13 Jan 2019 21:41 #124111 by rodw
Read up on the halui component. I think it will do what you want!

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

More
13 Jan 2019 22:00 - 13 Jan 2019 22:02 #124112 by trilobyte
it is working now! tnx guys!


i have this in the custom postui hal:

setp hm2_7i76e.0.7i76.0.0.analogin3-scalemax 460
net halui.maxjoganalog <= hm2_7i76e.0.7i76.0.0.analogin3 => halui.axis.jog-speed

something is a bit strange: if i start linuxcnc i can run a cnc programm without a homeing sequene (the last position is stored) but i can't move the machine with the mpg and the joystick.
with the arrow keys on the keybord it is possible directly after starting the machine.
mpg and the joystick are working after a homeing sequence, or after starting an stopping a ngc file!?


Peter
Last edit: 13 Jan 2019 22:02 by trilobyte.

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

More
13 Jan 2019 22:21 #124113 by phillc54

trilobyte wrote:
it is working now! tnx guys!
i have this in the custom postui hal:
setp hm2_7i76e.0.7i76.0.0.analogin3-scalemax 460
net halui.maxjoganalog <= hm2_7i76e.0.7i76.0.0.analogin3 => halui.axis.jog-speed

I am a bit confused as I have an up to date version of master and changing the value of halui.axis.jog-speed has no effect on the jog speed slider in Axis.

Cheers, Phill.

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

More
13 Jan 2019 22:48 #124116 by PCW

trilobyte wrote: it is working now! tnx guys!


i have this in the custom postui hal:

setp hm2_7i76e.0.7i76.0.0.analogin3-scalemax 460
net halui.maxjoganalog <= hm2_7i76e.0.7i76.0.0.analogin3 => halui.axis.jog-speed

something is a bit strange: if i start linuxcnc i can run a cnc programm without a homeing sequene (the last position is stored) but i can't move the machine with the mpg and the joystick.
with the arrow keys on the keybord it is possible directly after starting the machine.
mpg and the joystick are working after a homeing sequence, or after starting an stopping a ngc file!?


Peter


I think this is a result of the 2.8's Joint-axis separation, you cannot jog axis until homed (only joints)

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

More
13 Jan 2019 22:55 #124117 by rodw
PCW is on the money. In master, you can't jog until you home all. This is to prevent a gantry from racking by moving a single joint on one side.

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

More
13 Jan 2019 23:14 #124118 by Clive s

rodw wrote: PCW is on the money. In master, you can't jog until you home all. This is to prevent a gantry from racking by moving a single joint on one side.


I did it like this with PCW help. But this is on a simple mill no dual motors.
setp axis.x.jog-enable true
setp joint.0.jog-enable true
## The above line is to be able to jog without homing ##

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

More
13 Jan 2019 23:19 - 13 Jan 2019 23:32 #124119 by dgarrett

In master, you can't jog until you home all. This is
to prevent a gantry from racking by moving a single joint on
one side.


In general, the above statement is incorrect.

Joint jogging is allowed prior to homing except for special
cases where joints specify a synchronized final move by
using negative [JOINT_N]HOME_SEQUENCEs. In these cases,
joints that do *not* have a synchronized home sequence may be
jogged prior to homing.

See: linuxcnc.org/docs/master/html/config/ini....html#_home_sequence
Joint mode jogging of joints having a negative HOME_SEQUENCE
is disallowed. In common gantry applications, such jogging
can lead to misalignment (racking). Note that conventional
jogging in world coordinates is always available once a
machine is homed.


The behavior is readily shown using the sim config (no
hardware required):

configs/sim/axis/gantry.ini

In this XYZY config, joints that correspond to the
Y coordinate (1 and 3) are synchronized; joints 0 (X) and
2 (Z) are not synchronized.

github.com/LinuxCNC/linuxcnc/blob/master.../sim/axis/gantry.ini
Last edit: 13 Jan 2019 23:32 by dgarrett.
The following user(s) said Thank You: rodw

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

More
14 Jan 2019 00:29 #124123 by cmorley

phillc54 wrote:

trilobyte wrote:
it is working now! tnx guys!
i have this in the custom postui hal:
setp hm2_7i76e.0.7i76.0.0.analogin3-scalemax 460
net halui.maxjoganalog <= hm2_7i76e.0.7i76.0.0.analogin3 => halui.axis.jog-speed

I am a bit confused as I have an up to date version of master and changing the value of halui.axis.jog-speed has no effect on the jog speed slider in Axis.

Cheers, Phill.


Strangely the original developers of the linuxcnc motion controller didn't give it an internal jograte or jog increment memory.
My understanding of this is because in the beginning it was a design requirement to be able to be controlled with multiple user interfaces at the same time - which typically used a switch mechanism to select jograte/increment which of course can't be automatically adjust by another interface..

Consequently, each ui has it's own idea of jograte/increment and there is no easy/universal way to communicate it around.
You would have to hack into AXIS to connect the halui jograte to AXIS's jograte - maybe possible within the .axisrc file.

Chris M
The following user(s) said Thank You: phillc54

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

More
14 Jan 2019 00:46 #124126 by phillc54

cmorley wrote:
Consequently, each ui has it's own idea of jograte/increment and there is no easy/universal way to communicate it around.
You would have to hack into AXIS to connect the halui jograte to AXIS's jograte - maybe possible within the .axisrc file.


Yes, it can be done with either .axisrc or a user_command_file.
This was asked for in this post so I assumed that a successful result meant that it had been achieved...

Cheers, Phill.

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

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