Port 5000 Communication (2207)
Overview
The controller uses port 5000 for file transfer, mainly for uploading, downloading, and backing up job files and configuration files.
Upload Process
To upload a file to the controller, the host computer requests a file upload via 0x1D00, and the controller replies to the upload request via 0x1D01. When the controller approves the upload, the host computer uploads the file via 0x1D04. After the upload is complete, the host computer notifies the controller that the upload is finished via 0x1D05, and the controller replies with confirmation of successful reception via 0x1D06.
Download Process
To download a file from the controller, the host computer requests a file download via 0x1D02, and the controller replies to the download request via 0x1D03. When the controller approves the download, the controller sends the requested file to the host computer via 0x1D07, and the host computer replies with the reception result via 0x1D08. After the download is complete, the controller notifies the host computer that the download is finished via 0x1D09, and the host computer replies with confirmation of successful reception via 0x1D0A.
Command List
| Command Word | Function | Direction |
|---|---|---|
| 0x1D00 | Host computer requests file upload | Host Computer → Controller |
| 0x1D01 | Controller replies to upload request | Controller → Host Computer |
| 0x1D02 | Host computer requests file download | Host Computer → Controller |
| 0x1D03 | Controller replies to download request | Controller → Host Computer |
| 0x1D04 | Host computer uploads file to controller | Host Computer → Controller |
| 0x1D05 | Host computer notifies controller that upload is finished | Host Computer → Controller |
| 0x1D06 | Controller replies confirming successful reception | Controller → Host Computer |
| 0x1D07 | Controller sends requested download file to host computer | Controller → Host Computer |
| 0x1D08 | Host computer replies with reception result | Host Computer → Controller |
| 0x1D09 | Controller notifies host computer that download is complete | Controller → Host Computer |
| 0x1D0A | Host computer replies confirming successful reception | Host Computer → Controller |
| 0x1D0B | Download connection disconnected | - |
| 0x1D10 | Host computer requests file backup | Host Computer → Controller |
| 0x1D11 | Controller replies to backup request | Controller → Host Computer |
| 0x1D12 | Host computer signals log file download complete | Host Computer → Controller |
| 0x1D13 | Host computer signals eni file download complete | Host Computer → Controller |
Detailed Command Description
0x1D00 Host Computer Requests File Upload
Direction: Host Computer → Controller
Parameter List:
| Parameter | Type | Description |
|---|---|---|
| name | string | File name sent by the host computer |
| size | int | File size sent by the host computer |
Request Example:
{
"name": "vxWorks",
"size": 4096
}0x1D01 Controller Replies to Upload Request
Direction: Controller → Host Computer
Parameter List:
| Parameter | Type | Description |
|---|---|---|
| answer | string | Whether the file upload request is approved |
answer Value Description:
| Value | Description |
|---|---|
| yes | Upload request approved |
| busy | Controller is busy |
Response Example:
{
"answer": "yes"
}0x1D02 Host Computer Requests File Download
Direction: Host Computer → Controller
Parameter List:
| Parameter | Type | Description |
|---|---|---|
| name | string | Name of the job file to download |
Description: The parameter name is the job file path plus name on the controller. In 0x5533 and 0x5534, the system sends the path and name to the host computer. The teach pendant prompts to start synchronizing job files.
Request Example:
{
"name": "job/R1/WWWWW.JBR"
}0x1D03 Controller Replies to Download Request
Direction: Controller → Host Computer
Parameter List:
| Parameter | Type | Description |
|---|---|---|
| answer | string | Whether the system approves the file download request |
| name | string | Name of the job file to download |
| size | int | File size of the job file |
answer Value Description:
| Value | Description |
|---|---|
| yes | Download request approved |
| busy | Controller is busy |
Response Example:
{
"answer": "yes",
"name": "job/R1/WWWWW.JBR",
"size": 217
}0x1D04 Host Computer Uploads File to Controller
Direction: Host Computer → Controller
Description: Upload file data
0x1D05 Host Computer Notifies Controller That Upload Is Finished
Direction: Host Computer → Controller
0x1D06 Controller Replies Confirming Successful Reception
Direction: Controller → Host Computer
Parameter List:
| Parameter | Type | Description |
|---|---|---|
| finish | bool | Whether the file was uploaded successfully |
finish Value Description:
| Value | Description |
|---|---|
| true | Upload successful |
| false | Upload failed |
Response Example:
{
"finish": true
}0x1D07 Controller Sends Requested Download File to Host Computer
Direction: Controller → Host Computer
Description: Transfer download file data
0x1D08 Host Computer Replies with Reception Result
Direction: Host Computer → Controller
0x1D09 Controller Notifies Host Computer That Download Is Complete
Direction: Controller → Host Computer
0x1D0A Host Computer Replies Confirming Successful Reception
Direction: Host Computer → Host Computer
Parameter List:
| Parameter | Type | Description |
|---|---|---|
| finish | bool | Whether the file was downloaded successfully |
finish Value Description:
| Value | Description |
|---|---|
| true | Download successful |
| false | Download failed |
Response Example:
{
"finish": true
}0x1D0B Download Connection Disconnected
Description: Disconnect the download connection
0x1D10 Host Computer Requests File Backup
Direction: Host Computer → Controller
0x1D11 Controller Replies to Backup Request
Direction: Controller → Host Computer
Parameter List:
| Parameter | Type | Description |
|---|---|---|
| answer | string | Backup file name in reply |
Response Example:
{
"answer": "controller.tar.gz"
}0x1D12 Host Computer Signals Log File Download Complete
Direction: Host Computer → Controller
0x1D13 Host Computer Signals ENI File Download Complete
Direction: Host Computer → Controller