|
|
 |
Device and Vendor Specific Functions
Detailed Description
Some device specific or vendor specific functions and enhancements are supported.
Function Documentation
| synchronized void readHistoryLog |
( |
int |
slaveAddr, |
|
|
int |
channelNo, |
|
|
int |
resolution, |
|
|
short |
readArr[] |
|
) |
throws IOException, BusProtocolException [inherited] |
|
|
|
Vendor Specific Modbus function 100 (64 hex), Read History Log.
- Parameters:
-
| slaveAddr | Modbus address of slave device or unit identifier (Range: 1 - 247) |
| channelNo | A/D channel Number (Range: 1 - 10) |
| resolution | Resolution in minutes (Range: 1 - 60) |
| readArr | Buffer with log data received. The length of the array determines how many data points are read (Range: 1 - 125). |
- Exceptions:
-
| IllegalStateException | Port or connection is closed |
| IOException | An I/O error occured |
| IllegalArgumentException | A parameter is out of range |
| BusProtocolException | A protocol failure occured. See descendants of BusProtocolException for a more detailed failure list. |
- Note:
- No broadcast supported
|
| String adamSendReceiveAsciiCmd |
( |
String |
commandStr |
) |
throws IOException, BusProtocolException [inherited] |
|
|
|
Send/Receive ADAM 5000/6000 ASCII command.
Sends an ADAM 5000/6000 ASCII command to the device and receives the reply as ASCII string. (e.g. "$01M" to retrieve the module name)
- Parameters:
-
| commandStr | Buffer which holds command string. Must not be longer than 255 characters. A possible trailing CR is removed. |
- Returns:
- Response string.
- Note:
- No broadcast supported
|
|
 |