• Libraries
  • Shop
  • Doc
  • Free Modbus
  • Support
  • Login
  • Introduction
  • Chapters
  • Modules
  • Classes

Device and Vendor Specific Modbus Functions

Some device specific or vendor specific functions and enhancements are supported. More...

Custom Function Codes



synchronized void readHistoryLog (int slaveAddr, int channelNo, int resolution, short readArr[]) throws IOException, BusProtocolException
 Vendor Specific Modbus function 100 (64 hex), Read History Log.

Advantec ADAM 5000/6000 Series Commands



String adamSendReceiveAsciiCmd (String commandStr) throws IOException, BusProtocolException
 Send/Receive ADAM 5000/6000 ASCII command.

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 - 255)
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

FieldTalk Modbus Master Library, Java Edition
Library version 2.6.5
Speak to the Experts
Modbus Organization Member logo

We are member of the Modbus Organization, Inc.

Buy with Confidence
30-day money back guarantee All our FieldTalk web sales are backed by a 30-day Money Back Guarantee.
We Accept
Bank VISA MasterCard PayPal
Customer Info
  • Info & Contact
  • Customer Login
  • Terms of Service
  • Terms of Sale
  • Privacy Policy
© 2005-2025 proconX Pty Ltd. All rights reserved. proconX and FieldTalk are trademarks of proconX Pty Ltd.
All other trademarks and registered trademarks appearing on www.modbusdriver.com are the property of their respective owners.