about MDI_COMMAND

More
14 Dec 2011 03:34 #15658 by KobeYang
about MDI_COMMAND was created by KobeYang
I create a pyvcp button to connect a MDI_COMMAND= o<fg54> call in EMC2.47 and use 3 analog-in to input 3 float data,then I create a file named "fg54.ngc",
details as :
o<fg54> sub
M66 E0 L0
#1 = #5399
M66 E1 L0
#2 = #5399
M66 E2 L0
#3 = #5399
G10 L2 P1 X#1 Y#2 Z#3
o<fg54> endsub
M2
I click the button but there isn't any change in var file.but I revise the "fg54.ngc" to
o<fg54> sub
G10 L2 P1 X100 Y100 Z100
o<fg54> endsub
M2
.Then click the button , the changes take place in the var file.Can anybody tell me why? thanks a lot.

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

More
14 Dec 2011 09:53 #15669 by ArcEye
Replied by ArcEye on topic Re:about MDI_COMMAND
Hi

This has come up before, don't think you can use M66 inside a sub until >2.5

see
linuxcnc.org/index.php/english/component...mit=6&start=12#11604

regards

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

Time to create page: 0.316 seconds
Powered by Kunena Forum