ICP DAS USA LinPAC AM335 Series User Manual page 53

Hide thumbs Also See for LinPAC AM335 Series:
Table of Contents

Advertisement

Figure 2.7.5.3-4. RS-485 connections of COM2 for LP-8x2x/9x2x
This port provides
RS-485
the bottom-right corner on the LP-22xx, LP-52xx, LP-8x2x and LP-9x2x. This port allows a
connection to be made to modules that contain an RS-485 interface such as the I-7000 serial
modules (DCON Module), meaning that ICP DAS I/O series modules can be directly controlled via
this port with any converter. ICP DAS provides a very easy to use library of functions (libi8k.a) that
can use to easily communicate with I-7000, I-8000, I-9000, I-87k and I-97k series modules. Below
is an application example of the program code demo.
Test using C language:
unsigned char port=36;
DWORD baudrate=9600;
char data=8, parity=0, stopbit=1;
Open_Com(port, baudrate, data, char parity, stopbit);
// send command...
Test using command line: (PC <--> i-7520 <--> /dev/ttyS on the LP-8x21 - see Figure 2.7.5.3-5)
(A) Open
'Hyper
for the /dev/ttyS0 port are 9600, 8, N, 1
(B) Send data via /dev/ttyS0 port:
On the LP-8x21:
Type command:
Check that the word 'send-485' is displayed on the 'Hyper Terminal' screen on the PC.
AM335X-PAC Series User Manual
Copyright © 2021 ICP DAS Co., Ltd. All Rights Reserved.
serial communication functionality (DATA+ and DATA-) and is located on
Terminal' on the Host PC to monitor the test process. The default settings
echo send-485 >/dev/ttyS0
version 2.0.4
Page: 53
E-mail: service@icpdas.com

Advertisement

Table of Contents
loading

Table of Contents