Skip to main content

dio_set_output

Skill class for ai.intrinsic.dio_set_output skill.

The dio_set_output skill is used to write digital values to a Digital Input/Output device. The skill user specifies one or more digital outputs to write when the skill is executed.

note

The skill does not block on writing the digital output values. Users should not depend on the values being set at the end of the skill execution.

Prerequisites

  • A real-time control service that controls the digital outputs.

  • The skill user must know the Block name of the relevant digital outputs to set. The Block name can be found in the I/O Mapping Panel of the realtime_control_service.

  • The skill user must know the index of the relevant digital outputs to set. The indices can be found in the I/O Mapping Panel of the realtime_control_service.

Usage Example

  1. Choose the desired Adio device from the list of available hardware devices. When the digital output is provided by a robot control box or EtherCAT, this is usually named robot_controller.

  2. Specify an array of DioOutputBlock, in which each entry consists of:

    • The block_name, which is the name of the Digital Input/Output block to which values will be written.
    • The indices, the indices to set within the Digital Input/Output block. Indices are 0-based. The maximum number of indices is 64, and the maximum allowed index is 63.
    • The values, the values to set within the Digital Input/Output block. values must have the same size as indices.

Parameters

dio_output_blocks

Capabilities

adio

Resource with capability Icon2AdioPart

Error Code

The skill does not have error codes yet