background image

 

I-8026W API User Manual, v1.0.1, June 2015 

Copyright ©  2015 ICP DAS Co., Ltd. All Rights Reserved.                  E-mail: [email protected]

 

1-1

 

 

I-8026W   

Linux API reference Manual 

 

Multifunction I/O Module 

 

Version 1.1.0, Jan 2015 

 

 

Written by Hans Chen 

 

 

Summary of Contents for I-8026W

Page 1: ...User Manual v1 0 1 June 2015 Copyright 2015 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 1 1 I 8026W Linux API reference Manual Multifunction I O Module Version 1 1 0 Jan 2015 Written...

Page 2: ...erves 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 us...

Page 3: ...API Functions 3 14 3 1 i8026W_Init 3 15 3 2 i8026W_GetFirmwareVer 3 16 3 3 i8026W_GetLibVersion 3 17 3 4 i8026W_ReadAOGainOffset 3 18 3 5 i8026W_WriteAO 3 19 3 6 i8026W_WriteAOHex 3 20 3 7 i8026W_Rea...

Page 4: ...I 8026W API User Manual v1 0 1 June 2015 Copyright 2015 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 1 4 Appendix A Error Codes 4 34...

Page 5: ...are such as the specifications the jumper settings details and wiring guidelines Chapter 2 Quick Start This chapter provides information on how to get started including an overview of the location of...

Page 6: ...programmable input range on all Analog Input channels 10 V 5 V 2 5 V 1 25 V and 20 mA while Analog Output channels are 12 bit at either 10 V 5 V 0 to 10 V 0 to 5 V or 0 to 20 mA Each Analog Input chan...

Page 7: ...mpling Rate Max to 9k Samples sec detailed refer to below table Performance for Read AI Functions Individual Channel Configuration Yes Analog Output Output Channels 2 Output Type 10 V 5 V 0 to 10 V 0...

Page 8: ...tors Display System LED Indicator 1 LED as Power Communication Indicator I O LED Indicator 4 LEDs as Digital Input Digital Output Isolation Intra module Isolation Field to Logic 2500 VDC EMS Protectio...

Page 9: ...I 8026W API User Manual v1 0 1 June 2015 Copyright 2015 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 1 9 1 2 Pin Assignments...

Page 10: ...I 8026W API User Manual v1 0 1 June 2015 Copyright 2015 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 1 10 1 3 Wire Connections...

Page 11: ...I 8026W API User Manual v1 0 1 June 2015 Copyright 2015 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 1 11 1 4 Internal I O Structure...

Page 12: ...I 8026W API User Manual v1 0 1 June 2015 Copyright 2015 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 1 12 1 5 Dimensions Units mm...

Page 13: ...ation includes The version number and the FPGA version information The gain and offset values for each input range and each channel The data read from each channel 1 First user need to download LinPAC...

Page 14: ...d Offset values for each output type i8026W_WriteAO Writes an output value to a single specified Analog Output channel in float format i8026W_WriteAOHex Writes a value to a single specified Analog Out...

Page 15: ...return values see the Error Codes in Appendix A Note Before executing any functions on the I 8026W the i8026W_Init function needs be called once for each I 8026W module inserted in the controller uni...

Page 16: ...sion information for the FPGA firmware The function is only used for troubleshooting or recording purposes Prototype short i8026W_GetFirmwareVer int slot Parameters slot specifies the slot number 1 8...

Page 17: ...n is used to retrieve the version information for the I 8026W The function is only used for troubleshooting or recording purposes Prototype short i8026W_GetLibVersion void Parameters None Return Value...

Page 18: ...ue short offsetValue Parameters slot specifies the slot number 1 8 ch specifies the Analog Output channel number 0 1 gain specifies the input type 0 4 where 0 10 V 1 5 V 2 2 5 V 3 1 25 V 4 20 mA gainV...

Page 19: ...t ch short gain float fData Parameters slot specifies the slot number 1 8 ch specifies the Analog Output channel number 0 2 gain specifies the input type 0 4 where 0 10 V 1 5 V 2 2 5 V 3 1 25 V 4 20 m...

Page 20: ...ex int slot int ch short gain short hData Parameters slot specifies the slot number 1 8 ch specifies the Analog Output channel number 0 2 gain specifies the input type 0 4 where 0 10 V 1 5 V 2 2 5 V 3...

Page 21: ...I 8026W API User Manual v1 0 1 June 2015 Copyright 2015 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 3 21...

Page 22: ...point Prototype short float i8026W_ReadbackAO int slot int ch float fVal Parameters slot specifies the slot number 1 8 ch specifies the Analog Output channel number 0 2 fVal Output the value read fro...

Page 23: ...decimal format Prototype short i8026W_ReadbackAOHex int slot int ch short hVal Parameters slot specifies the slot number 1 8 ch specifies the Analog Output channel number 0 2 hVal Output the value rea...

Page 24: ...he I 8026W module Prototype short i8026W_WriteDO int slot short hData Parameters slot specifies the slot number 1 8 hData the Digital Output value 0 3 as per the table below Output Value CH0 CH1 0 OFF...

Page 25: ...odule ON or OFF Prototype short i8026W_WriteDOBit int slot int ch int bitStatus Parameters slot specifies the slot number 1 8 ch specifies the Digital Output channel number 0 1 bitVal specifies the st...

Page 26: ...BitArr unsigned char doBitArr Parameters slot specifies the slot number 1 8 diVal Output the Digital Input data doVal Output the Digital Output data diBitArr Output the bit status of the Digital Input...

Page 27: ..._ReadAI int slot int ch short gain float fVal Parameters slot specifies the slot number 1 8 ch specifies the Analog Input channel number 0 5 gain specifies the input type 0 4 where 0 10 V 1 5 V 2 2 5...

Page 28: ...ex int slot int ch short gain short hVal Parameters slot specifies the slot number 1 8 ch specifies the Analog Input channel number 0 5 gain specifies the input type 0 4 where 0 10 V 1 5 V 2 2 5 V 3 1...

Page 29: ...refOffset Parameters slot specifies the slot number 1 8 ch specifies the Analog Input channel number 0 5 gain specifies the input type 0 4 where 0 10 V 1 5 V 2 2 5 V 3 1 25 V 4 20 mA refGain Output t...

Page 30: ...I 8026W API User Manual v1 0 1 June 2015 Copyright 2015 ICP DAS Co Ltd All Rights Reserved E mail service icpdas com 3 30...

Page 31: ...erved E mail service icpdas com 4 31 4 Troubleshooting This chapter discusses how to solve some common problems you may encounter while operating the I 8026W module This chapter contains Service reque...

Page 32: ...1 Service Request Requirements If you are using a stable signal source such as a battery to output a signal to the I 8026W module and are receiving incorrect or unstable data prepare the following thr...

Page 33: ...orrupted signal source Instability in the signal source A floating signal source that is not referenced to a system ground point earth or building ground Because of the nature of the high speed data a...

Page 34: ...that there have been no errors 1 ID_ERROR There was a problem with the module ID 2 SLOT_ERROR There was a slot index error Slot numbers should be in the range of 0 to 7 3 CHANNEL_ERROR There was a ch...

Reviews: