EasyManuals Logo

IDEC FC4A-C24R2 User Manual

IDEC FC4A-C24R2
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 #349 background imageLoading...
Page #349 background image
20: PULSE INSTRUCTIONS
« FC4A MICROSMART USERS MANUAL » 20-21
Sample Program: RAMP — Reversible Control Disabled
This program demonstrates a user program of the RAMP instruction to generate 10,000 pulses from output Q0.
Steady pulse frequency: 3,000 Hz
Initial pulse frequency: 1,000 Hz
Frequency change rate: 500 Hz / 10 ms
Reversible control enable: Reversible control disabled
Preset value: 10,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 × 30% = 3,000 Hz D1 (30)
S1+2 Initial pulse frequency 10,000 Hz × 10% = 1,000 Hz D2 (10)
S1+3 Frequency change rate 10,000 Hz × 5% = 500 Hz D3 (5)
S1+4 Reversible control enable Reversible control disabled D4 (0)
S1+5 Control direction Not used (no effect) D5
S1+6 Preset value (high word)
10,000
D6 (0)
S1+7 Preset value (low word) D7 (10000)
S1+8 Current value (high word)
0 to 10,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): 30 (10,000 Hz × 30% = 3,000 Hz)
D2 (initial pulse frequency): 10 (10,000 Hz × 10% = 1,000 Hz)
D3 (frequency change rate): 5 (10,000 Hz × 5% = 500 Hz)
D4 (reversible control enable): 0 (reversible control disabled)
D6 (preset value high word): 0
D7 (preset value low word): 10,000
When start input I0 is turned on, RAMP starts to generate 10,000 output
pulses.
I0
REPS1 –
1
MOV(W) D1 –
D0
REPS1 –
30
MOV(W)
D1 –
D1
REPS1 –
10
MOV(W) D1 –
D2
REPS1 –
5
MOV(W) D1 –
D3
REPS1 –
0
MOV(W) D1 –
D4
D1
M100
RAMP S1
D0
REPS1 –
0
MOV(W) D1 –
D6
REPS1 –
10000
MOV(W)
D1 –
D7

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

IDEC FC4A-C24R2 Specifications

General IconGeneral
BrandIDEC
ModelFC4A-C24R2
CategoryController
LanguageEnglish

Related product manuals