background image

                                                                                                                               

               

                                                                             

 

 

13 

 
         © Sealevel Systems, Inc. 

4030 Manual   |  SL9362           9/2021 

 

Programming the PIO-48 

Sealevel’s SeaI/O software is provided to assist in the development of reliable applications for the Sealevel 

Systems family of digital I/O adapters. Included on the SeaI/O CD are driver functions for use in accessing 
the I/O as well as helpful samples and utilities. 
 

Programming for Windows 

The SeaI/O API (Application Programmer Interface) provides a variety of useful high-level function calls 
implemented  in  a  Windows  dynamic  link  library  (DLL).  The  API  is  defined  in  the  help  file 

(Start/Programs/SeaIO/SeaIO  Help)  under  “Application  Programmers  Interface.”

    This  help  file  also 

includes  detailed  information  dealing  with  installation  /  removal  of  the  software  and  information  about 
latency, logic states, and device configuration. 

For C language programmers we recommend using the API to access the PIO-48. If you are programming 
in Visual Basic, using the ActiveX control included with SeaI/O is advised.  

Samples and Utilities 

A variety of sample programs and utilities (both executable and source code) are included with SeaI/O. 

Further  documentation  on  these  samples  can  be  found  by  selecting  “Start/Programs/SeaIO/Sample 

Application  Description

.”

  Information  about  where  the  files  are  physically  stored  on  your  disk  is  also 

included in this same file.  
 

Programming for Linux 

SeaI/O for Linux consists of two major parts: a kernel module and a library. The kernel module is a simple 
IO pass-through device, allowing the library to handle the more sophisticated functions provided to SeaI/O 

users. It is provided in a ‘tarball’ format and can easily be compiled and included in the kernel build. 

 

 

Direct Hardware Control 

In systems where the 

user’s

 program has direct access to the hardware (DOS) the tables that follow give 

the mapping and functions that the PIO-48 provides.  

 

Reading the Inputs 

The inputs are active true. If an input is driven high (2V to 5.25 V) it will read as a logical one, if driven low 
(0V to 0.8V) it will read as a logical zero. If an input is not driven it will read as a one due to the 10K ohm 
pull up resistors on each port. 
 

Reading the Outputs 

The value that is currently being used to drive the outputs will be returned. 
 

 

Содержание PIO-48

Страница 1: ...1 Sealevel Systems Inc 4030 Manual SL9362 9 2021 PIO 48 User Manual 4030 ...

Страница 2: ...YOU GET STARTED 4 OPTIONAL ITEMS 5 CARD SETUP 8 INSTALLATION 10 DIGITAL I O INTERFACE 12 PROGRAMMING THE PIO 48 13 ELECTRICAL CHARACTERISTICS 16 SPECIFICATIONS 17 EXAMPLE CIRCUITS 18 APPENDIX A TROUBLESHOOTING 19 APPENDIX B HOW TO GET ASSISTANCE 20 APPENDIX C COMPLIANCE NOTICES 21 WARRANTY 22 ...

Страница 3: ...roup may be individually configured via software command as input or output to best match your application requirements The PIO 48 is designed to be used with a variety of Operating Systems including Windows 98 NT ME 2000 XP 7 8 Linux and DOS The SeaI O API Application Programmer Interface included on CD with the PIO 48 provides a variety of useful high level function calls implemented as a Window...

Страница 4: ...rning The highest level of importance used to stress a condition where damage could result to the product or the user could suffer serious injury Important The middle level of importance used to highlight information that might not seem obvious or a situation that could cause the product to fail Note The lowest level of importance used to provide background information additional tips or other non...

Страница 5: ...udes the TB07 screw terminal block and CA167 ribbon cable for connecting one of the PIO 48 s 50 pin header connectors to your I O 6 Snap track and DIN rail clips are included for DIN rail mounting IDC 50 to IDC 50 Pin 40 Ribbon Cable Part Number CA167 Interfaces each of the PIO 48 s 50 pin header connectors Simulation debug module Part Number TA01 Module allows monitoring status of output pins and...

Страница 6: ...y rack can accept up to four QSSRs for a total of 16 channels Features a 50 pin header connector for easy interface via 50 conductor ribbon cables Quad Solid State Relay Modules AC Input Part Number IA5Q Provides 4 channels of discrete I O interface to monitor AC inputs up to 140V 10mA DC Input Part Number IB5Q Provides 4 channels of discrete I O interface to monitor DC inputs from 3 3V to 32V AC ...

Страница 7: ...7 Sealevel Systems Inc 4030 Manual SL9362 9 2021 Optional Items Continued ...

Страница 8: ...On On On 2E8 2EF 10 1110 1XXX Off On Off Off Off On Off On 2F8 2FF 10 1111 1XXX Off On Off Off Off Off Off On 3E8 3EF 11 1110 1XXX Off Off Off Off Off On Off Off 300 307 11 0000 0XXX Off Off On On On On On Off 328 32F 11 0010 1XXX Off Off On On Off On Off On 3F8 3FF 11 1111 1XXX Off Off Off Off Off Off Off On Address Selection Table The following illustration shows the correlation between the DIP ...

