ICP DAS USA 8830 Command, Description, Syntax, $AASi6CHKcr, A delimiter character, command

Page 75
$AASi6

$AASi6

Command

$AASi6

 

Description

Read back the Digital Output module value and read the Digital Input

 

module value of a specified slot in the I-8000 unit.

Syntax

$AASi6[CHK](cr)

 

 

$

A delimiter character

 

AA

A 2-character HEX module address for the specified

 

 

I-8000 unit, ranging from 01 to FFh

 

Si

The specified slot number. i = 0 to 3 (4 slots) or

 

 

i = 0 to 7 (8 slots)

 

6

A Command to read the data

 

[CHK]

A 2-character checksum

 

(cr)

Carriage Return (0x0D) to denote the end of

 

 

command

 

Valid Command

!0D0E00[CHK](cr) for 8-bit DIO modules

 

 

!DD0000[CHK](cr) for 8-bit (or less than 8 bits)

 

 

DO modules

 

 

!EE0000[CHK](cr) for 8-bit (or less than 8 bits) DI

 

 

modules

 

 

!DDEE00[CHK](cr) for 16-bit DIO modules

 

 

!DDDD00[CHK](cr) for 16-bit DO modules

 

 

!EEEE00[CHK](cr) for 16-bit DI modules

 

 

!DDDDEEEE[CHK](cr) for 32-bit DIO modules

 

 

!DDDDDDDD[CHK](cr) for 32-bit DO modules

 

 

!EEEEEEEE[CHK](cr) for 32-bit DI modules

 

Invalid Command

?AA[CHK](cr)

 

Any syntax or communication error may receive no response.

 

!

A delimiter for valid command

 

?

A delimiter for invalid command

 

D

4-bit output value (0~Fh)

 

E

4-bit input value (0~Fh)

 

DD

8-bit output value (00~FFh)

 

EE

8-bit input value (00~FFh)

 

DDDD

16-bit output value (0000~FFFFh)

 

EEEE

16-bit input value (0000~FFFFh)

 

DDDDDDDD

32-bit output value (00000000~FFFFFFFFh)

 

EEEEEEEE

32 bit input value (00000000~FFFFFFFFh)

 

 

 

 

[CHK]

A 2-character checksum

 

(cr)

Carriage Return (0x0D) to denote the end of

 

 

response

Example

Command

$01S16

 

Response

!0155AA00

 

Description

The example reads the digital I/O module value from

 

 

slot 1 of the I-8000 unit at address 01h. The second

 

 

2-character value 55h (01010101) indicate the I/O

 

 

module channels 1,3,5,7 are ON and channels

 

 

0,2,4,6 are OFF.

8430/8830/8KE4/8KE8 User’s manual, Jan 2005, Version 1.0, 8MS-002-10 ----- 75

