Skip to content

Data Upload

1. Data Transmission Switch

1.1 Upper Computer Sets Data Transmission Switch

Command: 0x7330

ParameterTypeDescription
enableboolData transmission switch
robotintCurrent robot number
json
{
  "enable": true,
  "robot": 1
}

1.2 Upper Computer Queries Data Transmission Switch

Command: 0x7331

ParameterTypeDescription
robotintCurrent robot number
json
{
  "robot": 1
}

1.3 Controller Replies with Data Transmission Switch

Command: 0x7332

ParameterTypeDescription
enableboolData transmission switch
robotintCurrent robot number
json
{
  "enable": false,
  "robot": 1
}

2. Data Upload Parameters

2.1 Upper Computer Sets Data Upload Parameters

Command: 0x7333

ParameterTypeRange/ValueDescription
dataCollectTimeint[0, 999999]sData collection cycle
dataUploadTimeint[0, 999999]sData upload cycle
fileSuffixstring"csv", "txt"File format
filepathstring-File path
passwordstring-Password
robotint[1, 4]Robot number
sendInfoFileFlagbool-Whether to send documentation file
serverIPstring-Server IP
serverPortint(0, 65535]Port number
uploadModestringDefault "FTP"Upload method
usernamestring-Username
json
{
  "dataCollectTime": 1.0,
  "dataUploadTime": 30.0,
  "fileSuffix": "csv",
  "filepath": "",
  "password": "",
  "robot": 1,
  "sendInfoFileFlag": false,
  "serverIP": "192.168.1.14",
  "serverPort": 21,
  "uploadMode": "FTP",
  "username": ""
}

2.2 Upper Computer Queries Data Upload Parameters

Command: 0x7334

ParameterTypeRangeDescription
robotint[1, 4]Robot number
json
{
  "robot": 1
}

2.3 Controller Replies with Data Upload Parameters

Command: 0x7335

ParameterTypeRange/ValueDescription
dataCollectTimeint[0, 999999]sData collection cycle
dataUploadTimeint[0, 999999]sData upload cycle
fileSuffixstring"csv", "txt"File format
filepathstring-File path
passwordstring-Password
robotint[1, 4]Robot number
sendInfoFileFlagbool-Whether to send documentation file
serverIPstring-Server IP
serverPortint(0, 65535]Port number
uploadModestringDefault "FTP"Upload method
usernamestring-Username
json
{
  "dataCollectTime": 1.0,
  "dataUploadTime": 30.0,
  "fileSuffix": "csv",
  "filepath": "",
  "password": "",
  "robot": 1,
  "sendInfoFileFlag": false,
  "serverIP": "192.168.1.14",
  "serverPort": 21,
  "uploadMode": "FTP",
  "username": ""
}

3. Data Format

Note: Upper computer setting and querying are performed in four iterations

3.1 Upper Computer Sets Data Format

Command: 0x7336

ParameterTypeRangeDescription
formatstring-Data format, format representation: Robot-R1_Year-Month-Day_Hour-Minute-Second, see data format for detailed description
robotint[1, 4]Current robot number
typeint[1, 4]Current format type being set

type Value Description:

ValueDescription
1Documentation file name
2Documentation file content
3Data file name
4Data file content
json
{
  "format": "Robot-R1_ $Y%-$m%-$d%_ $H%-$M%-$S%",
  "robot": 1,
  "type": 1
}

3.2 Upper Computer Queries Data Format

Command: 0x7337

ParameterTypeRangeDescription
robotint[1, 4]Current robot number
typeint[1, 4]Current format type being set
json
{
  "robot": 1,
  "type": 1
}

3.3 Controller Replies with Data Format

Command: 0x7338

ParameterTypeRangeDescription
formatstring-Data format, format representation: Robot-R1_Year-Month-Day_Hour-Minute-Second
robotint[1, 4]Current robot number
typeint[1, 4]Current format type being set
json
{
  "format": "Robot-R1_ $Y%-$m%-$d%_ $H%-$M%-$S%",
  "robot": 1,
  "type": 1
}