![]() |
TopCon API
1.1.0
.Net API to control TopCon devices
|
This Exception is thrown when a communication error occurs. The internal error can be automatically cleared, by using autoClearError Then failed communication can directly be repeated. More...
Inherits Exception, and ISerializable.
Public Member Functions | |
TopConCommunicationException (string message) | |
TopConCommunicationException (string message, int state, int errorNumber) | |
TopConCommunicationException (string message, Exception inner) | |
TopConCommunicationException (string message, Exception inner, int state, int errorNumber) | |
Public Attributes | |
int | State |
Knowing states:
| |
int | ErrorNumber |
If state has a communication error, then the errorNumber has detailed info: 0x00 Command was executed correctly. 0xFF Invalid check sum. 0xFE Invalid / unknown protocol ID: The related command does not existing. 0xFD Wrong frame size: The number of bytes is not expected for this command. 0xF3 Not supported protocol ID: Command is known, but not implemented. 0xF2 Error while writing to flash: Timeout or resulting value does not comply with written value. 0xF1 Range error: address is in invalid range. 0xF0 Flash not ready / flash busy: The Flash processes internal tasks and thus cannot accept further commands. 0xEF Flash not erased: the command tried to write to a non-erased flash address. 0xEE Address access violation: Read and/or write access to the demanded address is denied. 0xED Device is not stopped (speciality of CTR4.x): Device must be in "STOP" mode for the flash to be programmed. 0xEC Error during initialization of modulator update (speciality of CTR4.x) 0xEB Value exceeds the valid range: attempt to write a non-valid value to the device. 0xEA EEprom not ready: Reading or writing a value from EEProm failed as EEProm is busy (e.g. previous write cycle active). 0xE9 Default return value, if not defined differently. (Used for simpler exploration of non-initialized return parameters). 0xE8 Not supported access to a parameter. 0xE7 Attempt to read from a write-only parameter. 0xE6 Attempt to write to ta read-only parameter. 0xE5 Parameter not existing (invalid index). 0xE4 Incompatible general parameter: (e.g. if required number of bytes cannot be delivered within a parameter block transfer). 0xE3 General / internal problem related to parameter access. 0xE2 Invalid Sub-Index. 0xE1 Value range of parameter exceeded (write access) 0xE0 Value of written parameter too high. 0xDF Value of written parameter too low. 0xD9 (used by HMI v3.x and CTR v3): invalid attempt to clear flash while programm still running -> stop program execution first. 0x80 (specific error of CTR4.2x) IBC not ready. Occurs when RS232 interface on IBC is set to "local" and collides with access from the CTR4.2x. More... | |
Static Public Attributes | |
static bool | AutoClearError |
Set to true to call automatically GetCommStatus() after a TopConCommunicationException is thrown. This resets the internal error state. More... | |
This Exception is thrown when a communication error occurs. The internal error can be automatically cleared, by using autoClearError Then failed communication can directly be repeated.
CH.Regatron.HPPS.Device.TopConCommunicationException.TopConCommunicationException | ( | string | message | ) |
message |
CH.Regatron.HPPS.Device.TopConCommunicationException.TopConCommunicationException | ( | string | message, |
int | state, | ||
int | errorNumber | ||
) |
message | |
state | |
errorNumber |
CH.Regatron.HPPS.Device.TopConCommunicationException.TopConCommunicationException | ( | string | message, |
Exception | inner | ||
) |
message | |
inner |
CH.Regatron.HPPS.Device.TopConCommunicationException.TopConCommunicationException | ( | string | message, |
Exception | inner, | ||
int | state, | ||
int | errorNumber | ||
) |
message | |
inner | |
state | |
errorNumber |
|
static |
Set to true to call automatically GetCommStatus() after a TopConCommunicationException is thrown. This resets the internal error state.
int CH.Regatron.HPPS.Device.TopConCommunicationException.ErrorNumber |
If state has a communication error, then the errorNumber has detailed info:
0x00 Command was executed correctly.
0xFF Invalid check sum.
0xFE Invalid / unknown protocol ID: The related command does not existing.
0xFD Wrong frame size: The number of bytes is not expected for this command.
0xF3 Not supported protocol ID: Command is known, but not implemented.
0xF2 Error while writing to flash: Timeout or resulting value does not comply with written value.
0xF1 Range error: address is in invalid range.
0xF0 Flash not ready / flash busy: The Flash processes internal tasks and thus cannot accept further commands.
0xEF Flash not erased: the command tried to write to a non-erased flash address.
0xEE Address access violation: Read and/or write access to the demanded address is denied.
0xED Device is not stopped (speciality of CTR4.x): Device must be in "STOP" mode for the flash to be programmed.
0xEC Error during initialization of modulator update (speciality of CTR4.x)
0xEB Value exceeds the valid range: attempt to write a non-valid value to the device.
0xEA EEprom not ready: Reading or writing a value from EEProm failed as EEProm is busy (e.g. previous write cycle active).
0xE9 Default return value, if not defined differently. (Used for simpler exploration of non-initialized return parameters).
0xE8 Not supported access to a parameter.
0xE7 Attempt to read from a write-only parameter.
0xE6 Attempt to write to ta read-only parameter.
0xE5 Parameter not existing (invalid index).
0xE4 Incompatible general parameter: (e.g. if required number of bytes cannot be delivered within a parameter block transfer).
0xE3 General / internal problem related to parameter access.
0xE2 Invalid Sub-Index.
0xE1 Value range of parameter exceeded (write access)
0xE0 Value of written parameter too high.
0xDF Value of written parameter too low.
0xD9 (used by HMI v3.x and CTR v3): invalid attempt to clear flash while programm still running -> stop program execution first.
0x80 (specific error of CTR4.2x) IBC not ready. Occurs when RS232 interface on IBC is set to "local" and collides with access from the CTR4.2x.
int CH.Regatron.HPPS.Device.TopConCommunicationException.State |
Knowing states: