
3) Applications
■
Example 1: Position control
Program example
Time chart:
Software reset
Elapsed value
ON
OFF
X2
“Target value 0 = elapsed value” output
(high/low speed signal)
*
1
ON
OFF
Target setting
ON
OFF
X5
ON
OFF
“Target value 1 = elapsed value” output
(start/stop signal)
*
1
Target value 1
Target value 0
*
1 The mode for the output transition is specified as ON
→
OFF.
X0
R0
X1
R1
X2
R2
X3
R3
X4
R4
X5
R5
F1 DMV, DT 0, DT9104
X7
F1 DMV, DT 2, DT9106
F0 MV, WR 0, DT9120
R9010
F0 MV, DT9121, WR 1
F1 DMV, DT9108, DT 4
X8
(DF)
(DF)
R9010
R7
By turning triggers X0 and X1 ON or OFF, the mode for
the output transition when the elapsed value becomes
equal to the target value is specified.
The software reset (elapsed value is reset) operates when
trigger X2 turns ON.
The external reset control is disabled when trigger X3 turns
ON.
The target = elapsed output control is disabled when
trigger X4 turns ON.
The target value for channel 0 and the mode for the output
transition are updated when trigger X5 turns ON.
The number system is binary.
When trigger X7 turns ON,
- Writing target value 0
Transfer the contents of DT0 and DT1 to DT9104 and
DT9105 for target value area 0.
- Writing target value 1
Transfer the contents of DT2 and DT3 to DT9106 and
DT9107 for target value area 1.
Since R9010 is always ON,
- Data for controlling the high-speed counter board is
updated every scan.
- The control status of the high-speed counter board stored
in DT9121 is monitored by word internal relay WR1.
- The elapsed value of board channel 0 stored in DT9108
and DT9109 is monitored by DT4 and DT5.
The elapsed value of channel 0 stored in DT9108 is
changed to the contents of DT6 and DT7 when trigger
X8 turns ON.
F1 DMV, DT 6, DT9108
1
1
159
7-5. High-speed Counter Board
Summary of Contents for FP-M Hardware
Page 1: ...FP M Hardware ACG M0045 1 94 12 FP M Hardware PROGRAMMABLE CONTROLLER ...
Page 44: ...36 ...
Page 118: ...110 ...
Page 267: ......
Page 268: ......