Copyright 2007 RTcom USA., Inc.
10
Firmware Version Request 30
40 RS gn 232C Assi
Input Data10 30h ~ 39h I nput Channel Select
Input Data1 30h ~ 39h Input Channel Select
Ou 30h ~ 39h Ou a tput First Data10 tput A Input Select Dat
Ou a1 Outp ata tput First Dat 30h ~ 39h ut B Input Select D
Out 10 Outp ata put Last Data 30h ~ 39h ut N Input Select D
Output Data1 Outp ata Last 30h ~ 39h ut O Input Select D
Tail (End) 2Ah(*) Frame End
From Matrix
Code (4Byte) Head (1byte) | Address (1Byte) | PN (1Byte) | Tail (1Byte)
Code Name Byte Data Function
Head (Start) 21h Reply Frame Start
Start Head Request Frame er 30h (0) Start
Sta Head 31h (1) R uestrt er eq Frame Start
P t I ~ D itch Set) u mroduc D 30h 39h ( IP Sw Prod ct Nu ber
Product ID 30h ~ 39h (DIP Switch Set) r Product Numbe
PN 1 ~ 255 (DIP Switch Set) Product Number
T l (End 2Ah Fra e Endai ) m
xample of RS232 communication code when product ID is set to “0E
1”.
T SSIGN: ch ge Inpu e
INPU SW A an t 5 to thre outputs (output 3, 4, 6)
Byte Header ID Command
Number of
Output
Input Output 1 Output 2 Output 3
ASCII ! 0 1 0 1 0 1 0 3 0 5 0 3 0 4 0 6
Hex 21h 30h 31h 30h 31h 30h 31h 30h 33h 30h 35h 30h 33h 30h 34h 31h 36h
Byte Tail
ASCII *
Hex 2Ah
INPUT I O a a u t h e SW ASS GN SALV : ch nge ll Inp t/ou put c ann ls
Byte Header ID Command
Output1 of
Input
Output2 of
Input
Output3 of
Input
Output4 of
Input
Output5 of
Input
ASCII ! 0 1 0 1 0 2 0 1 0 2 0 3 0 4 0 5
Hex 21h 30h 31h 30h 31h 30h 32h 31h 31h 30h 32h 30h 33h 30h 34h 30h 35h
Byte
Output6 of
Input
Tail
ASCII 6 * 0
Hex 30h h h 36 2A