![ICP DAS USA LP-22 Series User Manual Download Page 59](http://html.mh-extra.com/html/icp-das-usa/lp-22-series/lp-22-series_user-manual_3722566059.webp)
AM335X-PAC Series User Manual version 2.0.1 Page: 59
Copyright © 2019 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
Below table lists the demos that show how to use the I-talk utility. In the demo, the I-8024W (
AO
Module
), I-8017HW (
AI Module
) and I-8055W (
DIO Module
) are all used and they are plugged
into the slots 1, 2 and 3 of the LinPAC separately. Typing the name of the instruction will display
usage details for the instruction.
Instruction
Example
getlist
getlist
Lists the names of all modules inserted in the LinPAC-8x2x/9x2x
setdo
setdo {slot} {data}
setdo 3 3
Sets channels 1 and 2 on the I-8055W module to ON
getdi
getdi
{slot} {type}
getdi 3 8
Reads the 8-bit Digital Input value from the I-8055W module
setport
setport
{slot} {offset} {data}
setport 1 0 20
Set the dec value 20 to offset 0 of slot 1
getport
getport
{slot} {offset}
getport 1 0
Get the dec value from offset 0 of slot 1
getsendreceive
getsendreceive
{slot} {1} {timeout} {command}
getsendreceive 2 1 1 '$00M'
Send command $00M to the module at slot 2 and wait response
getsendreceive
{slot} {comport} {timeout} {command} {baudrate}
getsendreceive 0 3 1 '$01M' 9600
Send command $01M to the module at COM3 and wait response
getreceive
getreceive
{slot} {comport} {timeout} {baudrate} {format}
getreceive 0 2 5 9600 8n1
Get response from the module at COM2 with 8n1 format in 0.5s