7: B
ASIC
I
NSTRUCTIONS
7-12
« FC4A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
»
CUD (Up/Down Selection Reversible Counter)
The up/down selection reversible counter CUD has a selection input to switch the up/down gate, so that three inputs are
required. The circuit for an up/down selection reversible counter must be programmed in the following order: preset input,
pulse input, up/down selection input, the CUD instruction, and a counter number C0 through C99, followed by a counter
preset value from 0 to 65535.
The preset value can be designated using a decimal constant or a data register. When a data register is used, the data of the
data register becomes the preset value.
Ladder Diagram
I0
I1
CUD
C2
500
I2
Preset Input
Pulse Input
U/D Selection
I3
C2
Instruction
Data
LOD
LOD
LOD
CUD
LOD
AND
OUT
I0
I1
I2
C2
500
I3
C2
Q2
Program List
•
The same counter number cannot be pro-
grammed more than once.
•
The preset input must be turned on initially so
that the current value returns to the preset
value.
•
The preset input must be turned off before
counting may begin.
•
The up mode is selected when the up/down
selection input is on.
•
The down mode is selected when the up/
down selection input is off.
•
The counter output is on only when the cur-
rent value is 0.
•
After the current value reaches 0 (counting
down), it changes to 65535 on the next count
down.
•
After the current value reaches 65535 (count-
ing up), it changes to 0 on the next count up.
•
When power is off, the counter’s current
value is held, and can also be designated as
“clear” type counters using the Function Area
Settings (see page 5-4).
•
Counter preset and current values can be
changed using
WindLDR
without download-
ing the entire program to the CPU again.
From the
WindLDR
menu bar, select
Online
>
Monitor
, then select
Online
>
Point Write
.
To change a counter preset value, specify the
counter number with a capital C and a new
preset value. To change a counter current
value, specify the counter number with a
small c and a new current value while the
counter preset input is off.
•
When the preset or current value is changed
during counter operation, the change
becomes effective immediately.
•
For the data movement when changing, con-
firming, and clearing preset values, see page
7-13. Preset values can also be changed and
changed preset values can be confirmed using
the HMI module. See pages 5-35 and 5-36.
500 500
Preset Input I0
ON
OFF
Pulse Input I1
ON
OFF
U/D Selection
ON
OFF
Timing Chart
Counter C2
ON
OFF
500 501 502 501
Counter C2 Value
500 499
0
1
• • •
• • •
Q2
Valid Pulse Inputs
The reset or preset input has priority over the pulse input.
One scan after the reset or preset input has changed from on
to off, the counter starts counting the pulse inputs as they
change from off to on.
Reset/Preset
ON
OFF
Pulse
ON
OFF
More than one scan
time is required.
Valid
Invalid
Valid
Input I2
Caution
•
For restrictions on ladder programming
of counter instructions, see page 29-22.
Summary of Contents for FC4A-C10R2
Page 1: ...FC4A SERIES Micro Programmable Logic Controller User s Manual FC9Y B812 ...
Page 6: ...PREFACE 4 FC4A MICROSMART USER S MANUAL ...
Page 94: ...2 MODULE SPECIFICATIONS 2 74 FC4A MICROSMART USER S MANUAL ...
Page 184: ...6 ALLOCATION NUMBERS 6 20 FC4A MICROSMART USER S MANUAL ...
Page 218: ...8 ADVANCED INSTRUCTIONS 8 8 FC4A MICROSMART USER S MANUAL ...
Page 240: ...11 BINARY ARITHMETIC INSTRUCTIONS 11 8 FC4A MICROSMART USER S MANUAL ...
Page 244: ...12 BOOLEAN COMPUTATION INSTRUCTIONS 12 4 FC4A MICROSMART USER S MANUAL ...
Page 252: ...13 SHIFT ROTATE INSTRUCTIONS 13 8 FC4A MICROSMART USER S MANUAL ...
Page 274: ...15 WEEK PROGRAMMER INSTRUCTIONS 15 8 FC4A MICROSMART USER S MANUAL ...
Page 378: ...22 DUAL TEACHING TIMER INSTRUCTIONS 22 4 FC4A MICROSMART USER S MANUAL ...
Page 386: ...23 INTELLIGENT MODULE ACCESS INSTRUCTIONS 23 8 FC4A MICROSMART USER S MANUAL ...
Page 408: ...24 ANALOG I O CONTROL 24 22 FC4A MICROSMART USER S MANUAL ...
Page 426: ...26 COMPUTER LINK COMMUNICATION 26 6 FC4A MICROSMART USER S MANUAL ...