KEJR Posted April 26, 2011 Share Posted April 26, 2011 I was doing some work with the MacroSlave command in the terminal to find out what worked. I then copied this into my C program as a Pmac command and it worked initially. When I powered down my machine and ran the program again I got an error on the first calls to MacroSlave commands. The error returned was: "MACRO PORT NOT OPEN" After issuing some MacroSlave commands in the IDE terminal I was able to send MacroSlave commands from C. Is there something additional I need in the C environment for the Macro commands that I don't need at the terminal? Here is my code: Command("MacroSlave0,i1145=0"); Command("MacroSlave1,i1146=0"); As a test I re-powered the machine, issued some MacroSlave query from terminal, and then continued my C program with no faults. Doing this same procedure without the MacroSlave query in the terminal prior causes the fault. KEJR Link to comment Share on other sites More sharing options...
KEJR Posted May 4, 2011 Author Share Posted May 4, 2011 For now in C program you can call the OpenMacro() function call in a C program and the script and C API functions will work after this. I've been told future releases will fix this. Not a problem for me now that I know. Thanks, KEJR Link to comment Share on other sites More sharing options...
Recommended Posts