I/O Error Codes
After you send an I/O command to a device, the device returns a status code which is stored in the returned status byte of the PAB and in the numeric display register. I/O errors do not halt a running program unless you have set the halt-on-error flag (flag 15). This allows the program to test the numeric display register and handle the error.
Commonly Used Error Codes
The following table lists the most commonly-used I/O error codes and gives a brief description of their meaning. Refer to the specific device emulation sections for the specific error coes that apply to the device.--- Error Code --- | |||
---|---|---|---|
Decimal | Hex | Meaning | |
0 | 00 | Operation completed successfully | |
1 | 01 | Device option error | |
2 | 02 | Attribute error | |
3 | 03 | File/device not found | |
4 | 04 | File/device not open | |
5 | 05 | File/device already open | |
6 | 06 | Device error | |
8 | 08 | Data/file too long | |
9 | 09 | Write/protect error | |
12 | 0C | Buffer size error | |
13 | 0D | Unsupported command error | |
25 | 19 | Low batteries in device | |
27 | 1B | Bus error | |
255 | FF | Bus time-out error (device is not attached/present or did not respond wthin a specific time period) |
☚ Back