| Modifier and Type | Method and Description |
|---|---|
void |
Modbus.close()
Closes the connection to the Modbus
|
static void |
ModbusSlave.main(String[] args)
Main program
|
void |
Modbus.open(int index,
String serial)
Opens a connection to the Modbus
|
void |
Modbus.open(String node,
int index,
String serial)
Opens a connection to the Modbus
|
byte[] |
Modbus.readCoils(short dAddr,
short cNmbr,
short count)
Reads a set of coils
|
byte[] |
Modbus.readDiscretes(short dAddr,
short iNmbr,
short count)
Reads a set of discrete inputs
|
short[] |
Modbus.readInputs(short dAddr,
short rNmbr,
short count)
Reads a set of input registers
|
short[] |
Modbus.readRegisters(short dAddr,
short rNmbr,
short count)
Reads a set of holding registers
|
void |
ModbusSlave.receive()
Receives a command on the Modbus and dispatches it
|
byte[] |
Modbus.send(short addr,
byte[] cmnd,
int timeout)
Sends a command to a device on the Modbus and returns its response
|
void |
Modbus.writeCoil(short dAddr,
short cNmbr,
boolean value)
Writes a coil
|
void |
Modbus.writeCoils(short dAddr,
short cNmbr,
short count,
byte[] value)
Writes a set of coils
|
void |
Modbus.writeRegister(short dAddr,
short rNmbr,
short value)
Writes a holding register
|
void |
Modbus.writeRegisters(short dAddr,
short rNmbr,
short[] value)
Writes a set of holding registers
|
| Constructor and Description |
|---|
ModbusSlave(int index,
String serial,
String node)
Constructor
|
Copyright © 2013 LSST. All Rights Reserved.