
FT1A S
MART
A
XIS
U
SER
’
S
M
ANUAL
FT9Y-B1382
15-3
15: R
EFRESH
I
NSTRUCTIONS
HSCRF (High-speed Counter Refresh)
Applicable CPU Modules
Example: HSCRF
The following example demonstrates a program to update the current value of high-speed counter HSC1 using the HSCRF
instruction. For the timer interrupt, see
page 5-36 (Basic Vol.)
.
When input is on, the HSCRF instruction refreshes the high-speed counter current values in special data registers in
real time.
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 page 5-7(Basic Vol.).
HSCRF
*
FT1A-12
FT1A-24
FT1A-40
FT1A-48
FT1A-Touch
X
X
X
X
X
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 D8050 and D8051.
When D8050/D8051 exceeds 150000, 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.
M8120
END
Main Program
M8125
REP
S1 –
0
D1 –
D8036
MOV(W)
M8125
M8125
IOREF
S1
Q1
LRET
LABEL
0
HSCRF
1
REP
S1 –
D8210
D1 –
Q1
CMP>(D)
S2 –
150000
Summary of Contents for microsmart pentra
Page 1: ...FT1A SERIES FC9Y B1382 Ladder Programming Manual ...
Page 6: ...Preface 5 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 104: ...7 DATA COMPARISON INSTRUCTIONS 7 10 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 122: ...8 BINARY ARITHMETIC INSTRUCTIONS 8 18 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 138: ...10 SHIFT ROTATE INSTRUCTIONS 10 12 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 162: ...11 DATA CONVERSION INSTRUCTIONS 11 24 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 188: ...12 CALENDAR COMPARISON INSTRUCTIONS 12 26 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 198: ...15 REFRESH INSTRUCTIONS 15 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 202: ...16 INTERRUPT CONTROL INSTRUCTIONS 16 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 266: ...20 DUAL TEACHING TIMER INSTRUCTIONS 20 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 318: ...25 USER COMMUNICATION INSTRUCTIONS 25 22 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...