Overview
Section titled “Overview”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:
npm run build:embed-proServe the complete dist-embed-pro/ directory. The published files contain the
compiled runtime, WASM assets and third-party notices, without TypeScript source
or sourcemaps.
Use it on a page
Section titled “Use it on a page”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.