Why pin gmoccapy.jog.turtle-jog does not exist?

More
3 years 10 months ago #260274 by Ondrej
Hello,

Iam following this video 
, When I write connect via net: button with gmoccappy.jog.tutle-jog in the configurations hal config it works. 
But when I type the code into Hal:
net turtle-btn input.btn-b toggle.0.in
net turtle-select toggle.0.out gmoccapy.jog.turtle-jog

and run the configuration I get an error : Pin gmoccappy.jog.turtle-jog does not exist.

Do you know whats happening? Thx

Please Log in to join the conversation.

More
3 years 10 months ago #260275 by HansU

When I write connect via net: button with gmoccappy.jog.tutle-jog in the configurations hal config it works.

I guess you mean writing that command in halcmd oder halshow? Is that correct?

But when I type the code into Hal:

Here I guess you are meaning the HAL file defined as HALFILE in the INI file?
If my assumptions ar correct, you have to connect the gmoccapy pin in a HAL file defined as POSTGUI_HALFILE. Because the gmoccapy pins are created when GUI is loaded and are not available before.

Please Log in to join the conversation.

More
3 years 10 months ago #260280 by Ondrej
Yes thats correct. I copied the whole  HALUI-signals and USB device jog button signals code into custom_postgui.hal. Now I dont get this error, but another one : 
HAL : ERROR : thread 'servo-thread' not found
custom_postgui.hal:7: addf failed.

I havet found anything on the internet so far but maybe you will be faster. thx
 

Please Log in to join the conversation.

More
3 years 10 months ago #260284 by Ondrej
Ok I fixed this error by moving the line: source postgui_call_list.hal from the HALFILE behind the loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS. 

But the old problem is again here, where I run the configuration, I get an error : pin gmoccappy.jog.turtle-jog does not exist.
 

Please Log in to join the conversation.

More
3 years 10 months ago #260285 by tommylight
Move it to the other file, not inside the file.
Hansu explained that, but maybe translation is messing up.

Please Log in to join the conversation.

More
3 years 10 months ago #260286 by Ondrej
I moved it to other file called custom_postgui.hal (not sure if its correct name but I hope I know what you mean tommy - move that code into another file).
As I said now Iam getting still same error. 
 

Please Log in to join the conversation.

More
3 years 10 months ago #260287 by tommylight
Yes, that is what he means, and i agree as GmoccaPY creates pins after GUI started.
Sorry i can not help more since i do not use GmoccaPY, i use Axis GUI mostly.

Please Log in to join the conversation.

More
3 years 10 months ago #260290 by Ondrej
Never mind. Yes the pin is called gmoccapy.jog.turtle-jog (I checked all the names multiple times..)

Its exciting for me really, because now I think I have done same way all the steps from the video till this part and it still doesnt work

Please Log in to join the conversation.

More
3 years 10 months ago #260295 by cmorley
Please post your config files.

Please Log in to join the conversation.

More
3 years 10 months ago #260305 by HansU
Yes, please post your config files, otherwise it#s only guessing.
It could also be a problem that the dash charcter is the wrong one in the pdf. You could type the dash instead of copy it.

Please Log in to join the conversation.

Time to create page: 0.068 seconds
Powered by Kunena Forum