Skip to content

Fieldbus

CanOpen

0x7000 Upper Computer Queries CAN-Supported Functions of This Hardware

Command Word: 0x7000

Request Parameters:

ParameterTypeDescription
canPortUIntCAN port number
functionIntCAN-supported functions of this hardware, range [0,3]
0-Standard frame, 1-Extended frame, 2-Remote frame, 3-Filter ID

Request Example:

json
{
  "canPort": 1,
  "function": 0
}

0x7001 Controller Replies with CAN-Supported Function Query Result

Command Word: 0x7001

Response Parameters:

ParameterTypeDescription
canPortUIntCAN port number
supportBoolWhether the hardware CAN supports this function

Response Example:

json
{
  "canPort": 1,
  "support": true
}

0x7002 Upper Computer Sets CAN Parameters

Command Word: 0x7002

Request Parameters:

ParameterTypeDescription
canBaudUIntCAN communication baud rate
canPortUIntCAN communication port
enableRecvFiltertBoolWhether to enable filter ID
frameFormatIntFrame format, range [0,1]
0-Standard frame, 1-Extended frame
recvFilterIdUIntSet filter ID

Request Example:

json
{
  "canBaud": 115200,
  "canPort": 1,
  "enableRecvFiltert": true,
  "frameFormat": 0,
  "recvFilterId": 1
}

0x7003 Upper Computer Requests to Receive One CAN Frame

Command Word: 0x7003

Request Parameters:

ParameterTypeDescription
canPortUIntCAN communication port

Request Example:

json
{
  "canPort": 1
}

0x7004 Controller Replies with Received CAN Frame Data

Command Word: 0x7004

Response Parameters:

ParameterTypeDescription
canPortUIntCAN communication port
dataUChar[]Received data, length is the value of the Length field
LengthUIntReceived data length
recvCanIDUIntReceived frame ID

Response Example:

json
{
  "canPort": 1,
  "data": [10],
  "Length": 1,
  "recvCanID": 1
}

0x7005 Upper Computer Requests to Send One Frame of Data

Command Word: 0x7005

Request Parameters:

ParameterTypeDescription
canPortUIntCAN communication port
dataUChar[]Data to send
sendCanIDUIntFrame ID to send
sendLenUIntData length to send, range [1,8]
useRemoteFrameBoolWhether to use remote frame

Request Example:

json
{
  "canPort": 1,
  "data": [10],
  "sendCanID": 1,
  "sendLen": 1,
  "useRemoteFrame": true
}

ENI

0x7010 Upper Computer Queries ENI File List

Command Word: 0x7010

Request Parameters:

ParameterTypeDescription
numIntNumber of ENI files to retrieve, range [1,10]
1-Get currently used ENI file, 10-Get all ENI files

Request Example:

json
{
  "num": 10
}

0x7011 Controller Replies with ENI File List

Command Word: 0x7011

Response Parameters:

ParameterTypeDescription
ENIfilelistString[]Controller ENI file list
ENIfilenumIntNumber of ENI files
absolutepathStringFolder path of ENI files on the controller

Response Example:

json
{
  "ENIfilelist": [
    "INEXBOT-IO-R4-1.xml",
    "DST_X503-1.json",
    "DST_X503-1.xml",
    "KunWeiTech_FT_Sensors-1.xml",
    "P140000107-1.0.1.1-ECXML-1.xml"
  ],
  "ENIfilenum": 10,
  "absolutepath": "eni/"
}

0x7012 Upper Computer Queries ENI Parameters

Command Word: 0x7012

Request Parameters: (None)

json
{}

0x7013 Controller Replies with ENI Parameters

Command Word: 0x7013

Response Parameters:

ParameterTypeDescription
ENINameStringENI file name
isHaveENIIntENI file recognition result, range [-1,1]
-1-No ENI, 0-No corresponding ENI recognized, 1-ENI file recognized

Response Example:

json
{
  "ENIName": "eni-RC-6-mecat-1-1000.xml",
  "isHaveENI": 1
}

Slave List

0x7020 Upper Computer Queries Slave List

Command Word: 0x7020

Request Parameters: (None)

json
{}

0x7021 Controller Replies with Slave List

Command Word: 0x7021

Response Parameters:

ParameterTypeDescription
IONumInt[]IO slave list
servoNumInt[]Servo slave list
slaveTypeString[]Slave Chinese name list
slaveTypeEnglishString[]Slave English name list

Response Example:

json
{
  "IONum": [0, 0, 0, 0, 0, 0],
  "servoNum": [1, 2, 3, 4, 5, 6],
  "slaveType": ["hcfa_x3e", "hcfa_x3e", "hcfa_x3e", "hcfa_x3e", "hcfa_x3e", "hcfa_x3e"],
  "slaveTypeEnglish": ["hcfa_x3e", "hcfa_x3e", "hcfa_x3e", "hcfa_x3e", "hcfa_x3e", "hcfa_x3e"]
}

0x7022 Upper Computer Requests Controller to Switch System

Command Word: 0x7022

Request Parameters: (None)

json
{}