IDEC SmartAXIS FT9Z-1A01 User Manual page 123

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)
SOTU
M0
SOTD
M8120
Q2
Current value
Preset value 1=2,700
Reset value 0
Comparison output Q2
Note: In this example, Z-phase reset input is not used.
S1-
D1-
REP
1st scan
2700
D4
Store 2,700 in preset value 1 (D4, D5)
S1-
D1-
REP
Store 0 in the reset value (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)
M8031
2nd scan
Detect the falling edge of the initialize pulse, M0 and M8032 turn on
Initialize the current value with the reset value in the END processing
M0
after the 2nd scan is executed
M8032 (reset input) is a special internal relay that stores the reset
value (D8054, D8055) in the current value (D8050, D8051).
M8032
When the current value becomes 2,700 pulses, comparison
TIM
T0
output Q2 turns on
5
The timer starts and comparison output reset (M8030) turns on after
M8030
5 seconds
Perforation time: 0.5 seconds
S
A XI S P
/ L
M AR T
R O
I TE
U
'
M
FT9Y-B 1378
SER
S
ANUAL
5: S
F
P ECI AL
UN CTI ON S
2,700 pulses
5-31

Advertisement

Table of Contents
loading

Table of Contents