IDEC MicroSmart User Manual

Page 344

Advertising
background image

20: P

ULSE

I

NSTRUCTIONS

20-16

« FC4A M

ICRO

S

MART

U

SER

S

M

ANUAL

»

S1+5 Control Direction

When S1+4 is set to 1 or 2 to enable reversible control, the value stored in the data register designated by operand S1+5
specifies the control direction.

0: For ward

1: Reverse

S1+6 Preset Value (High Word)
S1+7 Preset Value (Low Word)

The RAMP instruction generates a predetermined number of output pulses as designated by operands S1+6 and S1+7. The
preset value can be 1 through 100,000,000 (05F5 E100h) stored in two consecutive data registers designated by S1+6
(high word) and S1+7 (low word).

S1+8 Current Value (High Word)
S1+9 Current Value (Low Word)

While the RAMP instruction is executed to generate output pulses from output Q0 or Q1, the output pulse count is stored
in two consecutive data registers designated by operands S1+8 (high word) and S1+9 (low word). The current value can be
1 through 100,000,000 (05F5 E100h) and is updated in every scan.

S1+10 Error Status

When the start input for the RAMP instruction is turned on, operand values are checked. When any error is found in the
operand values, the data register designated by operand S1+10 stores an error code.

Error Code

Operation Modes 0 through 2

Operation Mode 3

0

Normal

1

Operation mode designation error
(S1+0 stores other than 0 through 2)

Operation mode designation error
(S1+0 stores other than 0 through 3)

2

Initial pulse frequency designation error
(S1+2 stores other than 1 through 100)

Initial pulse frequency designation error
(S1+2 stores other than 10 through 20,000)

3

Preset value designation error
(S1+6 and S1+7 store other than 1 through
100,000,000)
The number of pulses for the frequency change
area calculated from the steady pulse frequency
(S1+1), initial pulse frequency (S1+2), and fre-
quency change rate (S1+3) is 0.

Preset value designation error
(S1+6 and S1+7 store other than 1 through
100,000,000)

4

Steady pulse frequency designation error
(S1+1 stores other than 1 through 100)

Steady pulse frequency designation error
(S1+1 stores other than 10 through 20,000)

5

Frequency change rate designation error
(S1+3 stores other than 1 through 100)

Frequency change time designation error
(S1+3 stores other than 10 through 10,000)

6

Reversible control enable designation error
(S1+4 stores other than 0 through 2)

7

Control direction designation error
(S1+5 stores other than 0 and 1)

8

The number of pulses for the frequency change areas calculated from the steady pulse frequency (S1+1),
initial pulse frequency (S1+2), and frequency change rate (S1+3) exceeds the preset value (S1+6/7) of the
total output pulses.
To correct this error, reduce the value of the steady pulse frequency (S1+1) or initial pulse frequency
(S1+2), or increase the frequency change rate (S1+3).

9

The initial pulse frequency (S1+2) is larger than the steady pulse frequency (S1+1).
Reduce the initial pulse frequency (S1+2) to a value smaller than the steady pulse frequency (S1+1).

10

The frequency change rate (S1+3) is larger than the
difference between the initial pulse frequency
(S1+2) and the steady pulse frequency (S1+1).
Reduce the frequency change rate (S1+3) or the ini-
tial pulse frequency (S1+2).

Advertising