|
Serial Communications Page 7-18_________________________________________________________________Response StructureAny time a command is sent with an address recognized by aninstrument on the network, the addressed instrument shouldreturn a response. The exact response will depend upon whetherthe command is to return data or not and if errors are detectedin the command. Following, the three possible responses aresummarized:Successful Response, no data:Where: = Acknowledge Character (06 hex)Successful Response, with data: {data1}, [{data2},] [{dataN},] [CHK] Where: , = Comma (field separator){dataX} = Data Field[CHK] = Optional Data Verification Field = Carriage Return Character (0D hex)Error Response[ER][]Where: = Negative Acknowledge Character (15 hex)[ER] = Optional two digit error code[] = Optional carriage return characterIf no errors are detected and no data is to be returned, an (06 hex) character will be returned to indicate that the commandwas successfully executed. If data is needed in the response, a (0D hex) character will be returned followed by one or moreparameters of data, separated by commas. A final comma separatesthe last data item from the carriage return (or optional dataverification field) at the end of the response. As with commanddata fields, all response data characters must be printable ASCIIcharacters.Should there be a problem with the command, a (15 hex)character will be returned, optionally followed by an error code.A listing of possible error codes is provided on page 7-20.
PreviousNext |