13:
P
ULSE
I
NSTRUCTIONS
FC5A
M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y
‐
B1273
13
‐
7
Sample
Program:
PULS1
This
program
demonstrates
a
user
program
of
the
PULS1
instruction
to
generate
5,000
pulses
at
a
frequency
of
200
Hz
from
output
Q0,
followed
by
60,000
pulses
at
a
frequency
of
500
Hz.
Programming
WindLDR
On
the
WindLDR
editing
screen,
place
the
cursor
where
you
want
to
insert
the
pulse
instruction
macro,
and
type
PULSST
.
Enter
parameters
as
shown
below.
Device
Settings
Device
Function
Description
Device
Address
(Value)
S1+0
Operation
mode
Frequency
range
200
Hz
to
100
kHz
D0
(3)
S1+1
Output
pulse
frequency
200
Hz
D1
(20)
S1+2
Pulse
counting
Enable
pulse
counting
D2
(1)
S1+3
Preset
value
(high
word)
5,000
D3/D4
(5000)
S1+4
Preset
value
(low
word)
S1+5
Current
value
(high
word)
0
to
60,000
D5/D6
S1+6
Current
value
(low
word)
Same
device
address
as
S1
for
the
PULS1
instruc
‐
tion
M8120
REP
S1
–
50
MOV(W)
D1
–
D1
M101
SOTU
M8120
is
the
initialize
pulse
special
internal
relay.
When
the
CPU
starts,
PULSST
macro
designates
parameters
for
pulse
output
in
the
first
stage.
Pulse
data
update
flag
M1
is
reset
(pulse
data
not
updated).
Pulse
output
complete
flag
M101
is
turned
off.
When
M101
is
turned
on,
two
MOV
instructions
store
second
‐
stage
parameters
to
data
registers
D1,
D3,
and
D4.
D1
(output
pulse
frequency):
50
(500
Hz)
D3/D4
(preset
value):
60,000
Pulse
data
update
flag
M1
is
set
(pulse
data
updated).
When
start
input
I0
is
turned
on,
PULS1
starts
to
generate
5,000
output
pulses
at
200Hz
in
the
first
stage.
Pulse
output
complete
M101
is
turned
off.
I0
SOTU
M1
S1
D0
PULSST
M1
S
M1
R
M101
R
REP
S1
–
60000
MOV(D)
D1
–
D3
M101
R
M101
D1
M100
PULS
1
S1
D0
Summary of Contents for MICROSmart FC5A Series
Page 1: ...FC5A SERIES FC9Y B1273 1 User s Manual Advanced Volume ...
Page 2: ......
Page 8: ...Preface 6 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 14: ...TABLE OF CONTENTS vi FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 52: ...4 DATA COMPARISON INSTRUCTIONS 4 10 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 72: ...5 Binary Arithmetic Instructions 5 20 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 88: ...7 SHIFT ROTATE INSTRUCTIONS 7 12 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 112: ...8 DATA CONVERSION INSTRUCTIONS 8 24 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 138: ...11 PROGRAM BRANCHING INSTRUCTIONS 11 14 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 178: ...13 PULSE INSTRUCTIONS 13 32 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 202: ...14 PID INSTRUCTION 14 24 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 206: ...15 DUAL TEACHING TIMER INSTRUCTIONS 15 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 214: ...16 INTELLIGENT MODULE ACCESS INSTRUCTIONS 16 8 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 248: ...21 COMPUTER LINK COMMUNICATION 21 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 272: ...23 MODBUS TCP COMMUNICATION 23 10 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 332: ...25 EXPANSION RS232C RS485 COMMUNICATION 25 16 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 341: ...NOTE FC5A MICROSMART USER S MANUAL FC9Y B1273 1 ...
Page 342: ...NOTE 2 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...