EasyManuals Logo

IDEC MICROSmart FC6A Series Ladder Programming Manual

IDEC MICROSmart FC6A Series
604 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 #281 background imageLoading...
Page #281 background image
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726 14-3
14: R
EFRESH
I
NSTRUCTIONS
HSCRF (High-speed Counter Refresh)
Example: HSCRF
The following example demonstrates a program that updates the current value of high-speed counter HSC1 using the HSCRF
instruction. For the timer interrupt, see Chapter 5 "Functions and Settings" - "Timer Interrupt" in the "FC6A Series MICROSmart
User’s Manual".
When the input is on, the current values of the high-speed counters (select from group 1 to group 6) allocated to
special data registers are updated to the latest values. (The group number of the selected high-speed counter is
displayed under the advanced instruction symbol.)
The current values of six high-speed counters HSC1 through HSC6 are usually updated in every scan. The HSCRF can
be used in any place in the ladder diagram where you want to read the updated high-speed counter current value.
For the high-speed counter function, see Chapter 5 "Functions and Settings" - "High-Speed Counter" in the "FC6A
Series MICROSmart User’s Manual".
HSCRF
*
M8120
END
Main Program
M8125
REPS1 –
0
D1 –
D8036
MOV(W)
M8125
M8125
IOREF S1
Q1
LRET
LABEL
0
HSCRF
1
REPS1 –
D8210
D1 –
Q1
CMP>(D) S2 –
150000
M8120 is the initialize pulse special internal relay.
D8036 stores 0 to designate jump destination label 0 for timer interrupt.
The interrupt program is separated from the main program by the END
instruction.
While the CPU is running, program execution jumps to label 0 repeatedly
at intervals selected in the Function Area Settings.
M8125 is the in-operation output special internal relay.
HSCRF updates the HSC1 current value in data registers D8210 and
D8211.
When D8210/D8211 exceeds 150,000, Q1 is turned on.
IOREF immediately writes the output Q1 internal memory status to actual
output Q1.
Each time the interrupt program is completed, program execution returns
to the main program at the address where timer interrupt occurred.

Table of Contents

Other manuals for IDEC MICROSmart FC6A Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IDEC MICROSmart FC6A Series and is the answer not in the manual?

IDEC MICROSmart FC6A Series Specifications

General IconGeneral
BrandIDEC
ModelMICROSmart FC6A Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals