Skip to content

Live PLC and Mechanisms in Embeds

Commercial

Included in the public demo Compare editions

rv-embed-pro extends the embed with a virtual PLC and mechanisms. A prepared model runs its Structured Text PLC programs and its mechanism kinematics, for example a delta robot, directly in the visitor’s browser. It simulates the model’s control logic; the embed does not connect to a physical PLC.

rv-embed-pro is included in the Commercial package. You build and host it yourself; realvirtual does not host customer embed endpoints.

In your Commercial workspace, run:

Terminal window
npm run build:embed-pro

Serve the complete dist-embed-pro/ directory. The published files contain the compiled runtime, WASM assets and third-party notices, without TypeScript source or sourcemaps.

If you host the build at /embed/pro/, load its entry instead of the Community rv-embed.js. The element and its attributes stay the same:

<script type="module" src="/embed/pro/rv-embed-pro.js"></script>
<rv-embed src="/models/machine.glb" look="studio" interactive="drag"
style="width: 100%; height: 420px"></rv-embed>

Use only one embed entry on a page. The PLC runtime loads only for models that contain a PLC program; a model without one never downloads it.