IO
Status Indication
Note: The maximum port range is the current bound IO count; output mode range is [0,2], where 0 is 0, 1 is 1, 2 is blinking
Upper Computer Sets Status Indication Parameters
Command Word: 0x7100
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| outPut | array | Robot status indication parameter list, length 4 |
| outPut[].IOenable | int | Robot power-on status indication port |
| outPut[].IOenable_value | int | Robot power-on status output mode, range [0,2] |
| outPut[].continuable | int | Robot can-continue status indication port |
| outPut[].continuable_value | int | Robot can-continue status output mode, range [0,2] |
| outPut[].fault | int | Robot error status indication port |
| outPut[].faultIsFickler | int | Robot error status output mode, range [0,2] |
| outPut[].mainJobFirstLine | int | Robot main program first line status indication port |
| outPut[].mainJobFirstLine_value | int | Robot main program first line status output mode, range [0,2] |
| outPut[].pause | int | Robot pause status indication port |
| outPut[].pause_value | int | Robot pause status output mode, range [0,2] |
| outPut[].quickStopOut1 | int | Robot emergency stop 1 status indication port |
| outPut[].quickStopOut2 | int | Robot emergency stop 2 status indication port |
| outPut[].quickStopOutValue1 | int | Robot emergency stop 1 status output mode, range [0,2] |
| outPut[].quickStopOutValue2 | int | Robot emergency stop 2 status output mode, range [0,2] |
| outPut[].running | int | Robot running status indication port |
| outPut[].running_value | int | Robot running status output mode, range [0,2] |
| outPut[].stop | int | Robot stop status indication port |
| outPut[].stop_value | int | Robot stop status output mode, range [0,2] |
| outPut[].teachBoxStateOut | int | Teach pendant disconnected output port (only exists for robot 1) |
| outPut[].teachBoxStateOutValue | int | Teach pendant disconnected output mode, range [0,2] (only exists for robot 1) |
| remoteOut | int | Remote mode status indication port |
| remoteOut_value | int | Remote mode status output mode, range [0,2] |
| runOut | int | Motion mode status indication port |
| runOut_value | int | Motion mode status output mode, range [0,2] |
| startUp | int | Power-on status indication port |
| startUp_value | int | Power-on status output mode, range [0,2] |
| teachOut | int | Teach mode status indication port |
| teachOut_value | int | Teach mode status output mode, range [0,2] |
Request Example:
{
"outPut":
[
{
"IOenable":5,
"IOenable_value":1,
"continuable":8,
"continuable_value":1,
"fault":4,
"faultIsFickler":1,
"mainJobFirstLine":9,
"mainJobFirstLine_value":2,
"pause":2,
"pause_value":1,
"quickStopOut1":6,
"quickStopOut2":7,
"quickStopOutValue1":1,
"quickStopOutValue2":1,
"running":1,
"running_value":1,
"stop":3,
"stop_value":1,
"teachBoxStateOut":17,
"teachBoxStateOutValue":2
},
{
"IOenable":0,
"IOenable_value":1,
"continuable":0,
"continuable_value":1,
"fault":0,
"faultIsFickler":1,
"mainJobFirstLine":24,
"mainJobFirstLine_value":0,
"pause":0,
"pause_value":1,
"quickStopOut1":0,
"quickStopOut2":0,
"quickStopOutValue1":1,
"quickStopOutValue2":1,
"running":0,
"running_value":1,
"stop":0,
"stop_value":1
},
{
"IOenable":0,
"IOenable_value":1,
"continuable":0,
"continuable_value":1,
"fault":0,
"faultIsFickler":0,
"mainJobFirstLine":0,
"mainJobFirstLine_value":1,
"pause":0,
"pause_value":1,
"quickStopOut1":0,
"quickStopOut2":0,
"quickStopOutValue1":1,
"quickStopOutValue2":1,
"running":0,
"running_value":1,
"stop":0,
"stop_value":1
},
{
"IOenable":0,
"IOenable_value":1,
"continuable":0,
"continuable_value":1,
"fault":0,
"faultIsFickler":0,
"mainJobFirstLine":0,
"mainJobFirstLine_value":1,
"pause":0,
"pause_value":1,
"quickStopOut1":0,
"quickStopOut2":0,
"quickStopOutValue1":1,
"quickStopOutValue2":1,
"running":0,
"running_value":1,
"stop":0,
"stop_value":1
}
],
"remoteOut":19,
"remoteOut_value":2,
"runOut":20,
"runOut_value":2,
"startUp":18,
"startUp_value":0,
"teachOut":21,
"teachOut_value":2
}Upper Computer Queries Status Indication Parameters
Command Word: 0x7101
Request Example:
{}Controller Replies with Status Indication Parameters
Command Word: 0x7102
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| outPut | array | Robot status indication parameter list, length 4 |
| remoteOut | int | Remote mode status indication port |
| remoteOut_value | int | Remote mode status output mode, range [0,2] |
| runOut | int | Motion mode status indication port |
| runOut_value | int | Motion mode status output mode, range [0,2] |
| startUp | int | Power-on status indication port |
| startUp_value | int | Power-on status output mode, range [0,2] |
| teachOut | int | Teach mode status indication port |
| teachOut_value | int | Teach mode status output mode, range [0,2] |
Response Example:
{
"outPut":
[
{
"IOenable":5,
"IOenable_value":1,
"continuable":8,
"continuable_value":1,
"fault":4,
"faultIsFickler":1,
"mainJobFirstLine":9,
"mainJobFirstLine_value":2,
"pause":2,
"pause_value":1,
"quickStopOut1":6,
"quickStopOut2":7,
"quickStopOutValue1":1,
"quickStopOutValue2":1,
"running":1,
"running_value":1,
"stop":3,
"stop_value":1,
"teachBoxStateOut":17,
"teachBoxStateOutValue":2
},
{
"IOenable":0,
"IOenable_value":1,
"continuable":0,
"continuable_value":1,
"fault":0,
"faultIsFickler":1,
"mainJobFirstLine":24,
"mainJobFirstLine_value":0,
"pause":0,
"pause_value":1,
"quickStopOut1":0,
"quickStopOut2":0,
"quickStopOutValue1":1,
"quickStopOutValue2":1,
"running":0,
"running_value":1,
"stop":0,
"stop_value":1
},
{
"IOenable":0,
"IOenable_value":1,
"continuable":0,
"continuable_value":1,
"fault":0,
"faultIsFickler":0,
"mainJobFirstLine":0,
"mainJobFirstLine_value":1,
"pause":0,
"pause_value":1,
"quickStopOut1":0,
"quickStopOut2":0,
"quickStopOutValue1":1,
"quickStopOutValue2":1,
"running":0,
"running_value":1,
"stop":0,
"stop_value":1
},
{
"IOenable":0,
"IOenable_value":1,
"continuable":0,
"continuable_value":1,
"fault":0,
"faultIsFickler":0,
"mainJobFirstLine":0,
"mainJobFirstLine_value":1,
"pause":0,
"pause_value":1,
"quickStopOut1":0,
"quickStopOut2":0,
"quickStopOutValue1":1,
"quickStopOutValue2":1,
"running":0,
"running_value":1,
"stop":0,
"stop_value":1
}
],
"remoteOut":19,
"remoteOut_value":2,
"runOut":20,
"runOut_value":2,
"startUp":18,
"startUp_value":0,
"teachOut":21,
"teachOut_value":2
}IO Reset
Note: The "enable" and "value" fields both have length 128; the actual valid data is the current total IO port count; the excess defaults to 0
Upper Computer Sets IO Reset Parameters
Command Word: 0x7110
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| enable | array | Whether to reset; bool type, length 128 |
| robot | int | Robot number to set, range [1,4] |
| type | int | Reset type to set, range [1,3] 1: Remote IO reset 2: Mode switch stop 3: Program error |
| value | array | Output port reset value; int type, range [0,1], length 128 |
Request Example:
{
"enable":[0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
"robot":1,
"type":1,
"value":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
}Upper Computer Queries IO Reset Parameters
Command Word: 0x7111
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| robot | int | Robot number to query, range [1,4] |
| type | int | Reset type to query, range [1,3] 1: Remote IO reset 2: Mode switch stop 3: Program error |
Request Example:
{
"robot":1,
"type":1
}Controller Replies with IO Reset Parameters
Command Word: 0x7112
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| enable | array | Whether to reset; bool type, length 128 |
| robot | int | Robot number, range [1,4] |
| type | int | Reset type, range [1,3] 1: Remote IO reset 2: Mode switch stop 3: Program error |
| value | array | Output port reset value; int type, range [0,1], length 128 |
Response Example:
{
"enable":[0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
"robot":1,
"type":1,
"value":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
}IO Function Status
Upper Computer Queries IO Function Status
Command Word: 0x7120
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| type | int | IO status type, range [1,4] 1: Digital input 2: Digital output 3: Analog input 4: Analog output |
Request Example:
{
"type":1
}Controller Replies with IO Function Status
Command Word: 0x7121
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| IOFunction | array | IO function list; string type, length is the current IO port count |
| type | int | IO status type, range [1,4] 1: Digital input 2: Digital output 3: Analog input 4: Analog output |
Response Example:
{
"IOFunction":["","","","","Drag:Drag teaching external trigger signal ","","","",
"","","","","","Enable hardwired port 1 ","Safety:Robot1 emergency stop1 Safety:Robot2 emergency stop1 ","",
"Remote:Robot1 start Remote:Robot1 program1 select ","","","","","","",
"","","","","","","",""],
"type":1
}IO Configuration
Note: Serial analog IO parameters (if EtherCAT IO board has analog IO, this serial analog IO will be invalid)
Upper Computer Sets IO Configuration Parameters
Command Word: 0x7130
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| serialAnalog | object | Serial analog parameters |
| serialAnalog.baudRate | int | Baud rate |
| serialAnalog.port | int | Port number, range (0,65535] |
| serialAnalog.type | string | Analog type "DAC_ANAIO": DAC analog IO board "SUPER_ANAIO": GeKong analog IO board |
| simuNum | int | Virtual IO count, range [0,4] |
Request Example:
{
"serialAnalog":
{
"baudRate":115200,
"port":2,
"type":"SUPER_ANAIO"
},
"simuNum":2
}Upper Computer Queries IO Configuration Parameters
Command Word: 0x7131
Request Example:
{}Controller Replies with IO Configuration Parameters
Command Word: 0x7132
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| num | int | IO count (total count including physical IO and virtual IO) |
| portNum | array | 2D array of each IO port count; int type First dimension is IO number, second dimension is in order: digital input port count, digital output port count, analog input port count, analog output port count |
| serialAnalog | object | Serial analog parameters |
| serialAnalog.baudRate | int | Baud rate |
| serialAnalog.port | int | Port number, range (0,65535] |
| serialAnalog.type | string | Analog type |
| simuNum | int | Virtual IO count, range [0,4] |
| type | array | Connected IO board model list; string type |
Response Example:
{
"num":2,
"portNum":
[
[16,16,2,2],
[16,16,2,2]
],
"serialAnalog":
{
"baudRate":115200,
"port":2,
"type":"SUPER_ANAIO"
},
"simuNum":2,
"type":["Virtual IO","Virtual IO"]
}Safety Settings
Upper Computer Sets Safety Settings Parameters
Command Word: 0x7140
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| quickStop | object | Emergency stop parameters |
| quickStop.enable | bool | Emergency stop enable |
| quickStop.port1 | int | Emergency stop 1 digital input port |
| quickStop.port2 | int | Emergency stop 2 digital input port |
| quickStop.shieldFlag1 | bool | Shield emergency stop 1 |
| quickStop.shieldFlag2 | bool | Shield emergency stop 2 |
| quickStop.shieldTime | int | Shield emergency stop time, range [0,100000)s |
| quickStop.time | double | Quick stop time, range [50,200]ms |
| quickStop.value1 | int | Emergency stop 1 digital input parameter, range [0,1] |
| quickStop.value2 | int | Emergency stop 2 digital input parameter, range [0,1] |
| robot | int | Robot number to set, range [1,4] |
| safeScreen | object | Safety light curtain parameters |
| safeScreen.enable | bool | Safety light curtain enable |
| safeScreen.port1 | int | Safety light curtain 1 digital input port |
| safeScreen.port2 | int | Safety light curtain 2 digital input port |
| safeScreen.value1 | int | Safety light curtain 1 digital input parameter, range [0,1] |
| safeScreen.value2 | int | Safety light curtain 2 digital input parameter, range [0,1] |
Request Example:
{
"quickStop":
{
"enable":true,
"port1":15,
"port2":0,
"shieldFlag1":false,
"shieldFlag2":true,
"shieldTime":30,
"time":60.0,
"value1":1,
"value2":1
},
"robot":1,
"safeScreen":
{
"enable":true,
"port1":8,
"port2":0,
"value1":1,
"value2":1
}
}Upper Computer Queries Safety Settings Parameters
Command Word: 0x7141
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| robot | int | Robot number to query, range [1,4] |
Request Example:
{
"robot":1
}Controller Replies with Safety Settings Parameters
Command Word: 0x7142
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| quickStop | object | Emergency stop parameters |
| quickStop.enable | bool | Emergency stop enable |
| quickStop.port1 | int | Emergency stop 1 digital input port |
| quickStop.port2 | int | Emergency stop 2 digital input port |
| quickStop.shieldFlag1 | bool | Shield emergency stop 1 |
| quickStop.shieldFlag2 | bool | Shield emergency stop 2 |
| quickStop.shieldTime | int | Shield emergency stop time, range [0,100000)s |
| quickStop.time | double | Quick stop time, range [50,200]ms |
| quickStop.value1 | int | Emergency stop 1 digital input parameter, range [0,1] |
| quickStop.value2 | int | Emergency stop 2 digital input parameter, range [0,1] |
| robot | int | Robot number, range [1,4] |
| safeScreen | object | Safety light curtain parameters |
| safeScreen.enable | bool | Safety light curtain enable |
| safeScreen.port1 | int | Safety light curtain 1 digital input port |
| safeScreen.port2 | int | Safety light curtain 2 digital input port |
| safeScreen.value1 | int | Safety light curtain 1 digital input parameter, range [0,1] |
| safeScreen.value2 | int | Safety light curtain 2 digital input parameter, range [0,1] |
Response Example:
{
"quickStop":
{
"enable":true,
"port1":15,
"port2":0,
"shieldFlag1":false,
"shieldFlag2":true,
"shieldTime":30,
"time":60.0,
"value1":1,
"value2":1
},
"robot":1,
"safeScreen":
{
"enable":true,
"port1":8,
"port2":0,
"value1":1,
"value2":1
}
}Port Trigger Information
Note: When a port is triggered, the controller sends configured information to the upper computer for notification
Upper Computer Sets Digital Input Port Trigger Information
Command Word: 0x7150
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| enable | array | Message trigger enable; int type, range [0,1], length 32 |
| msg | array | Message triggered to send; string type, length 32 |
| msgType | array | Message trigger type; int type, range [0,2] 0: Message 1: Warning 2: Error, length 32 |
| value | array | Message trigger parameter; int type, range [0,1], length 32 |
Request Example:
{
"enable":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0],
"msg":["","","","","","","","","","","","","","","","","","","","","AAAAA","","","","","","","","","","",""],
"msgType":[0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2],
"value":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
}Upper Computer Queries Digital Input Port Trigger Information
Command Word: 0x7151
Request Example:
{}Controller Replies with Digital Input Trigger Information
Command Word: 0x7152
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| enable | array | Message trigger enable; int type, range [0,1], length 32 |
| msg | array | Message triggered to send; string type, length 32 |
| msgType | array | Message trigger type; int type, range [0,2] |
| value | array | Message trigger parameter; int type, range [0,1], length 32 |
Response Example:
{
"enable":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0],
"msg":["","","","","","","","","","","","","","","","","","","","","AAAAA","","","","","","","","","","",""],
"msgType":[0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2],
"value":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
}Upper Computer Sets Digital Output Port Trigger Information
Command Word: 0x7153
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| enable | array | Message trigger enable; int type, range [0,1], length 32 |
| msg | array | Message triggered to send; string type, length 32 |
| msgType | array | Message trigger type; int type, range [0,2] |
| value | array | Message trigger parameter; int type, range [0,1], length 32 |
Request Example:
{
"enable":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0],
"msg":["","","","","","","","","","","","","","","","","","","","","AAAAA","","","","","","","","","","",""],
"msgType":[0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2],
"value":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
}Upper Computer Queries Digital Output Port Trigger Information
Command Word: 0x7154
Request Example:
{}Controller Replies with Digital Output Trigger Information
Command Word: 0x7155
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| enable | array | Message trigger enable; int type, range [0,1], length 32 |
| msg | array | Message triggered to send; string type, length 32 |
| msgType | array | Message trigger type; int type, range [0,2] |
| value | array | Message trigger parameter; int type, range [0,1], length 32 |
Response Example:
{
"enable":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0],
"msg":["","","","","","","","","","","","","","","","","","","","","AAAAA","","","","","","","","","","",""],
"msgType":[0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,2,2,2,2,2,2,2,2,2,2,2],
"value":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
}Port Names
Note: Rename port names
Upper Computer Sets Digital Input Port Names
Command Word: 0x7160
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| name | array | Digital input port name list to set; string type |
Request Example:
{
"name":["AAA","","","","","","","","","","","","","BBB","","","","","","","","","","","","","","","","","",""]
}Upper Computer Queries Digital Input Port Names
Command Word: 0x7161
Request Example:
{}Controller Replies with Digital Input Port Names
Command Word: 0x7162
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| name | array | Set digital input port name list; string type |
Response Example:
{
"name":["AAA","","","","","","","","","","","","","BBB","","","","","","","","","","","","","","","","","",""]
}Upper Computer Sets Digital Output Port Names
Command Word: 0x7163
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| name | array | Digital output port name list to set; string type |
Request Example:
{
"name":["","","","","","VV","","","","","","","","","","","","","","","","","","","","","","","","","",""]
}Upper Computer Queries Digital Output Port Names
Command Word: 0x7164
Request Example:
{}Controller Replies with Digital Output Port Names
Command Word: 0x7165
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| name | array | Set digital output port name list; string type |
Response Example:
{
"name":["","","","","","VV","","","","","","","","","","","","","","","","","","","","","","","","","",""]
}Upper Computer Sets Analog Input Port Names
Command Word: 0x7166
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| name | array | Analog input port name list to set; string type |
Request Example:
{
"name":["","UY","",""]
}Upper Computer Queries Analog Input Port Names
Command Word: 0x7167
Request Example:
{}Controller Replies with Analog Input Port Names
Command Word: 0x7168
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| name | array | Set analog input port name list; string type |
Response Example:
{
"name":["","UY","",""]
}Upper Computer Sets Analog Output Port Names
Command Word: 0x7169
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| name | array | Analog output port name list to set; string type |
Request Example:
{
"name":["TY","","",""]
}Upper Computer Queries Analog Output Port Names
Command Word: 0x716A
Request Example:
{}Controller Replies with Analog Output Port Names
Command Word: 0x716B
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| name | array | Set analog output port name list; string type |
Response Example:
{
"name":["TY","","",""]
}Input/Output
Upper Computer Sets Digital Output Value
Command Word: 0x7180
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| port | int | Port number to set |
| status | int | Digital output value to set, range [0,2] 0: Output 0 1: Output 1 2: Toggle output value (e.g.: originally output 1, now output 0) |
Request Example:
{
"port":1,
"status":1
}Upper Computer Queries Digital Output Value
Command Word: 0x7181
Request Example:
{}Controller Replies with Digital Output Value
Command Word: 0x7182
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| status | array | Digital output status list; int type, range [0,1], length 32 |
Response Example:
{
"status":[0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0]
}Upper Computer Queries Digital Input Value
Command Word: 0x7183
Request Example:
{}Controller Replies with Digital Input Value
Command Word: 0x7184
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| status | array | Digital input status list; int type, range [0,1], length 32 |
Response Example:
{
"status":[0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0]
}Upper Computer Sets Analog Output Value
Command Word: 0x7185
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| port | int | Port number to set |
| value | double | Analog output value to set (this field value must be >= 0) |
Request Example:
{
"port":1,
"value":8.880
}Upper Computer Queries Analog Output Value
Command Word: 0x7186
Request Example:
{}Controller Replies with Analog Output Value
Command Word: 0x7187
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| value | array | Current analog output value; double type |
Response Example:
{
"value":[8.87939453125,0.0,0.0,0.0]
}Upper Computer Queries Analog Input Value
Command Word: 0x7188
Request Example:
{}Controller Replies with Analog Input Value
Command Word: 0x7189
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| value | array | Current analog input value; double type |
Response Example:
{
"value":[9.99755859375,0.0,0.0,0.0]
}Forced Input
Upper Computer Sets Forced Digital Input
Command Word: 0x7190
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| enable | int | Whether to force digital input, range [0,1] |
| port | int | Forced digital input port number |
| status | int | Forced digital input current value |
Request Example:
{
"enable":1,
"port":1,
"status":0
}Upper Computer Queries Forced Digital Input Port
Command Word: 0x7191
Request Example:
{}Controller Replies with Forced Digital Input Port
Command Word: 0x7192
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| port | array | Forced digital input port number; int type |
| status | array | Forced digital input value; int type |
Response Example:
{
"port":[2,6,12],
"status":[0,1,0]
}Upper Computer Sets Forced Analog Input
Command Word: 0x7193
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| enable | int | Whether to force analog input, range [0,1] |
| port | int | Forced analog input port number |
| status | double | Forced analog input current value (this field value must be >= 0) |
Request Example:
{
"enable":1,
"port":2,
"status":9.0
}Upper Computer Queries Forced Analog Input Port
Command Word: 0x7194
Request Example:
{}Controller Replies with Forced Analog Input Port
Command Word: 0x7195
Parameter Description:
| Parameter | Type | Description |
|---|---|---|
| port | array | Forced analog input port number; int type |
| status | array | Forced analog input value; double type |
Response Example:
{
"port":[1,2],
"status":[5.0,9.0]
}