Gamepad not working after macros invoked

More
01 May 2020 14:50 #166327 by bluephoenix
Gamepad not working after macros invoked was created by bluephoenix
Hi,
I am using linuxncn 2.8 and found that my Gamepad does not work after running a macro.
To be precise, after starting the GUI and homing the machine, I can use the Gamepad to jog around. When I then run a macro, whichever I use, the Gamepad does not react anymore. I need to press the emergency button in gmoccapy and switch on the machine again to make it work.
The macros are defined in the [MACROS] section
[MACROS]
MACRO = home
MACRO = increment xinc yinc
etc.

The home macro looks like this:

; jog the machine to home position
; the image path must be relative from your config dir or absolut, "~" is allowed
(IMAGE, ./macros/images/home.png)

o<home> sub
G17
G21
G54
G61
G40
G49
G80
G90
G53 G0 Z0
G53 G0 X0 Y0
(MSG, Machine send to home position)
o<home> endsub

M2

so nothing spectacular. To be honest, I do not really know what to search for. Any ideas?

Maybe it has to do with the complicated way of splitting the information. I attach my ini and hal files.

File Attachment:

File Name: custom.hal
File Size:3 KB

File Attachment:

File Name: custom_postgui.hal
File Size:2 KB

File Attachment:

File Name: postgui_call_list.hal
File Size:0 KB

File Attachment:

File Name: Fenjabuttons.hal
File Size:0 KB

File Attachment:

File Name: Fenja.ini
File Size:6 KB

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

More
01 May 2020 15:01 #166329 by bbsr_5a
Replied by bbsr_5a on topic Gamepad not working after macros invoked
Why dont you use a NGC and call it from MDII_command in Halui section to start your subroutine NGC
this connects to a button on your gamepad


you need
in ini
HALUI section
MDI_COMMAND=o<mymacro> call
the NGC file same as your macro

in the Coustom_postgui that holds your Joypad
net joy-pad-mymacro halui.mdi-command-03 <= input.0.btn-thumbr

THE MDI numbering starts at 00

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

More
01 May 2020 15:39 #166333 by bluephoenix
Replied by bluephoenix on topic Gamepad not working after macros invoked
This is an option, but probably not for me. I am too old to remember the functions of more than 2 buttons :) and I like having the symbols with their macros behind in Gmoccapy.

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

More
02 May 2020 14:00 #166407 by bluephoenix
Replied by bluephoenix on topic Gamepad not working after macros invoked
Hi,
by accident I found the possible issue, but do not know how to solve it.
Today I set up an XHC-HB04 MPG and noticed the same problem. After running a macro within Gmoccapy, I couldn't jog anymore; neither with the gamepad, nor with MPG. The MPG/Mode button has been set with "mode = halui.mode.manual", to get into manual mode again. And tadaa, I can jog again after pressing this button and going into manual mode.
Now the question: How can I set the manual mode automatically, when I start within Gmoccapy from the MDI screen a macro? Or does this not make sense?

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

More
02 May 2020 14:03 #166408 by bluephoenix
Replied by bluephoenix on topic Gamepad not working after macros invoked
Forget it, I think I am stupid. I need to leave the MDI mode simply... :( I thought I tested that, but anyway...

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

More
04 Jul 2020 16:23 #173610 by Catch22
Replied by Catch22 on topic Gamepad not working after macros invoked

Forget it, I think I am stupid. I need to leave the MDI mode simply... :( I thought I tested that, but anyway...


I know exactly how you feel man....

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

Moderators: newbynobiHansU
Time to create page: 0.084 seconds
Powered by Kunena Forum