1993-2011 General Motors Company, GM Customer Care & Aftersales. All Rights Reserved.
Page
57
F0 Op-Code: Wait for Poll from a Device
Supported By:
UART Interpreter 0
Description:
The F0 Op-Code waits for a poll from a device.
Action Fields:
AC0: Device ID
AC1: Number of 100
ms intervals to wait
AC2: 00 - Not Used
AC3: 00 - Not Used
G0: 00 - Don't care
Pseudo Code:
XX F0 AC0 AC1 AC2 AC3 G0-G1 G2-G3 G4-G5 G6-G7 G8-G9
Do
While Wait Time is Not Greater than (AC1*100ms)
Wait for a poll from device ID AC0
End do
Goto step specified in goto field 1 (G1), this Op-Code ignores no communication faults
Typical Interpreter Line:
Step
Op-Code
Action Fields
Goto Fields
10
F0
F4 05 00 00
00 11 FF 99 00 00 00 00 00 00
CameraLoops.com
1993-2011 General Motors Company, GM Customer Care & Aftersales. All Rights Reserved.
Page
59
Class 2 No Communications Processing
Supported By:
Class 2 Interpreter 1
Description:
Normal processing of a request message is to re-send the request up to three times if the transmission of a
request fails. However, if the transmission is successful and no controllers respond to the request, then the
request will fail with a no comm. Fault**.
When writing instructions for
a Utility File, the „FD‟ code can be used to determine the next step to execute
after a no comm. fault occurs. The 'FD' processing can be used for any step in
the utility file where a no
comm. condition can occur**.
**
Note
:
-
There are some Class 2 Op-Codes that send out a request and do not look for a response (i.e. Ignore
Response).
-
There are some Class 2 Op-
Codes that send out a request and don‟t care if there are no responses
(i.e. Ignore Error).
-
There are some Class 2 Op-
Codes that do not support the “no comm.” („FD‟) processing.
These special cases are defined within the individual Class 2 Op-Codes.
Pseudo Code:
XX OP AC0 AC1 AC2 AC3 G0-G1 G2-G3 G4-G5 G6-G7 G8-G9
If
“no comm.” occurred
If
the Op-Code Ignores No Communication Faults
(Ignore Error or Ignore Response)
Continue reprogramming event based on specific Op-Code logic
Else
Check goto fields for an
FD
return code (G0, G2, G4, G6, or G8)
If
found („FD‟)
Flag appropriate step to execute next
and return
Else
Check goto fields for an
FF
return code (G0, G2, G4, G6, or G8)
If
found („FF‟)
Flag appropriate step to execute next and return
Else
End programming with fatal error
Endif
Endif
Endif
Do'stlaringiz bilan baham: