![background image](http://html1.mh-extra.com/html/icp-das-usa/can-8124/can-8124_user-manual_3568919103.webp)
CAN-8124/CAN-8224/CAN-8424 User Manual
CAN-8124/ CAN-8224/ CAN-8424 User Manual (Version 2.0, Aug/2007)
103/153
Example 2: DI/DO module demo
In this demo, apply the I-8042 (slot 0) into the CAN-8124 as follows.
Slot
Address
Application
Instance ID
Module
name
DO
Length(Byte)
AO
Length(Byte)
DI
Length(Byte)
AI
Length(Byte)
2
0x01
8042
2 0 2 0
Application Instance 1
Attribute ID
Description
Method
Data Type
Value
0x01 Module
name
Get
WORD
8042
0x02 Module
Type
Get
CHAR
4
(DO_AND_DI_TYPE)
0x03 Configuration
Get/Set
Depend on the
number of
module channel
0x40
0x04
Total
Channels
Get CHAR
32
0x05 Total
Length
Get CHAR
4
0x06 Reserved
Get CHAR
0
0x07 DO
Length
Get CHAR
2
0x08 AO
Length
Get CHAR
0
0x09 DI
Length
Get CHAR
2