Simpliq – ElmoMC SimplIQ Software Manual User Manual

Page 99

Advertising
background image

SimplIQ

Software Manual

Development Aids

MAN-SIMSW (Ver. 1.4)

7-3

The auxiliary encoder will read a simulated encoder signal with a speed of n counts/second.
The desired speed n may be positive or negative. The auxiliary encoder readout will connect
to the hardware again at the next power on or when you enter TW[35]=0.

Do not use TW[35]=n when the auxiliary encoder serves for feedback (UM=4) because

this result in control instability.

7.2.5 Applying Analog Inputs without Connecting to an

Analog Voltage Source

Using a simulated analog signal, you can test the response of the current or speed controller
to analog inputs, or you can test the response to any analog input.

You may define a sequence of analog input readouts that run cyclically from a value that
you define. The readout values are in the ZX[N] array. MP[1] and P[2] define the lowest
and the highest N values to use. TW[38]=n starts the sequence running as analog input,
starting with index n (or from MP[1] if n is out of the range [MP[1]…MP[2]]).

For example, to have the analog input see the sequence:
1,2,3,4, 1,2,3,4 1,2,3,4 . . .
you should program:
ZX[1]=1; ZX[2]=2; ZX[3]=3; ZX[4]=4; TW[38]=1;

The analog input readout will reconnect to the hardware at TW[38]=0, or at the next power
on.

A new ZX[N] sample is used every torque sampling time. Therefore, with UM=1, the analog
input for the previous sample sequence will be:
4,8,12,16, 4,8,12,16, 4,8,12,16 . . .

With UM=2, the analog input is averaged to yield a new reading every sampling time of the
speed controller, which is twice the sampling time of the torque controller.

At the speed controller input, the following sequence will be seen:
6,14, 6,14, . . . (6 is the mean of 4 and 8; and 14 is the mean of 12 and 16).

With UM=3, 4, 5, the analog input is averaged to yield a new reading every sampling time of
the position controller, which is four times the sampling time of the torque controller. At the
position controller input, the following sequence will b seen:
10,10 . . . (10 is the mean of 4, 8, 12 and 16).

Do not use TW[38]=n when the analog input serves for feedback (CA[23]=5) because

this may result in control instability.

Advertising