background image

Manual ETH-DIO-48 

13 

Chapter 5: Programming

 

 

Client API 

To install the client, simply copy AIOETHW.dll next to the program that will use it, or to the 
32-bit system directory. 

 

The general sequence to use it is: 

 

AEW_Connect() to open a connection.  

 

AEW_DIO_Configure() to set the initial digital input vs output configuration, and 
disable the tristate.  

 

Repeated I/O calls, using AEW_DIO_WriteAll()/AEW_DIO_Write1(), 
AEW_DIO_ReadAll().  

 

AEW_Disconnect() to close the connection when done.  

 

If the connection fails during operation, a new connection can be swapped in, like this: 

 

AEW_Disconnect() to close the old connection.  

 

AEW_Connect() to open a new connection.  

 

Resume with the I/O calls.  

The following is a brief reference of common AIOETHW.dll functions.   

 

AEW_Connect() 

AEW_Connect() connects to the specified host device. It returns a client reference (like a 
handle) that represents the connection, or zero on a failure. 

AEW_Disconnect() 

AEW_Disconnect() disconnects a client reference, closing the connection and cleaning up 
any memory used. After being passed to AEW_Disconnect(), the client reference is invalid. 

AEW_GetStatus() 

AEW_GetStatus() reads the device's status block. 

AEW_DIO_Configure() 

AEW_DIO_Configure() sets the direction of the DIO bytes, writes to all of them, and then 
disables the tristate. Writes to input bytes are ignored. 
 

AEW_DIO_WriteAll() 

AEW_DIO_WriteAll() writes to all the DIO. 

AEW_DIO_ReadAll() 

AEW_DIO_ReadAll() reads from all the DIO. 

 

For a complete AIOETHW.dll API reference please refer to the HTML API reference 
installed in your software directory. 

 

Summary of Contents for ETH-DIO-48

Page 1: ...Roselle Street San Diego CA 92121 858 550 9559 FAX 858 550 7322 contactus accesio com www accesio com MODEL ETH DIO 48 AND ETH DIO 24 ETHERNET DIGITAL INPUT OUTPUT MODULES USER MANUAL FILE ETH DIO 48...

Page 2: ...ACCES nor the rights of others IBM PC PC XT and PC AT are registered trademarks of the International Business Machines Corporation Printed in USA Copyright by ACCES I O Products Inc 10623 Roselle Stre...

Page 3: ...parts not excluded by warranty Warranty commences with equipment shipment Following Years Throughout your equipment s lifetime ACCES stands ready to provide on site or in plant service at reasonable r...

Page 4: ...10 Ethernet Connector 10 LED 10 DC Power Jack 10 DC Power Screw Terminals 11 50 Pin Box Headers 11 5V Resettable Fused Outputs 11 Pull Up Pull Down Configuration Jumpers 11 Chapter 4 Ethernet Address...

Page 5: ...sink current capabilities Jumper selectable I O pulled up to 5V via 10K for contact monitoring pulled down to ground or floating Resettable 0 5A fused 5VDC output per I O connector OEM version board...

Page 6: ...50 pin connectors For external circuits fused 5VDC power is available at each I O connector on pin 49 There is one resettable fuse for both connectors The resettable fuse is rated at 0 5A All I O lin...

Page 7: ...is available in a RoHS compliant version Please call for specific pricing then add this suffix to the model number on any purchase orders Special Order Contact factory with your special requirement E...

Page 8: ...l powder coated enclosure for up to 48 Digital I O Channels STB DIO 48 ETH Plug in Spring Cage Terminal Board for 48 Digital I O Channels used inside enclosure for ETH DIO 48 IIB 24 24 Channel Optical...

Page 9: ...ousing light blink If you do not see activity check the other end of the Ethernet cable to ensure it is plugged into your LAN switch router gateway hub or directly into your PC This Ethernet module sh...

Page 10: ...f the manual Figure 3 1 48 Channel Board Option Selection Map Ethernet Connector The Ethernet Connector is an industry standard RJ45 10 100 Base T type with integrated transmit receive LEDs LED The LE...

Page 11: ...nt level and ambient temperature humidity etc The fuse will remain open until the bi metal elements cool sufficiently at which time the circuit will be restored Pull Up Pull Down Configuration Jumpers...

Page 12: ...IP address and related network configuration Our Settings program can assist with this process in Windows For your information the device listens on port 51936 for normal operation and listens on 5193...

Page 13: ...e following is a brief reference of common AIOETHW dll functions AEW_Connect AEW_Connect connects to the specified host device It returns a client reference like a handle that represents the connectio...

Page 14: ...ateway IP address 4 byte big endian gateway IP address For example C0 A8 01 01 for 192 168 1 1 Device should reply with W_OK or _Err RSta M S Read status No payload defined at this time Device should...

Page 15: ...UND 25 I O 11 I O 35 26 GROUND 27 I O 10 I O 34 28 GROUND 29 I O 09 I O 33 30 GROUND 31 I O 08 I O 32 32 GROUND 33 I O 07 I O 31 34 GROUND 35 I O 06 I O 30 36 GROUND 37 I O 05 I O 29 38 GROUND 39 I O...

Page 16: ...Operating Temp 0 C to 70 C Storage Temp 40 C to 85 C Humidity 5 90 RH non condensing Mechanical Board Dimension 3 550 x 3 775 inches Box Dimension 4 00 x 4 00 x 1 7 inches Connectors I O Dual row 0 1...

Page 17: ...problems with this manual or just want to give us some feedback please email us at manuals accesio com Please detail any errors you find we will reply with manual updates 10623 Roselle Street San Dieg...

Page 18: ...01 00 Fax 32 0 2 462 01 25 belgium texim europe com Denmark N rregade 15 DK 9240 Nibe Tel 45 88 20 26 30 Fax 45 88 20 26 39 nordic texim europe com The Netherlands Elektrostraat 17 NL 7483 PG Haaksber...

Reviews: