Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Implement SendHeartBeat for real-time connection in RW7.8 and later #165

Open
arjendeetman opened this issue Dec 21, 2023 · 0 comments
Labels
bug fix This needs to be fixed not started Nobody started working on this yet

Comments

@arjendeetman
Copy link
Member

Depending on controller version and configuration, a client that holds mastership must send a heartbeat to the controller to show presence during execution.

If the client does not send a heartbeat with a specified interval, execution will stop and the controller will go to motors off.
This functionality is availabe in RobotWare 7.8 and later and is controlled via the configuration instance SYS/MASTER_BOOL/HeartBeat:

  • If the parameter Select is true, a client that holds mastership must send heartbeats or program execution will stop.
  • The parameter Timeout corresponds to the maximum heartbeat interval.

This is required for standalone applications, but not for RobotStudio add-ins.

Heartbeat during program execution

Depending on controller version and configuration, a client that holds mastership must send a heartbeat to the controller to show presence during execution. This is done by calling SendHeartBeat() which is supported from RobotWare 7.8.

If the client does not send a heartbeat with a specified interval, execution will stop and the controller will go to motors off.

This functionality is controlled via the configuration instance SYS/MASTER_BOOL/HeartBeat:

  • If the parameter Select is true, a client that holds mastership must send heartbeats or program execution will stop.
  • The parameter Timeout corresponds to the maximum heartbeat interval. The default is 2000 ms.

More info here and here

@arjendeetman arjendeetman added bug fix This needs to be fixed not started Nobody started working on this yet labels Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix This needs to be fixed not started Nobody started working on this yet
Projects
None yet
Development

No branches or pull requests

1 participant