One of the conditions for the Emulation Query command to execute is to have the CCOB index register set to zero. You will notice that other commands require the index register to be within certain range to execute.
You have to make sure then that the value of FCCOBIX is zero by the time you launch the command.
FCCOBIX = 0;
FCCOB = 0x1500; /* Emulation Query */
FSTAT = 0x80 /* Launch command */
You can read the results stored in the indexed CCOB registers
while ( !(FSTAT & 0x80) ); /* wait for command to complete */
FCCOBIX = 1;
DfpartVal = FCCOB;
FCCOBIX = 2;
ErpartVal = FCCOB;
I hope it helps
Message Edited by Pedro_ on
2008-10-24 02:02 PM