Read data from motoman robot. Need a succesful init with MTO_INITSER function before use Call this command until the STATUS becomes 0 then calll this command until the STATUS becomes other than 0. Input ARG1 : First numerical input ARG2 : Second numerical input FUNCTION :Function for read data. Output STATUS : Status <> 0 Done. RETVAL : Numerical Responce STRETVAL : String Responce Function: 1 : MtoGetStatus (Num responce) first 16 bit = Data 1 Second 16 bit = Data 2 2 : BscIsJobName (string responce) 3 : BscFindFirst (string responce) 4 : BscFindNext (string responce) 5 : BscGetError (Num responce) 6 : BscGetFirstAlarm (string responce) 7 : BscGetNextAlarm (string responce) 8 : MotoGetVariable (Num/string responce) If functions succes responce = 0 the STATUS returnes 1. //Usefull defines #define MTO_GETSTATUS 1 #define MTO_ISJOBNAME 2 #define MTO_FINDFIRSTJOB 3 #define MTO_FINDNEXTJOB 4 #define MTO_GETERROR 5 #define MTO_GET1STALARM 6 #define MTO_GETNEXTALARM 7 #define MTO_GETVARIABLE 8