FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
4-15
4: B
ASIC
I
NSTRUCTIONS
Counter Circuit
The preset value 0 through 65,535 can be designated using a data register D0 thorough D7999 or D10000 through D61999; then
the data of the data register becomes the preset value.
Directly after the CNT instruction, the OUT, OUTN, SET, RST, TML, TIM, TMH, or TMS instruction can be programmed.
Note:
For restrictions on ladder programming of counter instructions, see "Restriction on Ladder Programming" on page 4-33.
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, and
the counter starts counting the pulse inputs as they change from off to on.
• The reset input must be turned off before counting may begin.
• When power is off, the preset values that were changed are cleared and the original preset values are loaded.
• When power is off, the counter’s current value is held, and can also be designated as “clear” type counters using Function Area Settings (see
Chapter 5 "Memory Backup" in the "FC6A Series MICROSmart User’s Manual".).
• Counter preset and current values can be changed using WindLDR without downloading the entire program to the CPU again. From the
WindLDR menu bar, select
Online
>
Monitor
>
Monitor
, then
Online
>
Custom
>
New Custom Monitor
. Change the current value
while the counter reset input is off.
• When the preset or current value is changed during counter operation, the change becomes effective immediately.
• WindLDR ladder diagrams show CP (counter preset value) and CC (counter current value) in advanced instruction devices.
• For data movement when changing, confirming, and clearing preset values, see "Changing, Confirming, and Clearing Preset Values for Timers
and Counters" on page 4-19. Preset values can also be changed and confirmed using the LCD screen and pushbuttons.
• If used, a user program execution error will result, turning on special internal relay M8004 and the ERR LED on the FC6A Series MICROSmart.
For details about the user program execution errors, see "User Program Execution Errors" on page 3-10.
Counter Operation after Count out
CNT
C28
D5
I1
Reset
Pulse
I0
Q0
Ladder Diagram
LOD
LOD
CNT
OUT
I0
I1
C28
Q0
Instruction
Data
Program List
Reset/Preset
ON
OFF
Pulse
ON
OFF
More than one scan
time is required.
Valid
Invalid
Valid
Condition
Counter Output
When the counter has counted out, either the current value or preset
value is changed.
The counter maintains the counted out status.
Before the counter has counted out, the current value is changed to a
larger value than the preset.
The counter output is turned on.
The preset value is changed to 0.
The counter output is turned on without regard to the current value.
When the reset input is on, the preset value is changed to 0.
The counter output is not turned on.
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Page 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...