Image 75
Contents Version 1.0, January I-8430I-8830 I-8KE4-GI-8KE8-G8430/8830/8KE4/8KE8 Ethernet I/O Unit User’s Manual 8430/8830/8KE4/8KE8 Table of Contents Download firmware Updating MiniOS7 imageChapter 1. Introduction Various SDK provided free 1.1 FeaturesEthernet -based Data Acquisition I/O unit ASCII-based protocol DCON ProtocolInternet I/O configurable via the EthernetSimultaneous access by a maximum of 6 host PCs Updateable firmware via the RS-232 portDual Bus design to supports i-8K and i-87K series I/O modules More flexible I/O combination and Compact、fasten、quick to installInput Protection circuitry High performance integrated power supplyVentilated housing design to work between -25 ~+75 Built-in WatchdogEthernet port 1.2 i-8430/i-8830 Hardware SpecificationsSRAM EEPROMPower supply 20W DimensionMounting mechanism 1.3 i-8KE4/i-8KE8 Hardware Specifications NVRAMReal time clock Power supply 20W RS-232/485 COM3 1.4 Front view of 8430/88308430 8830Pin assignment of COM1 Port Pin assignment of COM3 Port 1.5 Front view of 8KE4/8KE8 8KE48KE8 Pin assignment of COM1 Port Method b DIN-Rail mounting Frame Ground DIN-Rail Clips 1.6 8430/8830/8KE4/8KE8 installationThe diagrams below show the basic wiring for the Ethernet I/O Step2 Attach power supply 10 ~ 30 VDC33333 1111122222 444441.7 I/O module installation For I-8000 series modules the files are located atFor I-87K series modules the files are located at Pin assignment Wire Connection Step2 Connect the wire Step3 Insert the I/O module into the 8KE4/8KE8 By “Configuration Wizard“ By “MiniOS7 Utility” By “SMMI Menu” Chapter 2. Configure the 8430/8830/8KE4/8KE8 and I/O modules2.1 Configure the network settings 2.1.1 By “Configuration Wizard”4.1 4.2 4.21 2.1.2 By MiniOS7 UtilityDOWN 2.1.3 By SMMI Menu Network ConfigurationPOWER MODEFollowing is the SMMI menu tree Cursor position Step2 The SMMI menu treeStep3 Selection items that can be changed 2.3 Configure I/O modules 2.2 Creating a virtual COM port to map the I/O modulesDCON Utility 3.1 4.1 4.2 4.3 8430/8830/8KE4/8KE8 User’s manual, Jan 2005, Version 1.0, 8MS-002-10 3.1 The feature of using DCON Protocol Chapter 3. Using the DCON ProtocolStep 3. Receive data from Ethernet controller 3.2 Using the TCP protocol directlyStep 2. Send command with cr Step 1. Connect to the Ethernet controllerThe result will be as below 3.3 Via VxComm technology 4.1 Location of documents and software Chapter 4. Software Development ToolKit freeThe diagram below show the architecture of the SDK DCON Utility DOS version 4.2.1 Procedure for using the DCON Utility DOSDCON Utility DOS 4.2 DCON Utility DOSDCON DLL 4.3.1 Procedure for using the DLL4.3 DCON DLL DLL libraryQuickStartManual.pdf FAQ.pdf4.3.2 VB Example Reading an analog input value Step 7 Write the program code VB Step VB Step VB StepStep 8 Run the project ActiveX ocx component Supported modules 4.4.1 Procedure for using the ActiveXDCON ActiveX 4.4 DCON ActiveX4.4.2 VB Example Reading an analog input value InstallOCX.pdfStep 5 Add the ActiveX ocx component to the project 8430/8830/8KE4/8KE8 User’s manual, Jan 2005, Version 1.0, 8MS-002-10 Step 6 Arrange all the components on the formStep 7 Write the program code VB Step VB Step VB Step8430/8830/8KE4/8KE8 User’s manual, Jan 2005, Version 1.0, 8MS-002-10 DCON LabVIEW 4.5.1 Procedure for using DCONLabVIEW4.5 DCON LabVIEW Bundled driver for LabVIEWDCONDLL.pdf Descriptions of all sub-function in DCONDLL CallDLLinLabVIEW.pdf Explains how to call a sub-vi of in LabVIEW8000Demo Demo programs for I-8000 I/O modules 8000.llb LabVIEW library contains all sub-vi for I-8000 I/O modulesStep3 Select the sub-vi form Functions Palette Select a VI… 4.5.2 LabVIEW Example Reading multi-channel analog Input value Step4 Select the target *.lib file LabVIEW library fileStep5 Select the desired sub-vi Step7 Draw the data flow of sub-vi 4.5.2 LabVIEW Demo Program Reading multi-channel analog input value2.1 2.2 Step2 Set the parametersStep3 Run the demo DCON Indusoft 4.6.1 Procedure for using the Indusoft bundled driver4.6 DCON Indusoft 4.6.2 Indusoft Example Reading an analog input value5.1 5.2 5.3 5.4 Step 4 Run Indusoft and create a new projectStep 5 Include the DCON driver Step 6 Configure the DCON driver Step8 Arrange all the components on the form 7.1 7.2Step7 Insert tags to connect to I/O modules The address format is Address ModuleID Slot Channel9.1 9.2 Step9 Double click the text box to assign a tag to itStep10 Run the project OPC Server 4.7 NAP OPC Server4.7.1 Introduction NAP OPC server4.7.2 Procedure for using the OPC server 4.7.3 OPC Server Example Reading an analog input value Step 4 Run the OPC server to search for I/O modules on COM3 4.1 4.2 4.4 4.3Labview National WIZCON iFix Indusoft Citect Step 5 Save the configuration and close the OPC ServerStep 6 Run SCADA software to connect to the OPC Server Top View Appendix A Dimensionsi-8430 Back ViewTop View i-8830Back View Side Viewi-8KE4 i-8KE8 Basic Command Format Appendix B DCON protocolFrequently used Command table reference B.1 Command SetCommand #01S3+2.1234+2.1234 +2.1234 +2.1234 cr +2.1234+2.1234 +2.1234 +2.1234+2.1234cr #01S3C0#01S3C1-05.000 #01S3C1+09.000module value of a specified slot in the I-8000 unit A Command to read the data$AASi6 Read back the Digital Output module value and read the Digital Input#01S300AA55cr #01S300428430/8830/8KE4/8KE8 User’s manual, Jan 2005, Version 1.0, 8MS-002-10 #01S31A00cr #01S31C01#01S31001 Channel Status#01S31000 Set the Channel 0 DO OFFB.2 Hardware interface Use Virtual COM Port interface Appendix C VxComm techniqueThe two application architectures are shown as below Appendix D i-8K and i-87K series I/O modules i-87K series i-8000 seriesAppendix E Updating firmware and MiniOS7 image E.1 Access the controller Power 10~ 30 VDCCA-0915 Step5 Run MiniOS7 Utility Step6 Select the COM port of the host PC 6.1 6.22. List files in the Flash ROM 1. MiniOS7 image information i. MiniOS7 image version of the 8430/8830/8KE4/8KE8ii. Files in the Flash ROM E.2 Updating MiniOS7 image E.3 Download firmware