7
RS-232C Communication
RS-232C Communication
6
7
8
9
1
2
3
4
5
6
7
8
9
1
2
3
4
5
&21752/SRUW
56&FDEOH&URVV
56&SRUW
RIWKHSURMHFWRU
RIWKHFRPSXWHU
&'
5'
5'
7'
7'
'75
*1'
*1'
'65
RTS (7)
(7) RTS
&76
'76
5,
Connecting the cable
1.
7XUQRIIWKHSURMHFWRUDQGWKHFRPSXWHU
2.
&RQQHFW WKH &21752/ SRUW RI WKH SURMHFWRU ZLWK D 56& SRUW RI
WKH FRPSXWHU E\ D 56& FDEOH FURVV 8VH WKH FDEOH WKDW IXOILOOV WKH
VSHFL¿FDWLRQVKRZQLQWKHSUHYLRXVSDJH
3.
7XUQWKHFRPSXWHURQDQGDIWHUWKHFRPSXWHUKDVVWDUWHGXSWXUQWKH
SURMHFWRURQ
Communications setting
ESV1
1. Protocol
&RQVLVWRIKHDGHUE\WHVFRPPDQGGDWDE\WHV
2. Header
%(()&5&BORZ&5&BKLJK
&5&BORZ/RZHUE\WHRI&5&ÀDJIRUFRPPDQGGDWD
&5&BKLJK8SSHUE\WHRI&5&ÀDJIRUFRPPDQGGDWD
3. Command data
&RPPDQGGDWDFKDUW
E\WHB
E\WHB
E\WHB
E\WHB
E\WHB
E\WHB
Action
7\SH
Setting code
ORZ
KLJK
ORZ
KLJK
ORZ
KLJK
$FWLRQE\WHB
Action
&ODVVL¿FDWLRQ
Content
1
SET
&KDQJHVHWWLQJWRGHVLUHGYDOXH
2
GET
5HDGSURMHFWRULQWHUQDOVHWXSYDOXH
4
,1&5(0(17
,QFUHPHQWVHWXSYDOXHE\
5
'(&5(0(17
'HFUHPHQWVHWXSYDOXHE\
6
EXECUTE
Run a command.