Function Block (FB_RobCo_Controller)
RobCo provides a function block that is highly recommended to use. This function block ensures that the input and output Variables are synchronized with the RobFlow backend, such that consistent states are usable from both the RobFlow frontend and the PLC.
Overview of the .scl file
The file FB_RobCo_Controller.scl contains the source code for the main RobCo
Controller function block, written in Structured Control Language (SCL) — a
high-level language for PLC programming (similar to Pascal).
This function block implements the logic to exchange all input and output data between the PLC and the RobCo Robot via Profinet, and provides a template for user-defined application logic.
How you interact with it
All data handling to interact with the Robot should be done with the data block
instance (FB_RobCo_Controller_DB [DBx]). Here you can read and modify values. The
Controller instance handles the communication and takes care of data
synchronization automatically.
This is also the mechanism behind Profinet Variables: the auxiliary registers are exposed through the block as a named struct rather than as raw bytes.
Never touch the content of the .scl function block. Always add custom logic to
additional function blocks.
To get it into a project, see Import the Function Block.