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
Input:
06
24 36 30 30 30 30 30 31 31 36 44 30 30 30 30 34
Output:
30 30 30 30 30 30 30 30 30 30 30 24 57 30 30 33
Input:
06
43 4C 45 20 31 0A 50 52 49 4E 54 32 28 22 48 69
Output:
20 74 68 65 72 65 20 45 74 68 65 72 6E 65 74 20
Input:
06
68 6F 73 74 22 2C 23 31 33 29 0A 57 41 49 54 3D
Output:
31 30 30 30 0A 24 4C 30 30 30 30 50 0A 45 4E 44
Input:
06
0A FF 24 74 65 73 74 20 65 74 68 65 72 6E 65 74
Output:
2E 73 6D 78 00 20 20 20 20 20 20 10 0B 16 13 07
Input:
06
Output:
02 87 00 00 00 59 08
Output:
FF FF 20
Output:
80 52 43 4B 53 20
Input:
30 30 30 30 30 30 20 30 30 31 31 36 44 20 50 0D
SMI Serial Data Analyzer (shows Output and Input)
Moog Animatics Class 6 SmartMotor™ Ethernet Serial Encapsulation Guide, Rev. B
LOAD command sent to motor
ACK from motor
32 character block of program download
ACK from motor
32 character block of program download
ACK from motor
32 character block of program download
ACK from motor
32 character block of program download
ACK from motor
Remaining character block of program down-
load
Output, but no reply expected
RCKS command
Two checksum values and P (pass)
Page 27 of 32
Need help?
Do you have a question about the Smart Motor SM23166MT and is the answer not in the manual?