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.
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 nameof the relevant digital outputs to set. TheBlock namecan be found in the I/O Mapping Panel of therealtime_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
-
Choose the desired
Adiodevice from the list of available hardware devices. When the digital output is provided by a robot control box or EtherCAT, this is usually namedrobot_controller. -
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.valuesmust have the same size asindices.
- The
Parameters
dio_output_blocks
Capabilities
adio
Resource with capability Icon2AdioPart
Error Code
The skill does not have error codes yet