Accessing The Common Serial Ports - ICP DAS USA LinPAC AM335 Series User Manual

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

Advertisement

2.7.5. Accessing the common serial ports

2.7.5.1. Internal communication for COM1 port
The COM1 port is an internal I/O expansion port on the LinPAC and is used to connect to the
series module inserted into the LinPAC embedded controller. The I-87K, I-97K and XV-board series
is based on a serial interface, which is provided for combining a variety of I/O function within the
LP-8x2x, LP-9x2x and LP-22xx/52xx controllers. The differences between the three series are listed
as follows:
I-87K series can used with LP-8x2x, visit to this website:
http://www.icpdas.com/root/product/solutions/remote_io/rs-485/i-8k_i-87k/i-8k_i-87k_dio.html
I-97K series can used with LP-9x2x, visit to this website:
http://www.icpdas.com/root/product/solutions/remote_io/i-9k_i-97k/i-9k_i-97k_aio.html
XV-board series can used with LP-22xx/52xx, visit to this website:
http://www.icpdas.com/root/product/solutions/hmi_touch_monitor/touchpad/xv-board_selection.html
A serial command must be used to control the I-87KW/97K series module. For more information
about serial command usage, see the chapter
To control the series module, the Com port parameters and call the
the COM1 port based on the appropriate settings. Finally, call the
specify which slot will be controlled, the I-87KW/97K series could be necessary.
This is like the serial address, meaning that control commands can be sent to an I/O module that
is inserted in the specified slot. Consequently, the serial address for the slot that contains the
module is 0. A detailed example is provided below:
For Example:
int slot=1; char data=8, parity=0, stopbit=1 ;
unsigned char port=1;
AM335X-PAC Series User Manual
Copyright © 2021 ICP DAS Co., Ltd. All Rights Reserved.
3.2. i-Talk
Utility.
// for all modules in COM1 port of LP-8x21
version 2.0.4
Open_Com()
function to open
ChangeToSlot(slot)
function to
E-mail: service@icpdas.com
Page: 48

Advertisement

Table of Contents
loading

Table of Contents