Страница 9: ...f the dip switch to ON To disable wait states set position 8 OFF Interrupt Headers J5 and J6 The headers marked J5 and J6 allow the use of interrupts with the parallel ports J5 selects IRQ2 through IRQ7 for Port 1 U9 and J1 while J6 selects the IRQ for Port 2 U16 and J3 IRQ Header E2 Optional Cable Connector P4 Discrete access to both sides of all relays is provided by attaching the optional cable...

Страница 10: ...and other preferred configurations This program also adds entries to the system registry that are necessary for specifying the operating parameters for each driver An uninstall option is also included to remove all registry INI file entries from the system Windows NT Card Installation After accomplishing the above steps bring up the Control Panel and double click on the SeaIO Devices icon To insta...

Страница 11: ...software has been fully installed 1 Turn off PC power Disconnect the power cord 2 Remove the PC case cover 3 Locate an available PCI slot and remove the blank metal slot cover 4 Gently insert the PCI adapter into the slot Make sure that the adapter is seated properly 5 Replace the screw This is required to ensure FCC Part 15 compliance 6 Replace the cover 7 Connect the power cord Installation is f...

Страница 12: ...s Each port may be individually configured via software command as input or output 50 pin Header Connectors You will need to install the bracket assembly and cables to the PIO 48 prior to installing it in the PC The PIO 48 s bracket features a unique cable clamp that provides a solid strain relief to prevent inadvertent cable removal Both 50 pin connectors have the following pin out which is compa...

Страница 13: ...iety of sample programs and utilities both executable and source code are included with SeaI O Further documentation on these samples can be found by selecting Start Programs SeaIO Sample Application Description Information about where the files are physically stored on your disk is also included in this same file Programming for Linux SeaI O for Linux consists of two major parts a kernel module a...

Страница 14: ...ne 1 corresponds to 5V while writing a zero 0 corresponds to 0V at the output Register Description Address Mode D7 D6 D5 D4 D3 D2 D1 D0 Base 0 Port A1 RD WR PA1D7 PA1D6 PA1D5 PA1D4 PA1D3 PA1D2 PA1D1 PA1D0 Base 1 Port B1 RD WR PB1D7 PB1D6 PB1D5 PB1D4 PB1D3 PB1D2 PB1D1 PB1D0 Base 2 Port C1 RD WR PC1D7 PC1D6 PC1D5 PC1D4 PC1D3 PC1D2 PC1D1 PC1D0 Base 3 CW Port 1 WR CW1D7 0 0 CW1D4 CW1D3 CW1D2 CW1D1 CW1...

Страница 15: ...4 3 2 1 0 A B C 1 X X 0 0 X 0 0 80 Out Out Out 1 X X 0 0 X 0 1 81 Out Out In 1 X X 0 0 X 1 0 82 Out In Out 1 X X 0 0 X 1 1 83 Out In In 1 X X 0 1 X 0 0 88 Out Out In 1 X X 0 1 X 0 1 89 Out Out In 1 X X 0 1 X 1 0 8A Out In In 1 X X 0 1 X 1 1 8B Out In In 1 X X 1 0 X 0 0 90 In Out Out 1 X X 1 0 X 0 1 91 In Out In 1 X X 1 0 X 1 0 92 In In Out 1 X X 1 0 X 1 1 93 In In In 1 X X 1 1 X 0 0 98 In Out In 1...

Страница 16: ... 2021 Electrical Characteristics The PIO 48 uses 74LS245 octal bi directional transceivers to provide TTL input output capabilities Each bit is pulled to 5V through a 10K ohm pull up resistor to ensure each bit is at a known state when not driven ...

Страница 17: ...nvironmental Specifications Specification Operating Storage Temperature Range 0º to 70º C 50º to 105º C Power Consumption Supply Line 12VDC 5 VDC Rating 25 mA 200 mA Manufacturing All Sealevel Systems Printed Circuit boards are built to UL 94V0 rating and are 100 electrically tested These printed circuit boards are solder mask over bare copper or solder mask over tin nickel ...

Страница 18: ...18 Sealevel Systems Inc 4030 Manual SL9362 9 2021 Example Circuits ...

Страница 19: ...ad this manual thoroughly before attempting to install the adapter in your system 3 Use Device Manager under Windows to verify proper installation 4 Use the SeaIO Control Panel applet or the Device Manager s property page for card identification and configuration If these steps do not solve your problem please call Sealevel Systems Technical Support 864 843 4343 Our technical support is free and a...

Страница 20: ...vides an FAQ section on its web site Please refer to this to answer many common questions This section can be found at http www sealevel com faq asp Sealevel Systems maintains a web page on the Internet Our home page address is www sealevel com The latest software updates and newest manuals are available via our web site Technical support is available Monday to Friday from 8 00 a m to 5 00 p m eas...

Страница 21: ...d to correct the interference at the user s expense EMC Directive Statement Products bearing the CE Label fulfill the requirements of the EMC directive 89 336 EEC and of the low voltage directive 73 23 EEC issued by the European Commission To obey these directives the following European standards must be met EN55022 Class A Limits and methods of measurement of radio interference characteristics of...

Страница 22: ...nty Warranty service may be obtained by delivering the Product to Sealevel and providing proof of purchase Customer agrees to ensure the Product or assume the risk of loss or damage in transit to prepay shipping charges to Sealevel and to use the original shipping container or equivalent Warranty is valid only for original purchaser and is not transferable This warranty applies to Sealevel manufac...

Отзывы: