xPC Target    

PC-12SD (PC-77SD1) Synchro/Resolver

Scaling Input to Output

Hardware Input
Block Input Data Type
Scaling
Synchro or Resolver
double
angle in rad, velocity in rps

Driver Block Parameters

Channel vector -- Enter numbers between 1 and 12 to select the Synchro/Resolver (S/D) channels you use with this block. The driver allows the selection of individual S/D channels in any order, but repeating channels is not allowed. For example, to use the first and second S/D channels, enter

Number channels beginning with 1 even if the board manufacturer starts numbering channels with 0.

Sensor type vector -- If the board code allows switching between Synchro or Resolver inputs, use this vector to define which type of sensor is attached to the corresponding channel. The vector his to have the same length as the Channel vector. Use a value 0 is to specify Resolver input, and a value 1 to specify Synchro input. If the board code stands for a static type of sensor, enter and empty vector ([ ]).

Ratio vector -- Enter numbers between 1 and 255 to define the ratio for each channel. This vector has to have the same length as the Channel vector. For single speed input, use a ratio value of 1. For double speed input the ratio depends on your sensor and application and can have a value between 2 and 255. In the case of double speed input, two channels are used to provide fine and coarse data.

Output format -- From the list, choose Angle, Angle-Status, Angle-Velocity, or Angle-Velocity-Status. This is the output format for each S/D channel and also the format for the output port of this block. The possible selections are:

The status signal returns information about test status, signal status and reference status for each S/D channel. All three statuses return binary information (0 is OK, 1 is FAILURE). The test status has weight 20, signal status has weight 21, and the reference status has weight /22.

For example, a status value of 5, means the test status is OK and both signal status and reference status are FAILURE.

Notice, if you do not provide a Reference Vector by entering an empty matrix, the reference status is not returned. See the board manual for more information about statuses.

Velocity scaling vector -- Enter a scale factor for defining the maximum rotations/second (rps) for each S/D channel. You need to enter a value to read velocity information. This vector has to have the same length as the Channel vector. The values entered here define the maximum revolutions/second and affect the accuracy of the velocity readings. Choose values to have the best accuracy.

Show input ports for dynamic velocity scaling -- Selecting this check box allows you to update the Velocity scaling vector at runtime.

If checked, the block shows the same number of input ports as output ports. That is, one port for each selected S/D channel. The signal width of each input port is 1. You can use the signal entering the corresponding input port to update the Velocity scaling vector. Even if you select this check box and you provide values to the input ports, you still have to enter a Velocity scaling vector. In this case, the Velocity scaling vector defined the initial values.

Reference vector -- If the board code includes the Reference Output option, you can use this vector to define the frequency and amplitude of the reference output. If you enter an empty matrix ([ ]), the reference output circuit is not accessed, even if the board is equipped with it.

To activate the reference output, you have to enter a row vector with two elements, where the first element defines the frequency in Hertz and the second element defines the output voltage in Volts.

Sample time - Enter the base sample time or a multiple of the base sample time. The sample time indicates the update rate of registration on the input (Duty Cycle)

Base address -Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter


  PC-12SD (PC-77SD1) Burr-Brown