13.07.2015 Views

User manual - ICP DAS USA

User manual - ICP DAS USA

User manual - ICP DAS USA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8.3 Introduction of COM2/COM3 Port of LinPAC-8x4xThis COM2/COM3 port provides RS-485 serial communication (DATA+ and DATA-)and is located on bottom-right corner in the LinPAC-8x4x. You can connect to the RS-485device with modules like the I-7000, I-87k and I-8000 serial modules(DCON Module) viathis port. That is, you can control the <strong>ICP</strong> <strong>DAS</strong> I-7000/I-87k/I-8000 series modules directlyfrom this port with any converter. <strong>ICP</strong> <strong>DAS</strong> will provide very easy to use functions withlibi8k.a and then you can easily handle the I-7000/I-87k/I-8000 series modules. Below is anexample of the program code demo.‣ Test by C language:unsigned char port=2; DWORD baudrate=9600; char data=8, parity=0, stopbit=1;Open_Com(port, baudrate, data, char parity, stopbit);// send command…‣ Test in command line: (PC i-7520 COM2 of LinPAC-8x4x) (see Fig 8-3)A) Open “Hyper Terminal” of PC to monitor the process of update and the defaultCOM2 port setting is 9600, 8, N, 1B) Send data via COM2 port:In LinPAC-8x4x:Type command: echo test>/dev/ttyS0And, user must be see the “test” in “Hyper Terminal” of PCC) Receive data via COM2 port:In LinPAC-8x4x:Type command: cat /dev/ttyS0In PC:<strong>User</strong> can input some words in “Hyper Terminal” of PCAnd, user can see some words in LinPAC-8x4x.Fig. 8-3LinPAC-8x4x SDK:272

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!