Owner's manual
Table Of Contents
- Table of Contents
- Introduction
- SeaI/O Hardware Description
- SeaI/O Base and Expansion Modules
- SeaI/O Module Common Features
- SeaI/O Configurations & Specifications
- 410 Series – 16 Optically Isolated Inputs/16 Reed Relay Outputs
- 420 Series – 16 Optically Isolated Inputs/8 Form C Outputs
- 430 Series – 32 Optically Isolated Inputs
- 440 Series – 32 Reed Relay Outputs
- 450 Series – 16 Form C Relay Outputs
- 462 Series – 96 Channel TTL DB-78
- 463 Series – 96 Channel TTL 50-Pin
- 470 Series – 16 A/D, 2 D/A, 8 24V Outputs, 8 Isolated Inputs
- 520 Series – 8 Optically Isolated Inputs/8 High-Current Form C Outputs
- Power Options
- Hardware Configuration
- Wiring Options
- Mounting Options
- Accessories
- SeaMAX Application Suite
- SeaI/O Architecture
- Device Address Configuration
- Configuring the “Base” SeaI/O Module
- Configuring N-Series Expansion Modules
- Configuring an Ethernet Module (E-Series)
- MaxSSD Configuration & Diagnostics Utility
- Communicating Via Modbus
- Extended Modbus Command Set
- Developing Custom Applications Using SeaMAX API
- SeaMAX API
- Non Object-Oriented SeaMAX API
- IOCTL Calls and Functionality
- Using SeaMAX with Visual C++ 6.0
- Using SeaMAX with Visual Basic 6.0
- Example SeaMAX Programming Tasks
- CEthernet API
- Appendix A – Data Encoding Tables
- Appendix B – CRC Calculation
- Appendix C – SeaIO Model 462/463 Holding Register Set
- Appendix D – SeaMAX Data Types and Structures
- Appendix E – Troubleshooting
- Appendix F – How To Get Assistance
- Appendix G – Compliance Notices
- Warranty

© Sealevel Systems, Inc.
- 89 -
SeaI/O User Manual
CEthernet API
The API to CCEthernet is easy to use, straightforward, and designed to be as user-
friendly as possible. Looking at the UML diagram, one can determine that there are
only six functions that the interface provides. Of those, only four are required for
basic operation. Sample code segments are provided in a later section. Each of the
methods are documented below, including the parameters and the associated return
codes.
+CCEthernet()
+~CCEthernet()
+Alloc(in number : int)
+find_devices(in type_to_find : ceth_device_type, in number_to_find : int, inout list_to_store_devices : ceth_device *)
+Free(inout list : ceth_device *)
+get_number_of_interfaces()
+isWinsockInitialized()
-prepareList(inout c : ceth_device *, in n : int)
+set_information(inout device : ceth_device *, in command : ceth_set_types, in ... : ...)
-array
+CE
-objs
CCEthernet
UML Class Model for CCEthernet
find_devices
Parameters
type_to_find
− Can be: SeaIO_Ethernet, SeaLink_Dev, or Sealevel_All_Devices.
number_to_find
− number <= number allocated using Alloc().
list_to_store_devices
− pointer to the list previously allocated.
Return Values
-100XX
− Socket Error. Refer to Winsock documentation for error code.










