Skip to main content
Version: v2

Single Point of Control (SPOC)

RobFlow grants command authority to at most one owner: a browser session or the Profinet PLC. Other browser sessions can observe the Robot, but only the current owner may issue motion commands. Cyclic IO exchange alone does not grant the PLC command authority.

Authority status​

The Core Input flags report the selected owner:

control_external_activecontrol_local_activeSelected owner
truefalseProfinet PLC
falsetrueRobFlow browser session
falsefalseNo owner / authority unavailable

Only issue ordinary PLC commands while control_external_active is true. The backend rejects them with REJECTED_UNAUTHORIZED otherwise, including STOP and ACK_ERROR. CLAIM_CONTROL is the exception: it must be callable before the PLC owns control. Ownership is independent of the Robot's safety and operating states; an authority flag does not bypass motion prerequisites or safety functions.

PLC takes control: CLAIM_CONTROL​

CLAIM_CONTROL transfers authority to the PLC when a browser or nobody holds it. It has no payload and requires only the mandatory Core Data submodule.

  1. Write CLAIM_CONTROL to robco_core_out.command.cmd_id, using the value in cmd_id Values.
  2. Increment robco_core_out.command.cmd_seq once.
  3. Wait for the matching ack_seq and final last_req_status as described in the command handshake.
  4. Require DONE and control_external_active = true before issuing another command. Authority status is published cyclically and may lag the result.

Taking control supersedes the browser owner and stops Robot motion through Robot.stop(). A claim while the PLC already owns control is rejected; do not send CLAIM_CONTROL repeatedly from every PLC scan. Failed claims must be handled through the normal result handshake.

Return control to a browser​

Disable Profinet control in the RobFlow browser interface. This grants authority directly to the requesting browser and calls Robot.stop(). The PLC can only claim control; CLAIM_CONTROL cannot release it or hand it to another owner. A normal browser control request cannot displace the PLC while Profinet control remains enabled.

Motion and streaming during a transfer​

Authority transferMotion behavior
Browser / no owner -> PLCStop Robot motion, including active streaming.
PLC -> browserStop Robot motion, including active streaming.
Browser A -> browser BContinue the current motion or stream; no stop solely due to this transfer.

The streaming interface is treated like a movement executed by a Flow. Robot.stop() stops it as well as Flow motion, so a transfer to PLC control terminates an active stream. A transfer does not automatically restart the stopped motion; the new owner must explicitly initiate subsequent motion. Streaming through another interface is independent of the PLC command interface; the available PLC commands are listed in cmd_id Values.

Backend restart​

PLC ownership is persisted and restored after a backend restart or Robot reboot; RobFlow reacquires its robot-control lease in the background. Browser session ownership is not restored. Restoration does not start motion. After reconnecting, recheck authority, Robot state and command results before sending motion commands.