RMC150E UI/O Simulator

RMC150E UI/O cards can be used as a servo simulator. Each card can simulate two axes. This document outlines the procedure for setting up a UI/O card as a servo simulator.

Axis setup

  1. In the Axis Definitions create a new Axis
  2. Select Cascading Outer Loop as the axis type
  3. Select Single Control Loop, Position feedback
  4. For the Position Input, select Custom
  5. Click Finish to create the axis. Note that this axis does not use any hardware inputs or outputs.

Simulator Setup

  1. Open the Axis Tools
  2. On the Parameters side, switch to the All tab
  3. Set the System Gain, Natural Frequency, Damping factor and physical limits.
    sim01-simulator-setup.png
  4. Click the checkbox to enable simulate mode

Simulator Scaling

  1. In the Feedback section of the Axis Parameters, set the position scale.
    sim02-feedback-setup.png
  2. The maximum number of counts will be the positive physical limit divided by the position scale.
  3. In this example, 100 / 6e-6 = 16,666,667 which is slightly less than 2^24, the maximum number of counts for 24 bit SSI.

Set up the SSI Output

  1. In the Modules section of the Project Tree, right click on the UI/O card and click properties
  2. Switch to the Quad/SSI tab
  3. Change the Mode to SSI Output
  4. Under Output the Contents of the following Register, click Browse
  5. Select Axes->Outer0->Status->Feedback-Primary->Counts
  6. Set the SSI Data bits, Binary/Gray code, SSI Clock rate, output mode and termination

Create Reference Inputs

  1. In the Axis Definitions, create a new axis
  2. Select Reference Axis
  3. For the Feedback type, select Velocity
  4. From the Velocity Input drop down, select a UI/O analog input
  5. Click Finish to create the axis

Create the User Program

  1. A user program is necessary to get the voltage from the analog inputs to the simulator.
  2. Import the SimulateSSI program or create a new program with the following step:
  3. Set the program to run automaticall on all axes by adding it to the program triggers on the _FirstScan condition.
    sim05-program-triggers.png
  4. Set the controller to start in Run mode by right clicking on Programming and clicking Properties. On the Run/Program tab, select Start Controller in Run mode.
    sim06-run-mode.png

Download to the Controller

  1. From the Controller menu, select Download All To Controller
  2. From the Controller menu, select Update Flash
  3. Switch the controller into Run mode. The program will now start on all axes.

Monitoring Positions

  1. To check the Drive input, open the Axis Tools and select the All tab on the Status side
  2. Expand Feedback.
    sim07-monitor.png
  3. The drive input will be the Voltage (V) register on the Reference Axis
  4. The SSI Output will be the Counts (C) register on the simulator Outer Loop Axis.
  5. You can show a graphical view of the simlated axes by selecting Actuator View from the View menu.
    sim08-view.png
    SimulateSSI.rmcprog (2.01 KB)
    RMC150E UIO Simulator.pdf (244 KB)