YaskawaEurope / mlx-examples

This repository contains the sources of the MotoLogix code examples. The rendered pages can be seen on the Yaskawa Motologix website.
https://motologix.yaskawa.eu.com/examples
MIT License
3 stars 0 forks source link

[Feature Request]: Allow execution of ActionID at start of motion #32

Open yeu-rioual opened 4 months ago

yeu-rioual commented 4 months ago

McePosTable version

0.2.0

Description of the new feature / enhancement

Currently, an ActionID stops the robot and trigger an action at the end of the motion. In some cases, it would be interesting to run an action in different circumstances:

Implementation

We could reserve several ActionID for type of action. But it could be a little difficult to manage.

Other possibility: We add a nActionStop variable to a McePosTable entry as SINT

nActionStop action type
0 Robot stop. Action run at the end of motion
1 No robot stop. Action run with a time delay
2 No robot stop. Action run with a distance delay

nActionDelay is also added.

nActionDelay delay type
0 Action run at the end of the motion without delay
>0 Time or distance after the beginning of motion
<0 Time or distance before the end of motion

Time or distance before the end of motion may be handled by MLxRobotSetDigitalOutputWithMot.

Scenario when this would be used?

In various pick & place or palletization application where vacuum needs to be triggered before pick position. Or simply a flag raised when the robot has reached a certain step in the trajectory.

yeu-degroot commented 3 months ago

Lets keep this simple (also to prevent confusion/overlap with path switching):