-
I am attempting to call a G65 macro from the SD card. The macro is saved as P202.macro. SD plug in and expression support enabled. I can call G65P202 from the MDI and the macro performs as expected, but when called from a file it gives me error 39. What humbling small detail have I missed? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
Could be that the SD card is not mounted? |
Beta Was this translation helpful? Give feedback.
-
Hey Terje, Thanks for the help! Everyday I play with this, the more blown away I am by what you've accomplished. Super cool! I tried both but, unfortunately neither worked. Here are some screen shots. Hopefully shows what I'm doing wrong. |
Beta Was this translation helpful? Give feedback.
-
I'm seeing $650=1 in the settings, macro files are visible on the SD tab, and $F. I can call the macro from the MDI directly and make it work. Would that be possible if the SD card wasn't mounted? I can a reinstall and see if that helps, but before I do perhaps we should make sure I haven't missed any of the necessary "moving parts."
|
Beta Was this translation helpful? Give feedback.
-
Yes, I ran your macro from the MDI, you can see that from the screen shot of console. I ran it as G65P202 w/o a parameter from the file and it failed also. |
Beta Was this translation helpful? Give feedback.
Ok, I have a check for idle state that fails. Not sure if that should be removed or if I should add a sync call to force idle state before executing G65 calls.
As a workaround for now add a G4P.1 before G65.