Applications - Panasonic FP-M Hardware Manual

Table of Contents

Advertisement

3) Applications

Example 1: Position control
Program example
X0
X1
X2
X3
X4
X5
(DF)
R9010
X7
F1 DMV, DT 0, DT9104
F1 DMV, DT 2, DT9106
R9010
F0 MV, WR 0, DT9120
F0 MV, DT9121, WR 1
F1 DMV, DT9108, DT 4
X8
(DF)
1
F1 DMV, DT 6, DT9108
Time chart:
"Target value 0 = elapsed value" output
(high/low speed signal) *1
"Target value 1 = elapsed value" output
(start/stop signal) *1
The mode for the output transition is specified as ON → OFF.
*1
R0
R1
R2
R3
R4
R5
R7
1
Target value 1
Target value 0
Elapsed value
ON
Software reset
X2
OFF
ON
Target setting
X5
OFF
ON
OFF
ON
OFF
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.
7-5. High-speed Counter Board
159

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents