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.