1993-2011 General Motors Company, GM Customer Care & Aftersales. All Rights Reserved.
Page
9
Format of Interpreter Instructions
Each line of interpreter instructions is 16 bytes long and defined as follows:
Step
Op-Code
Action Fields
Goto Fields
##
##
## ## ## ##
## ## ## ## ## ## ## ## ## ##
Any position not used in an instruction line must be filled with zero. All numbers in the interpreter instructions
must be entered as hexadecimal values. (Note: All entries made to a utility file must be in caps)
Step Field (1 byte - valid steps 01 - FF)
The Step is a sequential number,
increasing by one, indicating the order of the instruction file. The Step is
used as a reference for goto field branching in the instructions. The first step number in the interpretive
code must be 1 (0x01) and the last step cannot be greater than 255 (0xFF). An Interpreter
error will occur
if a step zero (0x00) is encountered.
Op-Code Field (1 byte)
Op-Codes are assigned values that identify what type of function/service the service tool should perform.
Action Fields (4 bytes)
The Action Fields are used as parameters or indicating exceptions. By setting appropriate exceptions in
the Action fields, the behavior of the Op-Code can be modified.
All unused Action Fields shall be set to
0x00.
GOTO Fields (5 - 2 byte pairs)
The Goto Fields are used to determine the next step. Goto fields are defined as pairs. For Op-Codes that
send a message to a control module based on the responses returned
from the control module, the first
byte is the response byte and the second byte is the interpreter step that is executed next.
Comparison of
the Goto Field pairs is done from left to right and will stop when the first matching code is found.
The Goto Field pair is read as follows:
On response return code ?? - Then_- Goto step ??
Two specific numbers FD and FF are defined to handle response codes / events.
In case of a no communications fault event the FD code will determine the next step.
The FF code is read as "ANY". If there is a response code or event return code that is not listed in the
Goto Field pairs, then the FF
“Goto Field” code will determine the next step.
For Op-Codes which send
a message to a control module, the FF code must be in the last Goto Field pair
to handle all possible response codes / events.
Do'stlaringiz bilan baham: