Skip to content

Digital Input/Output

1. GPIO_DOUT_SET - Set Digital Output

Command Code: 0x3601

The teach pendant sends this command when setting DOUT.

Request Parameters

ParameterTypeRequiredDescription
portintYesPort number, starting from 1
statusintYesPort status: 0=low level, 1=high level

Request Example

json
{
  "port": 1,
  "status": 1
}

2. GPIO_DOUT_INQUIRE - Query Digital Output Status

Command Code: 0x3602

The teach pendant sends this command when querying DOUT status.

Request Parameters

None


3. GPIO_DOUT_RESPOND - Query Digital Output Status Response

Command Code: 0x3603

The controller returns this command after receiving the query request.

Response Parameters

ParameterTypeRequiredDescription
statusarrayYesStatus array for each output port

status Array Element Description:

ValueDescription
0Low level
1High level
-1No such port

Response Example

json
{
  "status": [0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, -1, -1, -1, -1]
}

4. GPIO_DIN_INQUIRE - Query Digital Input Status

Command Code: 0x3605

The teach pendant sends this command when querying DIN status.

Request Parameters

None


5. GPIO_DIN_RESPOND - Query Digital Input Status Response

Command Code: 0x3606

The controller returns this command after receiving the query request.

Response Parameters

ParameterTypeRequiredDescription
statusarrayYesStatus array for each input port

status Array Element Description:

ValueDescription
0Low level
1High level
-1No such port

Response Example

json
{
  "status": [0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, -1, -1, -1, -1]
}

6. ANALOG_OUT_SET - Set Analog Output

Command Code: 0x3607

The teach pendant sends this command when setting AOUT.

Request Parameters

ParameterTypeRequiredDescription
portintYesPort number, starting from 1
valuefloatYesPort voltage value (e.g., 1.33 means 1.33V)

Request Example

json
{
  "port": 1,
  "value": 1.33
}

7. ANALOG_OUT_INQUIRE - Query Analog Output Status

Command Code: 0x3608

The teach pendant sends this command when querying AOUT status.

Request Parameters

None


8. ANALOG_OUT_RESPOND - Query Analog Output Status Response

Command Code: 0x3609

The controller returns this command after receiving the query request.

Response Parameters

ParameterTypeRequiredDescription
valuearrayYesValue array for each analog output port

value Array Element Description:

ValueDescription
0Low level
1High level
-1No such port

Response Example

json
{
  "value": [0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, -1, -1, -1, -1]
}

9. ANALOG_IN_INQUIRE - Query Analog Input Status

Command Code: 0x360A

The teach pendant sends this command when querying AIN status.

Request Parameters

None


10. ANALOG_IN_RESPOND - Query Analog Input Status Response

Command Code: 0x360B

The controller returns this command after receiving the query request.

Response Parameters

ParameterTypeRequiredDescription
valuearrayYesValue array for each analog input port

value Array Element Description:

ValueDescription
0Low level
1High level
-1No such port

Response Example

json
{
  "value": [0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, -1, -1, -1, -1]
}

11. FORCE_DIN_SET - Set Forced Digital Input

Command Code: 0x360C

The teach pendant sends this command when setting forced digital input.

Request Parameters

ParameterTypeRequiredDescription
portintYesPort number
enableboolYesWhether to enable forced input
statusintYesSet port high/low level: 0=low level, 1=high level

Request Example

json
{
  "port": 1,
  "enable": true,
  "status": 0
}

12. FORCE_DIN_INQUIRE - Query Forced Digital Input Status

Command Code: 0x360D

The teach pendant sends this command when querying forced input status.

Request Parameters

None


13. FORCE_DIN_RESPOND - Query Forced Digital Input Status Response

Command Code: 0x360E

The controller returns this command after receiving the query request.

Response Parameters

ParameterTypeRequiredDescription
portintYesPort number
enableboolYesWhether to enable forced input
statusintYesSet port high/low level: 0=low level, 1=high level

Response Example

json
{
  "port": 1,
  "enable": true,
  "status": 0
}

14. FORCE_ANALOG_IN_SET - Set Forced Analog Input

Command Code: 0x3611

The teach pendant sends this command when setting forced analog input.

Request Parameters

ParameterTypeRequiredDescription
portintYesPort number
enableboolYesWhether to enable forced input
statusintYesSet port analog value

Request Example

json
{
  "port": 1,
  "enable": true,
  "status": 0
}

15. FORCE_ANALOG_IN_INQUIRE - Query Forced Analog Input Status

Command Code: 0x3612

The teach pendant sends this command when querying forced analog input status.

Request Parameters

None


16. FORCE_ANALOG_IN_RESPOND - Query Forced Analog Input Status Response

Command Code: 0x3613

The controller returns this command after receiving the query request.

Response Parameters

ParameterTypeRequiredDescription
portintYesPort number
enableboolYesWhether to enable forced input
statusintYesSet port analog value

Response Example

json
{
  "port": 1,
  "enable": true,
  "status": 0
}