IDEC FT1A Series User Manual page 117

Hide thumbs Also See for FT1A Series:
Table of Contents

Advertisement

Program
M8120 (initialize pulse) is a special internal relay that turns on when the SmartAXIS runs.
MOV(D)
M8120
MOV(D)
MOV(W)
M0
M8120
S1-
D1-
REP
1st scan
1000
D4
Store 1,000 in preset value 1 (D4, D5)
S1-
D1-
REP
Store the reset value in D8054, D8055
0
D8054
S1-
D1-
REP
Store 1 in the next preset value number (D2)
1
D2
Turn off gate input (M8031)
M8031
Turn off M0
M0
3rd scan
Detect the rising edge of M0, turn on gate input (M8031)
Start high-speed counter counting in the END processing
M8031
after the 3rd scan is executed
2nd scan
Detect the falling edge of the initialize pulse, M0 and M8032 turn on
M0
Initialize the current value with the reset value in the END processing
after the 2nd scan is executed
M8032 (reset input) is a special internal relay that stores the preset
M8032
value (D8054, D8055) in the current value (D8050, D8051).
S
AXIS P
/L
MART
RO
ITE
U
'
M
FT9Y-B1378
SER
S
ANUAL
5: S
F
PECIAL
UNCTIONS
5-29

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents