ICP DAS I-9048, I-8048W User Manual

I-9048 / I-8048W Module
Common User Manual
(For Windows/WinCE platform)
V 1.0.2 October 2020
Written by Sean Hsu
Edited by Anna Huang
All products manufactured by ICP DAS are under warranty regarding defective materials for a period of one year, beginning from the date of delivery to the original purchaser.
Warning
ICP DAS assumes no liability for any damage resulting from the use of this product. ICP DAS reserves the right to change this manual at any time without notice. The information furnished by ICP DAS is believed to be accurate and reliable. However, no responsibility is assumed by ICP DAS for its use, nor for any infringements of patents or other rights of third parties resulting from its use.
Copyright
Copyright © 2020 by ICP DAS Co., Ltd. All rights are reserved.
Trademarks
Names are used for identification purposes only and may be registered trademarks of their respective companies.
Contact Us
If you have any problems, please feel free to contact us. You can count on us for a quick response. Email: service@icpdas.com

Table of Contents

Table of Contents ........................................................................................................................................ 3
Preface ........................................................................................................................................................ 5
1. Introduction ........................................................................................................................................ 6
1.1. I/O Module Dimensions .............................................................................................................. 8
1.2. Inserting the I/O Modules ........................................................................................................... 9
1.3. Wire Connections ...................................................................................................................... 11
1.4. Location of the Demo and library Programs ............................................................................. 12
2. I-9048 / I-8048W module features ................................................................................................... 14
2.1. General Introduction ................................................................................................................. 15
2.1.1. Pin Assignment for the I-9048 ........................................................................................ 17
2.1.2. Pin Assignment for the I-8048W .................................................................................... 18
2.1.3. Block Diagram ................................................................................................................. 19
2.1.4. Isolated or TTL Input ...................................................................................................... 21
2.1.5. Digital Input & LED indicators ......................................................................................... 23
2.1.6. Programmable Rising/Falling interrupt .......................................................................... 24
2.2. Software Introduction ............................................................................................................... 27
2.2.1. Software flow chart ........................................................................................................ 28
2.2.2. Recognize different interrupt service requests .............................................................. 30
3. API References .................................................................................................................................. 33
3.1. Function List .............................................................................................................................. 34
3.2. pac_i8048W_DI_ALL ................................................................................................................. 36
3.3. pac_i8048W_DI_Ch ................................................................................................................... 38
3.4. pac_i8048W_ Set_RisingReg ..................................................................................................... 40
3.5. pac_i8048W_ Set_FallingReg .................................................................................................... 41
3.6. pac_i8048W_Read_RisingReg ................................................................................................... 42
3.7. pac_i8048W_Read_FallingReg .................................................................................................. 43
3.8. pac_i8048W_Read_RisingEvent ................................................................................................ 44
3.9. pac_i8048W_Read_FallingEvent ............................................................................................... 45
3.10. pac_i8048W_Read_RisingEventCount .................................................................................... 46
3.11. pac_i8048W_Read_FallingEventCount ................................................................................... 48
3.12. pac_i8048W_Clear_RisingEventCount .................................................................................... 49
3.13. pac_i8048W_Clear_FallingEventCount ................................................................................... 50
3.14. pac_i8048W_Init ..................................................................................................................... 51
3.15. pac_i8048W_InstallISR ............................................................................................................ 53
3.16. pac_i8048W_UnInstallISR ....................................................................................................... 55
3.17. pac_i8048W_UnFreezeINT ...................................................................................................... 56
3.18. pac_i8048W_GetLibVersion .................................................................................................... 58
3.19. pac_i8048W_GetLibDate ........................................................................................................ 59
Revision History ........................................................................................................................................ 60

Preface

The I-9048 / I-8048W is an 8-channel digital input module with hardware interrupt capability for real-time system application. Each channel can be programmed as an interrupt input channel to invoke an interrupt on falling edges, rising edges or both falling and rising edges. Each channel can be eithers Isolated or Non-isolated TTL Input, selectable by Jumper. The module includes LED indicators are provided for monitoring DI channel status, together with± 4 kV ESD protection and 1500 Vrms intra-module isolation.
The information contained in this manual is divided into the following topics: Chapter 1, “Introduction This chapter provides information related to the hardware, such as
the specifications, the jumper settings details and wiring information.
Chapter 2, “I-9048 / I-8048W features–– This chapter introduces the features of I-9048 /
I-8048W module.
Chapter 3, “API References– This chapter describes the functions provided in the I-9048 /
I-8048W library together with an explanation of the differences in the naming rules used for the different Windows platforms.

