TCP (Transmission Control Protocol) Command Examples
Example of Program Downloading, Running and Uploading
This is a TCP example of downloading, running and uploading the following program:
' My test program
WHILE
1
PRINT2("Hi there Ethernet host",#13)
WAIT
=1000
LOOP
END
Downloading the Program
Output:
80 4C 4F 41 44 20
LOAD command sent to motor
Input:
06
ACK from motor
Output:
24 36 30 30 30 30 30 31 31 36 44 30 30 30 30 34
30 30 30 30 30 30 30 30 30 30 30 24 57 30 30 33
32 character block of program download
Input:
06
ACK from motor
Output:
43 4C 45 20 31 0A 50 52 49 4E 54 32 28 22 48 69
20 74 68 65 72 65 20 45 74 68 65 72 6E 65 74 20
32 character block of program download
Input:
06
ACK from motor
Output:
68 6F 73 74 22 2C 23 31 33 29 0A 57 41 49 54 3D
31 30 30 30 0A 24 4C 30 30 30 30 50 0A 45 4E 44
32 character block of program download
Input:
06
ACK from motor
Output:
0A FF 24 74 65 73 74 20 65 74 68 65 72 6E 65 74
2E 73 6D 78 00 20 20 20 20 20 20 10 0B 16 13 07
32 character block of program download
Input:
06
ACK from motor
Output:
02 87 00 00 00 59 08
Remaining character block of program down-
load
Output:
FF FF 20
Output, but no reply expected
Output:
80 52 43 4B 53 20
RCKS command
Input:
30 30 30 30 30 30 20 30 30 31 31 36 44 20 50 0D
Two checksum values and P (pass)
SMI Serial Data Analyzer (shows Output and Input)
Moog Animatics Class 6 SmartMotor™ Ethernet Serial Encapsulation Guide, Rev. B
Page 27 of 32
Содержание Smart Motor SM23166MT
Страница 31: ......
Страница 32: ...PN SC80100017 001 Rev B Ethernet Serial Encapsulation ...