Home
I/O Expansion Board for LinPAC
Contents
1. o 14 SIKE S1 12 SI 11 ST 10 Sas Saye So Saye Says Soy nt Enz B n e A m A x x lt x E E KE 1O ki A m A XW 511i gt Run Part I Step1 Using getsendreceive command to test COM4 Step2 Type getsendreceive 0 4 1 01M 9600 and receive response 017060 ICPDAS iTalk utility v15 function getsendreceive Send ASCII command and wait resopnse from a serial module Usage getsendreceive slot 1 timeout command getsendreceive slot comport timeout command baudrate Example l getsendreceive 2 1 1 SOOM Send command O00M to the module at slot 2 and wait response Example 2 getsendreceive 0 3 1 SOIM 9600 Send command O01M to the module at COM3 and wait response getsendreceive 0 4 1 BOIM 115200 101 7060 I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 35 ICP DAS Part Il Step1 Open two Telnet connections COM5 send COM6 receive Step2 In one of connections type cat dev ttyS4 for receive message from COM5 port and another send message by echo command to the COM5 port dev ttyS3 Sp E p 5k_ttyS3 gt dev ttyS3 5k_ttyS3 gt dev ttyS3 5k_ttyS3 gt dev ttyS3 bk ttyS3 gt dev ttvS3 l lp lp lp Part Ill Step1 Open two Telnet connections COM6 send COM5 receive Step2 In one of connections type cat dev ttyS3 for receive message from COM6 port and another send message by echo command
2. Return Value 1 ON 0 OFF I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 24 ICP DAS 3 8 XW 511i RS 485 4 3 8 1 Specifications Parallel I O RS 485 4 16954 compatible Internal FIFO 16 bytes Transmission speed 1152 K BPS max Isolated Yes tett 3 8 2 Pin Assignment COM7 RS 485 m Z ON t O Wi 440 Qo A LL XW 511i COM port Definitions in LP 5K SDK Device name Default baudrate 4 COM4 ttyS2 9600 5 COM5 ttyS3 9600 6 COM6 ttyS4 9600 7 COM7 ttyS5 9600 I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 25 ICP DAS 3 9 XW 514 RS 485 8 3 9 1 Specifications Parallel I O RS 485 8 16954 compatible Internal FIFO 16 bytes Transmission speed 1152 K BPS max Isolated None ka AA 3 9 2 Pin Assignment COM port Definitions in LP 5K SDK Device name Default baudrate 4 COM4 ttyS2 9600 5 COMS5 ttyS3 9600 6 COM6 ttyS4 9600 7 COM7 ttyS5 9600 8 COMS ttyS6 9600 9 COM9 ttyS7 9600 10 COM10 ttyS8 9600 11 COM11 ttyS9 9600 I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 ICP DAS 4 Demo for XW Boards 4 1 DI O Expansion Boards 4 1 1 DIO Location To install LinPAC 5000 SDK first from LinPAC 5000 s CD or FTP site of ICP DAS and user can refer to C cygwin LinCon8k examples xwboard xw 1 xx xw107 c gt Wire Connection Connect to DI and DO as below e a XVW 1071 Note There is no need to use GND a
3. gt byte gt byte gt byte gt byte gt byte gt byte byte byte byte byte gt byte gt byte gt byte gt byte gt I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 THO Ob mM Ob oO Aa was 33 ICP DAS 4 3 3 RS 485 Location To install LinPAC 5000 SDK first from LinPAC 5000 s CD or FTP site of ICP DAS and user can refer to C cygwin LinCon8k examples xwboard xw 5xx Wire Connection XW 514 gt Run Step1 Using getsendreceive command to test COM4 Step2 Type getsendreceive 0 4 1 01M 9600 and receive response 017060 d vetsendrecel 101 7060 d getsendreceive 05 1 SOIM 9600 101 7060 d getsendreceive 06 1 SO1M 9600 1017060 d getsendreceive 07 1 SO1M 9600 10 17060 d cetsendreceive 081 SOIM 9600 060 d getsendreceive 09 1 SOIM 9600 101 7060 d getsendreceive 0101 S01M 9600 101 7060 d getsendreceive O11 1 SOIM 9600 101 7060 I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 34 ICP DAS Location To install LinPAC 5000 SDK first from LinPAC 5000 s CD or FTP site of ICP DAS and user can refer to C cygwin LinCon8k examples xwboard xw 5xx gt Wire Connection Part1 COM4 connect with l 7060 Check the l 7060 configuration value is 9600 8 n 1 Part2 COM5 send message and COM6 receive Part3 COM6 send message and COM5 receive 18 60 G nn O 16 Oo 15
4. 00 User s Manual Dec 2010 ICP DAS 3 Expansion Boards 3 1 XW 107 DI 8 DO 8 3 1 1 Specifications Digital Input Channels 8 Input Type Dry Source Off Voltage Level Open Off Voltage Level Connect to GND Isolated none ZS GGG Digital Output Channels 8 Output Type Sink Open Collector Output Voltage 10 VCD 40 VCD Max Load Current 200mA channel at 25 C Isolated none ttet 3 1 2 Pin Assignment XW 107 Note There is no need to use GND and DO PWR in XW 107 non isolated UO Expansion Board for LinPAC 5000 User s Manual Dec 2010 ICP DAS 3 1 3 Programming gt XW107_Init Description This function is used to initialize the XW 107 Syntax int XW107_Init Parameter None gt XW107_Read_All_DI Description This function is used to obtain all digital input value Syntax int XW107_Read_All_DI void Parameter None Return Value data 0x00 0xFF 1 open 0 close to GND UO Expansion Board for LinPAC 5000 User s Manual Dec 2010 fon ICP DAS gt XW107_Read_One_DI Description This function is used to obtain each digital input value Syntax C int XW107_Read_One_Di int Channel Parameter Channel The digital input channel No Return Value 1 open 0 close to GND gt XW107_Write_All_DO Description This function is used to set the digital output value for all channel Syntax C void XW107_Write_All_DO int iOutVa
5. 531 1024 x 768 Yes LP 5141 800 x 600 None LP 5241 1024 x 768 None PXA270 UO expansion LP 5341 520 MHz 64 MB 128 MB 2 None 4 board optional Yes LP 5441 800 x 600 Yes LP 5541 1024 x 768 Yes 1 2 Library libxwboard a In LinPAC 500 SDK ICP DAS provides the library file libxwboard a which includes all the functions from the I O expansion buses which are used in the LinPAC 5000 Embedded Controller The libxwboard a is designed specially for the I O expansion buses on the Linux platform for use in the LinPAC 5000 which can be used to implement various I O functions Users can easily develop applications in the LinPAC 5000 by using either C or Java Language 1 3 Demo program Download the demo programs of I O expansion buses into LinPAC 5000 controller from LinPAC 5000 SDK all of the demo programs are in C cygwin LinCon8k examples xwboard UO Expansion Board for LinPAC 5000 User s Manual Dec 2010 3 ICP DAS 2 Wire Connection 2 1 Digital Input Wire Connection EH State OFF State Input Type EH value as 0 DI value as 1 Relay Contact culls I Clore TTL CMOS Logic GND Se PEAS E CR Collector Pr CG Ilen 2 2 Digital Output Wire Connection ON State OFF State Output Type DO value as 0 DO value as 1 Drive Relay Resistance Load 2 3 Voltage Input Wire Connection Input Type 2 4 Voltage Output Wire Connection Output el S vous wl Cl UO Expansion Board for LinPAC 50
6. FTP site of ICP DAS and user can refer to C cygwin LinCon8k examples xwboard xw 3xx gt Wire Connection I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 30 ICP DAS 4 3 RS 232 422 485 DI O Expansion Boards 4 3 1 RS 422 485 DIO Available soon Location To install LinPAC 5000 SDK first from LinPAC 5000 s CD or FTP site of ICP DAS and user can refer to C cygwin LinCon8k examples xwboard xw 5xx xw507 c Wire Connection I 7520A XW 507 gt Run Part I Step1 Download xw110 exe in LinPAC 5000 Step2 Changes the permission of a file as below chmod 755 xw507 exe Step3 Running program xw507 exe I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 31 ICP DAS Part Il Step1 Telnet to LinPAC 5000 Step2 Start HyperTerminal by clicking on Start gt Programs gt Accessories gt Communications gt Hyper Terminal Steps In the COM properties dialog box please set for 115200 bits per second 8 data bits no parity 1 stop bit and no flow control to set up the communication parameters for the COM1 port and press OK when done Step4 Send message to the COM4 port from LP 5000 or HyperTerminal respectively In LP 5000 In HyperTerminal BER ois Aal cel a cat dev ttyS2 a PC_TO_LP 5K PC_TO_LP 5K E PC TO LP 5K PC_TO_LP 5K 3 ala el echo lp 5k_to_pc gt dev ttyS2 lp 5k_to_pc echo lp 5k_to_p
7. ICP DAS SE I O Expansion Board for LinPAC 5000 User s Manual Version 1 0 2011 09 16 Warranty All products manufactured by ICP DAS are warranted against defective materials for a period of one year from the date of delivery to the original purchaser Warning ICP DAS assume no liability for damages consequent to 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 not for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 2010 by ICP DAS Co Ltd All rights are reserved Trademarks Names are used for identification purposes and only may be registered trademarks of their respective companies UO Expansion Board for LinPAC 5000 User s Manual Dec 2010 1 ICP DAS Table of Contents Ds AMMO e d TE 3 1 1 What s the I O Expansion Bus 3 1 2 EMD PAF Y XW DOAN E EE 3 RT PIOGKAM E EE E E Mute eatulin Seides res thuacMrurhaatinenbatnamaath 3 2 Wire CONNMGCTION E 4 2 1 Digital Input Wire Connection 0 0 ccc ccesecseesecseesecsseeecseeeeceseeseesecsesseeseeseenaees 4 2 2 Digital Output Wire Connechon 4 2 3 Voltage Input Wire Connection 0 0 ccc cc ccccsecceseceesecsseeecsseeeesseeseesecsessecseeseenaees 4 2 4 Voltage Output Wire Connection 00 ieee cteeseeecse
8. d One DI Description This function is used to obtain each digital input value Syntax C int XW509_Read_One_Di int Channel Parameter Channel The digital input channel No Return Value 1 open 0 close to GND gt XW509_Write_All_DO Description This function is used to set the digital output value for all channel Syntax C void XW509_Write_All_DO int iOutValue Parameter iOutValue The digital output value Range 0x00 OxFF Return Value None I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 22 ICP DAS gt XW509 Write One DO Description This function is used to set the digital output value of the specific digital output channel No of the XW 509 The output value is only for O or 1 Syntax C void XW509_Write One _DO int Channel int iStatus Parameter iChannel The digital output channel No iStatus 1 Status is ON iStatus 0 Status is OFF Return Value None XW509_ Bea Al DO Description This function is used to obtain digital output readback All channels Syntax C int XW509_Read_All_ DO void Parameter None Return Value 0x00 OxFF I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 23 ICP DAS gt XW509_ Read One DO Description This function is used to obtain digital output readback one channels Syntax C int XW509_Read_One_DO int iChannel Parameter iChannel The digital output channel No
9. d_One_DI Description This function is used to obtain each digital input value Syntax C int XW507_Read_One_Di int Channel Parameter iChannel The digital input channel No Return Value 1 open 0 close to GND gt XW507_Write_All_DO Description This function is used to set the digital output value for all channel Syntax C void XW507_Write_All_DO int iOutValue Parameter iOutValue The digital output value Range 0x00 OxFF Return Value None I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 16 ICP DAS gt XW507_ Write One DO Description This function is used to set the digital output value of the specific digital output channel No of the XW 507 The output value is only for O or 1 Syntax C void XW507_Write One _DO int Channel int iStatus Parameter iChannel The digital output channel No iStatus 1 Status is ON iStatus 0 Status is OFF Return Value None XW507_Read_All_DO Description This function is used to obtain digital output readback All channels Syntax C int XW507_Read_All_ DO void Parameter None Return Value 0x00 OxFF I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 17 ICP DAS gt XW507_ Read One DO Description This function is used to obtain digital output readback one channels Syntax C int XW507_Read_One_DO int iChannel Parameter iChannel The digital output channel N
10. e gt dev ttyS2 5k_to_pc echo lp 5k_to_pe gt dev ttyS2 p 5k_to_pc S echo lp 5k_to_pce gt dev ttyS 2 ae Note User can also refer to C cygwin LinCon8k examples xwboard xw 5xx xw509 c lp 5k_to_pc xW509 exe Demo program for LinPAC 5000 KW509 Please choose one of the following Read DI fall channels Read DI fone channel Write DO all channels Write DO one channel Write and Readback DO all channels Write and Readback DO fone channel Test COM4 and COM5 Portf connect COM4 and COM5 3 wire RS 232 default baudrate 9600 Note DO ChO Ch3 DI ChO Ch3 Choose an option and press Enter 7 send COMS receive byte gt s byte gt e byte gt n l byte gt d send COM4 receive byte gt 3 l byte gt e l byte gt n l byte gt d I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 32 ICP DAS 4 3 2 RS 232 Location To install LinPAC 5000 SDK first from LinPAC 5000 s CD or FTP site of ICP DAS and user can refer to C cygwin LinCon8k examples xwboard xw 5xx sio_port c gt Wire Connection XW 506 gt Run Step1 Download sio_port exe in LinPAC 5000 Step2 Changes the permission of a file as below chmod 755 sio_port exe Step3 Running program sio_port exe Note The demo is define COM4 send COM5 receive COM6 send COM7 receive COM8 send COM9 receive l l l l l l l l l l l l l l l byte
11. ernal FIFO 16 bytes Transmission speed 1152 K BPS max Isolated None tett 3 4 2 Pin Assignment XW 506 COM port Definitions in LP 5K SDK Device name Default baudrate 4 COM4 ttyS2 9600 5 COM5 ttyS3 9600 6 COM6 ttyS4 9600 7 COM7 ttyS5 9600 8 COM8 ttyS6 9600 9 COM9 ttyS7 9600 I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 13 ICP DAS 3 5 XW 507 DI 6 DO 6 RS 422 485 1 Available soon 3 5 1 Specifications Digital I O DI 6 Input Range Type Logic high level 3 5V 30V Logic low level OV 1V DO 6 Open collector Output 100 mA 30V Isolated none Parallel I O RS 422 485 1 16954 compatible Internal FIFO 16 bytes Transmission speed 1152 K BPS max Isolated None 3 5 2 Pin Assignment xn g A a 7 vn o a a Qa De ra a XVV 507 COM port Definitions in LP 5K SDK Device name Default baudrate 4 COM4 ttyS2 9600 IO Expansion Board for LinPAC 5000 User s Manual Dec 2010 14 ICP DAS 3 5 3 Programming gt XW507_Init Description This function is used to initialize the XW 507 Syntax int XW507_Init Parameter None XW507_Read_All_DI Description This function is used to obtain all digital input value Syntax int XW507_Read_All_Dl void Parameter None Return Value data 0x0000 Oxffff 1 open 0 close to GND I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 ICP DAS XW507_Rea
12. eseeeceeeseeeeeeeseceeaeeecaeeaeeeeaeeaees 4 3 Expansion Boards ereeschen Aai en sae deanai 5 3 1 XW 107 el bg E ir e Get DEE 5 3 2 A dn Duke D in oe DO A E 10 33 XW 110 DI 16 axons cach an hear ee eer act te Oem es re a 11 3 4 XW 506 RS4232 40 DEER 13 3 5 XW 507 DI 6 DO 6 RS 422 485 1 oon cs cneeseteneceeneeseseeecseseeseseeecseneeaeeees 14 SiO XW 508 RS 232 Bese sass ies hale hs ununa ni nuan edad cea hna aaa a es 19 3 7 XW 509 DI 4 DO 4 RS 232 2 20 3 8 XW 511i ym EE 25 3 9 XW 514 ge 26 4 Demo for EN Eargde ee ee 27 4 1 DI O Expansion Boards ccccccecececeseseeseesesecseesesecaeeseeecseeseeecseeseeeeaesecaeeaeeeeaeeas 27 4 2 AVO DIO Expansion E E TEE 30 4 3 RS 232 422 485 DI O Expansion Boards 0 0 i ceccccceeseescneeseescceseeeeeeeeeeeeeeeeeneeas 31 UO Expansion Board for LinPAC 5000 User s Manual Dec 2010 2 ICP DAS 1 Introduction 1 1 What s the I O Expansion Bus The LinPAC 5000 series all support I O expansion buses The I O expansion bus can be used to implement various I O functions such as D I D O A D D A Timer Counter UART flash memory battery backup SRAM A other I O functions Nearly all kinds of I O functions can be implemented on this bus VGA Model CPU Flash SDRAM Ethernet USB VO Slot Audio Port Resolution LP 5131 800 x 600 None LP 5231 1024 x 768 None PXA270 UO expansion LP 5331 520 MHz 64 MB 128 MB 1 None board optional Yes LP 5431 800 x 600 Yes LP 5
13. lue Parameter iOutValue The digital output value Range 0x00 OxFF Return Value None UO Expansion Board for LinPAC 5000 User s Manual Dec 2010 7 ICP DAS gt XW107 Write One DO Description This function is used to set the digital output value of the specific digital output channel No of the XW 107 The output value is only for O or 1 Syntax C void XW107_Write One _DO int Channel int iStatus Parameter iChannel The digital output channel No iStatus 1 Status is ON iStatus 0 Status is OFF Return Value None XW107_Read_All_DO Description This function is used to obtain digital output readback All channels Syntax C int XW107_Read_All_ DO void Parameter None Return Value 0x00 OxFF UO Expansion Board for LinPAC 5000 User s Manual Dec 2010 8 ICP DAS gt XW107_ Read One DO Description This function is used to obtain digital output readback one channels Syntax C int XW107_Read_One_DO int iChannel Parameter iChannel The digital output channel No Return Value 1 ON 0 OFF UO Expansion Board for LinPAC 5000 User s Manual Dec 2010 ICP DAS 3 2 XW 107i DI 8 DO 8 3 2 1 Specifications Digital Input Channels 8 Input Type Wet Contact Sink Source Default Off Voltage Level 4 VCD max On Voltage Level 10 VCD 50 VCD Input Impedance 10K Ohm Isolated 3750 Vrms tettet Digital Output Channels 8 O
14. nd DO PWR in XW 107 non isolated the GND and DO PWR is only for XW 107I isolated IO Expansion Board for LinPAC 5000 User s Manual Dec 2010 27 ICP DAS gt Run Step1 Download xw107 exe in LinPAC 5000 Step2 Changes the permission of a file as below chmod 755 xw107 exe Step3 Running program xw107 exe I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 28 ICP DAS 4 1 2 Dl gt Location To install LinPAC 5000 SDK first from LinPAC 5000 s CD or FTP site of ICP DAS and user can refer to C cygwin LinCon8k examples xwboard xw 1 xx xw110 c Wire Connection Connect to DI as below W Qo a a XVW 110 gt Run Step1 Download xw110 exe in LinPAC 5000 Step2 Changes the permission of a file as below chmod 755 xw110 exe Step3 Running program xw110 exe Connection Edit Yiew Window Option Help Connection Edit View Window Option Help xwllO exe xwllO exe Demo program for LinPAC 5000 XW110 Demo program for LinPAC 5000 XW110 Please choose one of the folloving Please chooge one ofthe fol ovine SCH Read One DI channel 2 Read One DI channel Choose an option and press Enter 1 ee eo E OTE Input value gt Oxffff Channel 3 gt OF I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 29 ICP DAS 4 2 Al O DI O Expansion Boards Available soon Location To install LinPAC 5000 SDK first from LinPAC 5000 s CD or
15. o Return Value 1 ON 0 OFF I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 18 ICP DAS 3 6 XW 508 RS 232 8 Available soon 3 6 1 Specifications Parallel I O RS 232 8 16954 compatible Internal FIFO 16 bytes Transmission speed 1152 K BPS max Isolated None 3 6 2 Pin Assignment I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 19 ICP DAS 3 7 XW 509 DI 4 DO 4 RS 232 2 Available soon 3 7 1 Specifications Digital I O DI 4 Input Range Type Logic high level 3 5V 30V Logic low level OV 1V DI 4 Open collector Output 100 mA 30V Isolated none Parallel I O RS 232 2 16954 compatible Internal FIFO 16 bytes Transmission speed 1152 K BPS max Isolated None tett 3 7 2 Pin Assignment XW 509 COM port Definitions in LP 5K SDK Device name Default baudrate 4 COM4 ttyS2 9600 5 COM5 ttyS3 9600 I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 20 ICP DAS 3 7 3 Programming gt XW509 Init Description This function is used to initialize the XW 509 Syntax int XW509_ init Parameter None XW509_Read_All_DI Description This function is used to obtain all digital input value Syntax int XW509_Read_All_DI void Parameter None Return Value data 0x0000 Oxffff 1 open 0 close to GND I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 21 ICP DAS gt XW509_ Rea
16. to the COM6 port dev ttyS4 BE s 5k_ttyS4 gt dev ttyS3 5k_ ttyS4 gt dev ttyS3 5k_ tty gt dev ttyS3 5k_ttvS4 gt dev ttvS3 I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 36
17. utput Type Sink Open Collector Output Voltage 10 VCD 40 VCD Max Load Current 200 mA channel at 25 C Isolated 3750 Vrms ttet 3 2 2 Pin Assignment XW 1071 Note the GND and DO PWR is only for XW 107I isolated 3 2 3 Programming Please refer to 3 1 3 I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 10 ICP DAS 3 3 XW 110 DI 16 3 3 1 Specifications Digital Input Channels 16 Input Range Type Logic high level 3 5V 30V Logic low level OV 1V Isolated none 3 3 2 Pin Assignment XW 110 3 3 3 Programming gt XW110_Init Description This function is used to initialize the XW 110 Syntax C int XW110_Init Parameter None IO Expansion Board for LinPAC 5000 User s Manual Dec 2010 11 ICP DAS XW110_Read_All_DI Description This function is used to obtain all digital input value Syntax C int XW110_Read_All_ DlI void Parameter None Return Value data 0x0000 Oxffff 1 open 0 close to GND gt XW110 Read One DI Description This function is used to obtain each digital input value Syntax C int XW110 Read _One_DI int Channel Parameter iChannel The digital input channel No Return Value 1 open 0 close to GND I O Expansion Board for LinPAC 5000 User s Manual Dec 2010 12 ICP DAS 3 4 XW 506 RS 232 6 Available soon 3 4 1 Specifications Parallel I O RS 232 6 16954 compatible Int
Download Pdf Manuals
Related Search
Related Contents
ダウンロード - 奈良先端科学技術大学院大学 CPE INEN 007: Código de practica Instalación y servicio de tanques Morphy Richards 40659 iron DESCRIPCION Antiséptico de uso tópico, a base de yodo con una dreamGEAR Play & Drive Soft Sports Kit (4 In 1) for Wii Muvit MUCRF0010 mobile phone case Notice technique ATIH - Ministère de la santé MBX Series Embedded Controller Version C Programmer`s 種類、エンジン別表示機能はココをクリックしてください。 Copyright © All rights reserved.
Failed to retrieve file