GetError

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决
1,304 次查看
anil
Contributor I
Occasionally, the processor expert function for receiving a serial port character for a 9s12 returns

ERR_COMMON.

The comments state to call the
GetError method for error specification

1. I can't find where the GetError Method is included

2. What can cause the ERR_COMMON to be returned



** ERR_COMMON - common error occurred (the
** GetError method can be used for error
** specification)
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
419 次查看
CrasyCat
Specialist III

Hello

Which Bean are you using for your SCI?

If you open the Bean Inspector for your SCI bean and go to the Methods tab, you can activate code generation for method "GetError" there.

Calling that function will allow you to detect whether you have a buffer overflow, a framing error or a parity error.

I hope this helps.

CrasyCat

在原帖中查看解决方案

0 项奖励
回复
1 回复
420 次查看
CrasyCat
Specialist III

Hello

Which Bean are you using for your SCI?

If you open the Bean Inspector for your SCI bean and go to the Methods tab, you can activate code generation for method "GetError" there.

Calling that function will allow you to detect whether you have a buffer overflow, a framing error or a parity error.

I hope this helps.

CrasyCat

0 项奖励
回复