This paper presents an overview of the historical background of the virtual machine, containing a real control, a machine simulation and a 3D machine visualisation. This setup enables realistic system simulations, since the simulation input comes from a real control. The first known implementation of the virtual machine using xPC Target is described with an existing water jet cutting machine as an example. MathWorks products offer all necessary software for the presented setup, except the interface for the actual speed value from the simulated incremental encoder to the control. The unique xPC driver implementation, as a noninlined C-MEX S-Function, is presented at the end of this paper. The successful implementation of the virtual machine demonstrates the feasibility of the presented approach.
Koncepetet för den virtuella maskinen beskrivs och implementeras med hjälp av xPC Target. En vattenskärningsmaskin används som exempel för implementeringen.