|
Swing SECS I リファレンス
プロパティ
Active
Appearance
BaudRate
BorderStyle
CommPort
DeviceID
IniFile
IniSection
Log
LogFile
Master
MSEC
Retry
Show
T1
T2
T3
T4
メソッド
Config
LoadIni
Send
イベント
Errors
Read
SelMsg
Written
|
|
This event kicked when communication failure occurred.
構文
|
|
|
Sub Errors (sError As Integer, pszInfo As String)
|
|
|
|
void OnErrors(short sError, LPCTSTR pszInfo);
|
| sError | Error code. It should be one of the following reasons. |
| pszInfo | Additional information. Currently, this value is not available. |
| SecsErrorUnexpectedChar | 1 | Received unexpected character. |
| SecsErrorBadLength | 2 | Length byte is not correct. |
| SecsErrorSum | 3 | Check sum error. |
| SecsErrorParity | 4 | Parity error. |
| SecsErrorBadMultiBlockNumber | 5 | Block number in multi-block message is not correct. |
| SecsErrorBlockNumber | 6 | Block number is neither 0 nor 1. |
| SecsErrorNak | 7 | Received NAK. |
| SecsErrorRetry | 8 | Retry over. |
| SecsErrorT4 | 9 | T4 time out. |
| SecsErrorT2 | 10 | T2 time out. |
| SecsErrorT1 | 11 | T1 time out. |
| SecsErrorT3 | 12 | T3 time out. |
| SecsErrorDeviceID | 13 | Device ID does not match. |
戻り値
使用例
特記事項
参照
|
|