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.
- 65 -
SeaI/O User Manual
SeaMAX API
A functional description of each method in the class, including the possible return
values, is provided. All return values less than zero are standard error codes listed
and defined in the standard C library header file <errno.h>. In the following, with the
Object-Oriented model, the Visual C++ DLL is designed as a single class. This class
has the following model:
Open
CSeaMaxW32::Open( unsigned char* filename )
Description
Opens the specified resource. The filename parameter can be one
of two different types, Modbus RTU or Modbus TCP.
To specify a Modbus RTU connection (used for all non-Ethernet
enabled modules) the string “sealevel_rtu://COMx” should be
used, where x is a valid COM port number.
To specify a Modbus TCP connection (used only for Ethernet
enabled modules) the string “sealevel_tcp://x.x.x.x” should be
used, where x’s represent the valid IP address of the module to be
accessed.
Parameters
unsigned char* filename
Return Codes
-38 ENAMETOOLONG The length of the filename is
greater than 256 characters.
-22 EINVAL The specified protocol is invalid,
or, the module could not be
contacted.
-9 EBADF The specified location is invalid
0 Success
Close
CSeaMaxW32::Close( )
Description
Closes a previously opened SeaIO module resource.
Parameters
None
Return Codes
0 Success










