-
Notifications
You must be signed in to change notification settings - Fork 2
Beckhoffs ‐ simulate an instrument
Freddie Akeroyd edited this page Jun 30, 2024
·
1 revision
to simulate an instrument's beckhoff and make it virtual rather than driving physical motors etc. you need to:
- find the repo for that particular MCU within https://github.com/ISIS-Motion-Control
- clone it and checkout master, then
git submodule update --init
in the cloned directory - open up the solution in TwinCAT XAR
- change the
MCU_xxx
in the dropdown next to "solution" to<local>
there are a few things we need to disable in XAR in order to get this instance entirely virtual. these are:
(under the "solution" in the solution explorer)
license:
- in SYSTEM -> License remove any dongles (these are normally physical USB sticks)
- generate a "7 days trial license" from the top-level screen
i/o:
in I/O -> Devices
, disable all devices that show up by right-clicking and selecting "disable"
safety:
in SAFETY
, disable all safety instances
motion:
in MOTION -> NC - Task 1 SVB
go to Axes and then expand all axes, then go to Enc
and change the "type" to "Simulation encoder"
after doing all of this you should be able to build the solution from "build" and then hit activate(icon that looks like stairs) and run it locally.