ubuntu 10.04 Lcnc2.7 JA8 custom kins

More
18 Nov 2015 12:37 - 18 Nov 2015 12:45 #65421 by bkt
Replied by bkt on topic ubuntu 10.04 Lcnc2.7 JA??
is an mpg .... single end mode encoder on mesa7i77 .... and 2 rotary switchesr .. 1 for mux4 and other for axis selection + I have make an security button .... if press these the output from rotary switches go to mesa card ... altrhought mesa card receive off signal from all selector.... encoder wheel is always active....

similar to these...



@AndyPugh Thanks for joint the post to my other ...
Attachments:
Last edit: 18 Nov 2015 12:45 by bkt.

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

More
18 Nov 2015 12:45 #65422 by andypugh
Replied by andypugh on topic ubuntu 10.04 Lcnc2.7 JA??
I am not sure if this works or not. My own machine runs on JA(something) but with trivial kins and Touchy. The jogwheel connects to the touchy HAL pins so I don't know for sure that your setup will work.

Can you check with halmeter that the jog-enable inputs into motion are definitely being set? And that the counts increases/decreases.

It is possible that my translation script has slightly broken your config.
The following user(s) said Thank You: bkt

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

More
18 Nov 2015 13:19 #65423 by cncbasher
Replied by cncbasher on topic ubuntu 10.04 Lcnc2.7 JA??
s.axes is usually caused by a malformed hal file
The following user(s) said Thank You: bkt

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

More
18 Nov 2015 13:22 #65424 by bkt
Replied by bkt on topic ubuntu 10.04 Lcnc2.7 JA??
no your translation script works well ... only insert KINS = trivialkins and put in hal file "#halconverter mycustomkins" row and add "loard [KINS]KINEMATICS" not work for my ... than I convert all by hand ... Insert a little part of interest for problem ...

Warning: Spoiler!



ini file ...

Warning: Spoiler!


Image of jog mode and teleop mode ..... you see all halui pin move right but in world mode axes is stopped ....






you see anythings broken??
Attachments:

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

More
18 Nov 2015 13:26 #65425 by bkt
Replied by bkt on topic ubuntu 10.04 Lcnc2.7 JA??
@ cncbasher ..... my hal file is not definitive ... only a develop test ... have a lot of #row ..... if you see anythingh of erroneus can you suggest me?

File Attachment:

File Name: n-2.hal
File Size:19 KB
Attachments:

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

More
18 Nov 2015 13:58 #65427 by bkt
Replied by bkt on topic ubuntu 10.04 Lcnc2.7 JA??
@ cncbasher .. ok I purge some #...... row and some double #...limit-signal... the messages first show 8 waiting for s.joints ... now only 2 .... probabily I have other double comment pin and halui pin (# .... halui.....) ... if cancel other the messages go out I think ... is possible?

But the jog in world mode is impossible too ....
before I used LCNC 2.7.2 but it was equally impossible .... I do not understand what to do ... the only thing I can do is change the kinematics specially ..... but it seems absurd to have to change the kinematics to take in any case the signals halui ...

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

More
18 Nov 2015 14:19 #65428 by bkt
Replied by bkt on topic ubuntu 10.04 Lcnc2.7 JA??
@ ANdyPugh .... in motion not have jog.select pin .....

I summarize: i
in joint mode->
halui.mode.is-teleop off
halui.jog.0.increment -257 (go to negative)
halui.jog.selected.increment 0.01
joint.0.wheel-jog.active on
joint.0.jog.scale xxx(not remember
joint.0.jog.enable on
joint.0.jog.increment -257 ALL WORKS 1JOINT AT TIME

in world mode->
halui.mode.is-teleop on
halui.jog.0.increment -257 (go to negative)
halui.jog.selected.increment 0.01
joint.0.wheel-jog.active on
joint.0.jog.scale xxx(not remember
joint.0.jog.enable on
joint.0.jog.increment -257 AXIS/JOINT IS STOP WITH EXTERNAL MPG. With axis button all works!!

I made some mistakes in the use of commands halui ?? I forgot to set something ?? I had to set halui.jog-speed or halui.jog.0.analogue ??

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

More
18 Nov 2015 14:44 #65431 by bkt
Replied by bkt on topic ubuntu 10.04 Lcnc2.7 JA??
setp halui.jog-speed	10

#       for axis x MPG
setp    axis.0.jog-vel-mode 0
net selected-jog-incr    =>  axis.0.jog-scale
net joint-select-a       =>  axis.0.jog-enable   <=  hm2_5i25.0.7i77.0.0.input-16  #halui.joint.0.select  <=  hm2_5i25.0.7i77.0.0.input-16
net joint-selected-count =>  axis.0.jog-counts c32f.0.in
net joint-world-0 c32f.0.out => halui.jog.0.analog
#net joint-world-0 c32f.0.out => halui.jog.0.increment

net jog-incr-b           =>  jogincr.sel0
net jog-incr-c           =>  jogincr.sel1 
net selected-jog-incr halui.jog.selected.increment <=  jogincr.out
#net selected-jog-incr  <=  jogincr.out
    #setp jogincr.debounce-time      0.200000
    #setp jogincr.use-graycode      False
    #setp jogincr.suppress-no-input False
    setp jogincr.in0          0.001000
    setp jogincr.in1          0.004000
    setp jogincr.in2          0.012000

obviusly there are somethings wrong ... and some other mux to put ... but now axes move in world mode ... JA8 and Lcnc2.7.2 too....

If someone clarify me the mechanism ... thanks in advance.

regfards
Giorgio

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

More
18 Nov 2015 15:35 #65435 by andypugh
Replied by andypugh on topic ubuntu 10.04 Lcnc2.7 JA??
Is c32f a conversion function?

So, you are converting jog-counts to float then sending that to halui.analog-jog?

That doesn't seem like the right way, at all.

The joint jogging pins are created here:
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...82c603cf44aeeaecdb67

There seems to be a jog-counts and jog-enable for each joint.
Are you saying that these work in joint mode, but do not work in world mode?
The following user(s) said Thank You: bkt

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

More
18 Nov 2015 15:44 #65437 by bkt
Replied by bkt on topic ubuntu 10.04 Lcnc2.7 JA??
I'm saying that the last code that I put , bad and wrong , working in joint and also in world ..... but not misbehaving ..... while codes that I posted previously only worked in joint .
c32f is a function that converts to know s32 float. Yess . ..... Now I look at the link .... but I have not yet figured out how to do this well .
I have the input encoder.count , I have the chance to choose the axis , I have a chance to put the increase ....

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

Time to create page: 0.241 seconds
Powered by Kunena Forum