1. Introduction

Model
I-9K Series
I-8K series
Communication interface
Parallel bus
Parallel bus
Protocol
-
-
Communication speed
Fast
Fast
DI module with latched function
-
-
DI module with counter input
-
-
Power on value for DO module
Y
-
Safe value for DO module
Y
-
Programmable slew-rate for AO module
-
-
Platform
CPU
Slot Counts
WP-9x2x-CE7
AM335x (ARM)
2,4,8
XP-9x7x-WES7 XP-9x8x-WES7
E3827/E3845 (X86)
1,3,7
The I-9K/I-8K series module is based on a parallel interface with high communication speed. The differences between the I-9K and I-8k series are listed as follows:
I/O module features comparison
Refer to
http://www.icpdas.com/en/product/guide+Remote__I_O__Module__and__Unit+PAC__%EF%BC%86a mp;__Local__I_O__Modules+I-9K_I-97K__Series for more details regarding of I-9K series module
specification, jumper settings details and wiring information. Refer to
http://www.icpdas.com/en/product/guide+Remote__I_O__Module__and__Unit+PAC__%EF%BC%86a mp;__Local__I_O__Modules+I-8K_I-87K__Series__(High__Profile) for more details regarding of I-8K
series module specification, jumper settings details and wiring information.
Those I-9K Modules must work then plugin any slot with the following PAC:
Those I-8K Modules must work then plugin any slot with the following PAC:
Platform
CPU
Slot Counts
WP-8x4x
PXA270 (ARM)
1,4,8
WP-8x2x-CE7
AM335x (ARM)
1,4,8
XP-8x3x-CE6
x86 CPU,1 GHZ, dual-core
1,3,7

1.1. I/O Module Dimensions

I-9K module with spring clamp terminal connector
Left Side View
Top View
I-8K module with screw terminals connector
All dimensions are in millimeters.

1.2. Inserting the I/O Modules

Follow the procedure described below to insert the I-9048 module.
1. Insert the I/O module
2. Wiring connection
The metal part of the cord end terminal on the wire can be direct wired to the terminal.
Note:
The I-9048 module supports spring clamp terminal connector. The spring clamp terminal connector for the I-9048 module connector offers the advantages (anti-vibration, stable clamping and installation easier) relative to screw terminals.
A tip on how to connect the wiring to the connector
1. Use screwdriver to push the orange
clip in.
2. Insert the wiring into the terminal
block
Keep on pushing
Insert the wire
1. Use screwdriver to push the orange
clip in.
2. Remove the wiring from the
terminal block
Keep on pushing
A tip on how to remove the wiring from the connector

1.3. Wire Connections

1.4. Location of the Demo and library Programs

