Doc. Title
Author
Page of Pages
ST300/340 OPERATION MANUAL
– LATAM
HG.Park
95 of 146
Concerning
Doc. No.
Rev.
Date
Features and How to set parameters
1.41
26 May. 2015
Suntech International Ltd.
Confidential Document
6-8. Transferring Data to External RS232 Device
If the device receives this command and is connected with external appliance via RS232, it transfers the data to the
appliance connected via RS232.
Don
’t use software flow control, if you use RS232.
HDR DEV_ID VER LEN DATA CHK_SUM
Field
Marks
Value
Meaning
HDR
“ST300DEX”
Command type.
DEV_ID
9 char
Device ID.
VER
“02”
Protocol Version.
LEN
Length of data.
DATA
Up to 500bytes.
CHK_SUM
8bit Checksum. Lower than 8 bit of the summation of DATA
field.
<Example>
[command] ST300DEX;100850000;02;6;012345;2F
[response] ST300DEX;Res;100850000;010;25;012345;2F
<Note>
CHK_SUM is string converted from lower 8 bit of the summation of DATA field.
In case of the above example, v
alue of ‘0’ character in DATA field is equal to 0x30 in hex system, and ‘1’ is
equal to 0x31 in hex system.
In this case, summation of DATA will be 0x12F (0x30+0x31+0x32+0x33+0x34+0x35), and CHK_SUM string will
be “2F’.
And, the
whole string from server will be “ST300DEX;100850000;02;6;012345;2F”.
If the
‘DATA’ field includes 0x00 or 0x01, the server should convert and send as below.
Original Data: 0x30 0x31
0x00
0x32
0x01.
Conversion: 0x30 0x31
0x01 0x10
0x32
0x01 0x11.