Object-Oriented SeaMAX Modbus Interface

Functions

int CSeaMaxLin::Open (char *filename)
 Open a SeaIO module. This function will attempt to open a specified SeaIO module. The method of specification is a string formatted like "sealevel_rtu://dev/[your_serial]" or "sealevel_tcp://x.x.x.x:y" where x's represent ip address and y the port. If you leave out the port, 502 will be used as the default. You may also enter the device's DCHP name like: "sealevel_tcp://Samwise". For SeaDAC Lite modules use sealevel_d2x://xxxx where xxxx=8112 or 8115 etc.. More...
 
int CSeaMaxLin::Close (void)
 Close a SeaIO module. This function will attempt to close a previously opened seaMaxModule and clear any local data. It will also close the connection interface (socket or tty) and clean up any local data. You must call this when you are finished with the module. More...
 
int CSeaMaxLin::Read (slave_address_t slaveId, seaio_type_t type, address_loc_t starting_address, address_range_t range, void *data)
 Read from a module. This is a multifunction read that can read from a module previously opened. Any SeaIO devices attached to that module can then be read from in one of the following ways. More...
 
int CSeaMaxLin::Read (unsigned char *data, int length)
 Read from a SeaDAC Lite module. This is a multifunction read that can read from a module previously opened. Any SeaIO devices attached to that module can then be read from in one of the following ways. More...
 
int CSeaMaxLin::Write (slave_address_t slaveId, seaio_type_t type, address_loc_t starting_address, address_range_t range, unsigned char *data)
 Write to a module. This is a multifunction write that can write from a module previously opened. Any SeaIO devices attached to that module can then be written to in one of the following ways. More...
 
int CSeaMaxLin::Write (unsigned char *data, int length)
 Write to a SeaDAC Lite module. This is a multifunction write that can write to a module previously opened. Any SeaIO devices attached to that module can then be written to in one of the following ways. More...
 
int CSeaMaxLin::GetPIO (unsigned char *data)
 Read the entire PIO space of a SeaDAC Lite module. More...
 
int CSeaMaxLin::SetPIO (unsigned char *data)
 Write the entire PIO space of a SeaDAC Lite module. More...
 
int CSeaMaxLin::SetPIODirection (unsigned char *data)
 Sets the PIO direction. More...
 
int CSeaMaxLin::GetPIODirection (unsigned char *data)
 Reads the PIO direction. More...
 
int CSeaMaxLin::Ioctl (slave_address_t slaveId, IOCTL_t which, void *data)
 Multi-function tool to configure and access SeaIO specific features. Ioctl can be used to get and set device parameters and states. More...
 
int CSeaMaxLin::set_intermessage_delay (int delay)
 Sets the intermessage delay time. More...
 
HANDLE CSeaMaxLin::getCommHandle (void)
 Get the handle to the actual communication medium. For RTU types it will be a normal file pointer, but TCP will be a socket handle. For this reason, it was decided to only return RTU file pointers. An attempt to get the socket handle will return an ENODEV error. More...
 

Detailed Description

This is a C++ wrapper for the standard SeaMAX Modbus interface library. This library is designed to aid in the construction, transmission, and reception of Modbus RTU and TCP commands. This library is designed for use with Sealevel SeaIO modules.

 
 
Generated on Tue Sep 19 2017.