IDEC FC4A-C10R2 User Manual page 356

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

20: P
I
ULSE
NSTRUCTIONS
Sample Program: ZRN1
This program demonstrates a user program of the ZRN1 instruction used for zero-return operation to generate output
pulses of 3 kHz initial pulse frequency from output Q0 while input I1 is on. When deceleration input I3 is turned on, the
output pulse frequency reduces to the creep pulse frequency of 800 Hz. When deceleration input I3 is turned off, ZRN1
stops generating output pulses.
Initial pulse frequency:
Creep pulse frequency:
Deceleration input:
Operand Settings
Operand
S1+0
Initial operation mode
S1+1
Initial pulse frequency
S1+2
Creep operation mode
S1+3
Creep pulse frequency
S1+4
Error status
S2
Deceleration input
D1+0
Pulse output ON
D1+1
Pulse output complete
MOV(W)
S1 –
M8120
MOV(W)
S1 –
MOV(W)
S1 –
MOV(W)
S1 –
ZRN
1
I1
20-28
3,000 Hz
800 Hz
I3 (high-speed deceleration input)
Function
D1 –
REP
1
D0
D1 –
REP
30
D1
D1 –
REP
0
D2
D1 –
REP
80
D3
R
M100
R
M101
S1
S2
D1
D0
I3
M100
« FC4A M
Description
Frequency range 100 to 10,000 Hz
10,000 Hz × 30% = 3,000 Hz
Frequency range 10 to 1,000 Hz
1,000 Hz × 80% = 800 Hz
High-speed deceleration input
0: Pulse output OFF
1: Pulse output ON
0: Pulse output not complete
1: Pulse output complete
M8120 is the initialize pulse special internal relay.
When the CPU starts, four MOV(W) instructions store parameters to data
registers D0 through D3.
D0 (initial operation mode): 1 (100 to 10,000 Hz)
D1 (initial pulse frequency): 30 (10,000 Hz × 30% = 3,000 Hz)
D2 (creep operation mode): 0 (10 to 1,000 Hz)
D3 (creep pulse frequency): 80 (1,000 Hz × 80% = 800 Hz)
Pulse output ON flag M100 is turned off.
Pulse output complete flag M101 is turned off.
When start input I1 is turned on, ZRN1 starts to generate output pulses
from output Q0.
S
U
'
M
ICRO
MART
SER
S
ANUAL
Allocation No. (Value)
»
D0 (1)
D1 (30)
D2 (0)
D3 (80)
D4
I3
M100
M101

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents