ICP DAS USA LinPAC AM335 Series User Manual page 62

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

Advertisement

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
getlist
setdo
getdi
setport
getport
getsendreceive
getreceive
AM335X-PAC Series User Manual
Copyright © 2021 ICP DAS Co., Ltd. All Rights Reserved.
getlist
Lists the names of all modules inserted in the LinPAC-8x2x/9x2x
setdo {slot} {data}
setdo 3 3
Sets channels 1 and 2 on the I-8055W module to ON
getdi {slot} {type}
getdi 3 8
Reads the 8-bit Digital Input value from the I-8055W module
setport {slot} {offset} {data}
setport 1 0 20
Set the dec value 20 to offset 0 of slot 1
getport {slot} {offset}
getport 1 0
Get the dec value from offset 0 of slot 1
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 {slot} {comport} {timeout} {baudrate} {format}
getreceive 0 2 5 9600 8n1
Get response from the module at COM2 with 8n1 format in 0.5s
Example
version 2.0.4
Page: 62
E-mail: service@icpdas.com

Advertisement

Table of Contents
loading

Table of Contents