With very high or very low numbers, the returned value from the PAC Control command GetErrorCodeOfCurrentError(), does not match the error code displayed in the View Messages dialog (the controller error queue) from Debug mode.
To duplicate this error, use the AddUserIOUnitErrorToQueue() command to add the errors 2147483647 and -2147483648 to the error queue.
Get Error Code of Current Error() correctly returns the error code value of 2147483647, but it does not match the -1 displayed in the Code field of the View Messages dialog.
Get Error Code of Current Error() correctly returns the error code value of -2147483648, but it does not match the 0 displayed in the Code field of the View Messages dialog.
The error code range should be limited to values from ‑32768 to +32767.
Opto 22 has resolved this issue for SNAP PAC firmware.