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_active | control_local_active | Selected owner |
|---|---|---|
| true | false | Profinet PLC |
| false | true | RobFlow browser session |
| false | false | No 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.
- Write
CLAIM_CONTROLtorobco_core_out.command.cmd_id, using the value in cmd_id Values. - Increment
robco_core_out.command.cmd_seqonce. - Wait for the matching
ack_seqand finallast_req_statusas described in the command handshake. - Require
DONEandcontrol_external_active = truebefore 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 transfer | Motion behavior |
|---|---|
| Browser / no owner -> PLC | Stop Robot motion, including active streaming. |
| PLC -> browser | Stop Robot motion, including active streaming. |
| Browser A -> browser B | Continue 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.