DI/DO Type :
DI : 30H
DO : 31H
DO_AUTO : 34H
Data #1 : DI/DO Channel 5
th
to 8
th
Data #2 : DI/DO Channel 1
st
to 4
th
Data #3 : DI/DO Channel 13
th
to 16
th
Data #4 : DI/DO Channel 9
th
to 12t
h
DI type :
Data #1 = high nibble of low byte of DI status
Data #2 = low nibble of low byte of DI status
Data #3 = high nibble of high byte of DI status
Data #4 = low nibble of high byte of DI status
Example: ch16 ………… ch9……………..ch1
0000 1100 1001 1111 --- 1: means ON, 0: means OFF
ASCII ‘0’ ‘C’ ‘9’ ‘F’
means ------> ch 1, 2, 3, 4, 5, 8, 11, 12 is on ch 6, 7, 9, 10, 13, 14, 15, 16 is off
data #1 = 0x39('9')
data #2 = 0x46('F')
data #3 = 0x30('0')
data #4 = 0x43('C')
DO type :
Data #1 = high nibble of low byte of DO status
Data #2 = low nibble of low byte of DO status
Data #3 = high nibble of high byte of DO status
Data #4 = low nibble of high byte of DO status