Platform
Location
For WinCE5.0
Library
CD:\napdos\wp-8x4x_ce50\SDK\IO_Modules or
http://ftp.icpdas.com/pub/cd/WinPAC/napdos/wp-8x4x_ce50/SDK/IO_Modules/
Demo
VC: D:\napdos\wp-8x4x_ce50\Demo\WinPAC\VC2005\IO\IO\Local or
http://ftp.icpdas.com/pub/cd/WinPAC/napdos/wp-8x4x_ce50/Demo/WinPAC/VC2005 /IO/Local/
VB.net: CD:\napdos\wp-8x4x_ce50\Demo\WinPAC\VB.NET\IO\Local or
http://ftp.icpdas.com/pub/cd/WinPAC/napdos/wp-8x4x_ce50/Demo/WinPAC/VB.NET /IO/Local/
C#: CD:\napdos\wp-8x4x_ce50\Demo\WinPAC\C#\IO\Local or
http://ftp.icpdas.com/pub/cd/WinPAC/napdos/wp-8x4x_ce50/Demo/WinPAC/C%23/I O/Local/
Platform
Location
For WinCE7.0
Library
CD:\VP-x231\SDK\IO_Modules or
http://ftp.icpdas.com/pub/cd/WinPAC_AM335x/VP-x231/SDK/IO_Modules/
Demo
VC: CD:\VP-x231\demo\PAC\Vc2008\IO\Local or
http://ftp.icpdas.com/pub/cd/WinPAC_AM335x/VP-x231/demo/PAC/Vc2008/IO/ Local/
ICP DAS provides a range of demo programs for different platforms that can be used to verify the functions of the I-9048 / I-8048W modules. The source code contained in these programs can also be reused in your own custom programs if needed. The following is a list of the locations where both the demo programs and associated libraries can be found on either the ICP DAS web site or the enclosed CD.
VB.net: CD:\VP-x231\demo\PAC\Vb.net\IO\Local or
http://ftp.icpdas.com/pub/cd/WinPAC_AM335x/VP-x231/demo/PAC/Vb.net/IO/L ocal/
C#: CD:\VP-x231\demo\PAC\C#\IO\Local or
http://ftp.icpdas.com/pub/cd/WinPAC_AM335x/VP-x231/demo/PAC/C%23/IO/Lo cal/
Platform
Location
For WinCE6.0
Library
CD:\SDK\Special_IO or
http://ftp.icpdas.com/pub/cd/XP-8X3X-CE6/SDK/Special_IO/
Demo
VC: CD:\demo\XPAC\VC2005\IO\Local or
http://ftp.icpdas.com/pub/cd/XP-8X3X-CE6/demo/XPAC/VC2005/IO/Local/
VB.net: CD:\demo\XPAC\VB.NET\IO\Local or
http://ftp.icpdas.com/pub/cd/XP-8X3X-CE6/demo/XPAC/VB.NET/IO/Local/
C#: CD:\demo\XPAC\C#\IO\Local or
http://ftp.icpdas.com/pub/cd/XP-8X3X-CE6/demo/XPAC/C%23/IO/local/

2. I-9048 / I-8048W module features

The I-9048 / I-8048W is an 8-channel digital input module with hardware interrupt capability for real-time system application. Each channel can be programmed as an interrupt input channel to invoke an interrupt on falling edges, rising edges or both falling and rising edges. Each channel can be eithers Isolated or Non-isolated TTL Input, selectable by Jumper.
The DI module includes LED indicators are provided for monitoring DI channel status, together with± 4 kV ESD protection and 1500 Vrms intra-module isolation.

2.1. General Introduction

Isolation
Intra-module Isolation
1500 Vrms
EMS Protection
ESD (IEC 61000-4-2)
± 4 kV Contact for Each Terminal
LED Indicators
Status
1 x Power and 8 x DI
Digital Input
Channels
8
Type
Dry Contact, Wet Contact
Sink/Source (NPN/PNP)
Sink, Source
Wet Contact, ON Voltage Level
Isolated: +4 ~ +30 VDC Non-Isolated: 0 ~ +0.8 VDC
Wet Contact, OFF Voltage Level
Isolated: 0 ~ +1 VDC Non-Isolated: +2 ~ +5 VDC
Input Impedance
2.4 kΩ, 0.5 W
Digital Input/Counter
Interrupts
8 (DI0 ~ DI7) Trigger type: Rising/falling edge programmable for each channel Max. Interrupt frequency: 10 KHz Max.
Power
Consumption
1.75 W Max.
Environmental
Operating Temperature
-25 ~ +75 °C
Storage Temperature
-40 ~ +85 °C
The I-9048 / I-8048W module is an 8-channel digital input module designed for interrupt applications.
The key features of the I-9048 / I-8048W are as following:
Environmental
Humidity
10 ~ 90% RH, Non-condensing

2.1.1. Pin Assignment for the I-9048

The pin assignment for the I-9048 is shown as follows:
Pin 1 and 11: TTL GND, ground for non-isolated input signals Pins 2 ~ 912~19: 8-channel digital input Pins 10 and 20: Isolated power supply, 5V, 200mA max.

2.1.2. Pin Assignment for the I-8048W

The pin assignment for the I-8048W is shown as follows:
Pin 1: TTL GND, ground for non-isolated input signals Pins 3 ~ 18: 8-channel digital input Pins 19 and 20: Isolated power supply, 5V, 200mA max.
Loading...
+ 42 hidden pages