|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectonbon.bx06.Bx6GController
onbon.bx06.Bx6GControllerRS
public final class Bx6GControllerRS
BX5G RS232 控制器。
Nested Class Summary |
---|
Nested classes/interfaces inherited from class onbon.bx06.Bx6GController |
---|
Bx6GController.RunMode |
Field Summary |
---|
Fields inherited from class onbon.bx06.Bx6GController |
---|
bx6Card, header, pingStatus, screenProfile, series, TIMEOUT |
Constructor Summary | |
---|---|
Bx6GControllerRS(String aliasName,
Bx6Card bx6Card)
建构子。 |
Method Summary | |
---|---|
boolean |
connect(String comName,
int baudrate,
int dataBits,
int stopBits,
int parity)
連線。 |
void |
disconnect()
中断连线。 |
String |
getName()
取得名称。 |
Bx6GController.RunMode |
getRunMode()
取得运行模式。 |
boolean |
isConnected()
取得是否连线。 |
byte[] |
send(onbon.bx06.message.Bx06MessageHeader header,
onbon.bx06.message.Request req,
String uiaID)
执行命令。 |
byte[] |
send(onbon.bx06.message.Request req,
String uiaID)
执行命令。 |
Methods inherited from class onbon.bx06.Bx6GController |
---|
createFileReader, createFileReader, createFileWriter, createFileWriter, execute, execute, genTxId, getControllerAddress, getHeader, getOutputBuffer, getScreenProfile, getSeries, isConfigured, ping, setControllerAddress, toString, updatePingStatus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Bx6GControllerRS(String aliasName, Bx6Card bx6Card)
aliasName
- 别名。bx6Card
- BX6 系列控制器。Method Detail |
---|
public boolean connect(String comName, int baudrate, int dataBits, int stopBits, int parity) throws Bx6GException
comName
- COM 名稱。baudrate
- 波特率。dataBits
- 位元数。stopBits
- 停止位元。parity
- 同位檢查。
Bx6GCommException
- 连线发生错误。
Bx6GException
public String getName()
Bx6GController
getName
in class Bx6GController
public Bx6GController.RunMode getRunMode()
Bx6GController
getRunMode
in class Bx6GController
public boolean isConnected()
Bx6GController
isConnected
in class Bx6GController
public void disconnect()
Bx6GController
disconnect
in class Bx6GController
public byte[] send(onbon.bx06.message.Bx06MessageHeader header, onbon.bx06.message.Request req, String uiaID)
Bx6GController
send
in class Bx6GController
header
- 讯息表头。req
- 命令。uiaID
- 命令编号。
public byte[] send(onbon.bx06.message.Request req, String uiaID)
Bx6GController
send
in class Bx6GController
req
- 命令。uiaID
- 命令编号。
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |