EasyManuals Logo

IDEC FC4A-C16R2 User Manual

IDEC FC4A-C16R2
525 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #350 background imageLoading...
Page #350 background image
20: PULSE INSTRUCTIONS
20-22 « FC4A MICROSMART USERS MANUAL »
Sample Program: RAMP — Reversible Control with Single Pulse Output
This program demonstrates a user program of the RAMP instruction to generate 30,000 pulses from output Q0. Control
direction output Q1 turns off or on while input I1 is off or on to indicate the forward or reverse direction, respectively.
Steady pulse frequency: 5,000 Hz
Initial pulse frequency: 2,000 Hz
Frequency change rate: 100 Hz / 10 ms
Reversible control enable: Reversible control with single pulse output
Preset value: 30,000 pulses total
Operand Settings
Operand Function Description Allocation No. (Value)
S1+0 Operation mode Frequency range 100 to 10,000 Hz D0 (1)
S1+1 Steady pulse frequency 10,000 Hz × 50% = 5,000 Hz D1 (50)
S1+2 Initial pulse frequency 10,000 Hz × 20% = 2,000 Hz D2 (20)
S1+3 Frequency change rate 10,000 Hz × 1% = 100 Hz D3 (1)
S1+4 Reversible control enable Reversible control with single output D4 (1)
S1+5 Control direction 0 (forward) or 1 (reverse) D5 (0 or 1)
S1+6 Preset value (high word)
30,000
D6 (0)
S1+7 Preset value (low word) D7 (30000)
S1+8 Current value (high word)
0 to 30,000
D8
S1+9 Current value (low word) D9
S1+10 Error status D10
D1+0 Pulse output ON
0: Pulse output OFF
1: Pulse output ON
M100
D1+1 Pulse output complete
0: Pulse output not complete
1: Pulse output complete
M101
D1+2 Pulse output status
0: Steady pulse output
1: Changing output pulse frequency
M102
D1+3 Pulse output overflow
0: Overflow not occurred
1: Overflow occurred
M103
M8120
M8120 is the initialize pulse special internal relay.
When the CPU starts, seven MOV(W) instructions store parameters to
data registers D0 through D7.
D0 (operation mode): 1 (100 to 10,000 Hz)
D1 (steady pulse frequency): 50 (10,000 Hz × 50% = 5,000 Hz)
D2 (initial pulse frequency): 20 (10,000 Hz × 20% = 2,000 Hz)
D3 (frequency change rate): 1 (10,000 Hz × 1% = 100 Hz)
D4 (reversible control enable): 1 (reversible control with single output)
D6 (preset value high word): 0
D7 (preset value low word): 30,000
When input I1 is off, D5 (control direction) stores 0 (forward).
When input I1 is on, D5 (control direction) stores 1 (reverse).
When start input I0 is turned on, RAMP starts to generate 30,000 output
pulses.
I0
REPS1 –
1
MOV(W) D1 –
D0
REPS1 –
50
MOV(W)
D1 –
D1
REPS1 –
20
MOV(W) D1 –
D2
REPS1 –
1
MOV(W) D1 –
D3
REPS1 –
1
MOV(W)
D1 –
D4
D1
M100
RAMP S1
D0
REPS1 –
0
MOV(W) D1 –
D6
REPS1 –
30000
MOV(W)
D1 –
D7
REPS1 –
0
MOV(W) D1 –
D5
REPS1 –
1
MOV(W) D1 –
D5
I1
I1

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IDEC FC4A-C16R2 and is the answer not in the manual?

IDEC FC4A-C16R2 Specifications

General IconGeneral
BrandIDEC
ModelFC4A-C16R2
CategoryController
LanguageEnglish

Related product manuals