3. Instruction Set

66.There is no limitation on the times of using this instruction in the program. However, only 4 instructions can be executed at the same scan time. When several pulse output instructions (PLSY, PWM, PLSR) use Y1 as the output device in the same scan cycle, PLC will execute pulse output according to the driven order of these instructions.

67.Set value falls out of the available range of operands will be automatically corrected with the min. or max available value.

Program Example:

68.When X0 = ON, PLSR performs pulse output on Y0 with a target speed of 1000Hz, output pulse number D10 and ramp up/down time of 3000ms. Ramp up process begins to increase 1000/20 Hz in every shift and every shift outputs D10/40 pulses for 3000/20 ms.

69.When X0 = OFF, the output stops immediately and starts from the count value in D1030, D1031 when PLSR is executed again.

70.Ramp up/down shifts for Y0, Y2: 20. Ramp up/down shifts for Y1, Y3: 10

X0

 

 

 

 

 

 

 

PLSR

K1000

D10

K3000

Y0

 

 

Pulse speed(Hz)

 

 

 

 

 

 

 

 

 

 

Target speed:1000 Hz

Frequency

 

 

 

 

20 20

 

 

increased/decreased

 

 

19

19

 

 

in every shift:

 

 

 

 

1000/20 Hz

 

 

 

...

 

...

 

 

 

 

 

 

 

 

 

 

7

Output pulses 7

 

 

 

 

6

 

 

6

 

 

 

5

20-shifts

 

20-shifts

5

 

 

4

 

 

 

 

4

 

 

3

 

16-bit instruction:1~32,767

 

3

 

2

 

 

2

 

 

32-bit instruction:1~2,147,483,647

 

1

 

1

 

 

 

 

 

 

Time(Sec)

Ramp up time

 

 

 

Ramp down time

 

 

 

 

 

 

3000ms

 

 

 

3000ms

 

 

Explanations on associated flags and registers:

71.Description on associated flags:

For M1029, M1030, M1102, M1103, M1078, M1079, M1104, M1105, M1538, M1539, M1540, M1541, M1347, M1348, M1524, M1525, please refer to PLSY instruction.

M1108: Y0 pulse output pause (ramp down). ON = pause, OFF = resume

M1109: Y1 pulse output pause (ramp down). ON = pause, OFF = resume

M1110: Y2 pulse output pause (ramp down). ON = pause, OFF = resume

M1111: Y3 pulse output pause (ramp down). ON = pause, OFF = resume

3 - 1 4 7

Page 263
Image 263
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Frequency Increased/decreased Every shift 1000/20 Hz