How to use the Axis SimulationΒΆ

It is possible to use a simulated axis instead of a real drive.

The axis simulation can be used in the following use cases:

  • When the real drive is not available the simulation can be used to test all available motion functionalities to verify the application program.
  • The simulation can be used to create a virtual master axis and synchronize other axes to it.

The simulation is realized by the Function Block CMC_AXIS_SIMU_REAL or CMC_AXIS_SIMU_INT. Depending on the used version of the kernel Function Block the corresponding version of the simulation Function Block has to be used.

Homing will be possible if the limit-switches (data type CMC_AXIS_IO) are simulated also. This is not done by CMC_AXIS_SIMU but could be realized in the PLC program.

../_images/0fe7fc7e2c04fa010a33139000c16651

Example for Simulation

The drive velocity is simulated by PT1-Characteristic. The input T1 gives the time constant for this PT1 as multiple of the cycle time. All other properties are simulated according to the CMC_AXIS_CONTROL_PARAMETER.

Note

The value of the time behaviour from the axis simulation Function Block set by the input T1 has to be at least four times smaller than the value of the axis parameter CONTROL_TIME from the parameter Function Block.