175
(c) Data packet structure
Byte sign
Name
Description
STX
Start code
“
:
”(ASCII code 3Ah)
ADR
Device number
1 byte is composed of 2 ASCII code bytes.
CMD
Command code
1 byte is composed of 2 ASCII code bytes.
DATA(n-1)
Data code
The length of n words is equal to the one of 2n bytes.(n<=29)
So, there are 4n ASCII code bytes.
………
DATA(0)
LRC
LRC check value
1 byte is composed of 2 ASCII code bytes.
End1
End code 1
“CR”(ASCII code 0Dh)
End0
End code 0
“LF”( ASCII code 0Ah)
Communication data formats are described below.
STX
“ : ” character
ADR
The address code is from 1 to 32. For example
,
the expression of number 18(
hexadecimal
12h) is
divided into
“1” and “2” in ASCII code. The address code 18 is expressed as 31h and 32h.
CMD and DATA
The DATA are varied according to different Command codes. To read 2 words which start address is
0100h from device number 1 as an example is described below.
Command code: 03h, read data
Command(host)
:
Response(slave)
:
STX
:
STX
:
ADR
„0‟
ADR
„0‟
„1‟
„1‟
CMD
„0‟
CMD
„0‟
„3‟
„3‟
DA
T
A
start address
„0‟
DA
T
A
byte length
„0‟
„1‟
„4‟
„0‟
content of
address 0100h
„0‟
„0‟
„1‟
word length
„0‟
„0‟
„0‟
„2‟
„0‟
content of
address 0101h
„1‟
„2‟
„2‟
LRC
„F‟
„2‟
„9‟
„1‟
End1
0Dh
LRC
„C‟
End0
0Ah
„2‟
End1
0Dh
End0
0Ah
Summary of Contents for SDE Series
Page 13: ...5 1 6 Function block diagram ...
Page 26: ...18 3 3 3 CN1 pin name list ...
Page 223: ...215 SME L040 SME L075 SME L100 SME L150 ...
Page 224: ...216 SME L200 SME L300 SME M100 SME M150 Continuous running range ...
Page 227: ...219 ...
Page 231: ...223 4 Wiring example with peripheral equipment CN2 Encoder socket ...
Page 242: ...234 12 4 Version information Version V1 01 Issue date Aug 2017 Proofreader Yaochou Shu ...