Mitsubishi FX1S Series Programming Manual page 197

Melsec-f
Hide thumbs Also See for FX1S Series:
Table of Contents

Advertisement

FX Series Programmable Controlers
Operation 3 - Combined HSZ and PLSY Operation: (Applicable units: FX
Operation 3 allows the HSZ and PLSY instructions to be used together as a control loop. This
operation is selected when the destination device (D) is assigned special M coil M8132. This
then allows devices (S
and (S
) as the number of records in the table - maximum number of records is 128. Each
2
record occupies 4 consecutive data registers (D through D
areas.
The first pair of data registers (D,D
the comparison value for use with the high
s p e e d c o u n t e r. T h e s e c o n d pa i r o f d a ta
registers (D
+2
1000) which represents an output frequency in
Hz. This value is loaded in to special data
register D8132 when the comparison made by
the DHSZ instruction gives a 'TRUE' output.
Special data register D8132 can be used as the
so u r ce d a ta f or a P L S Y (F N C 5 7 ) o ut p u t
enabling the output to be varied with relative
count data.
As with Operation 2 only one record in the data
table is active at any one time. The current
'Record number' being processed is stored in
data register D8131. To observe the current
comparative value, data registers D8134 and
D8135 should be monitored as a double word
(32 bit) device.
Once the final entry in the data table has been
processed, the operation complete flag M8133
is set ON and the record counter (D8131) cycles
back to the first record.
It is recommended that if the high speed counter
and PLSY operations form a closed loop that
the last record entry in the data table is set to K0
for the comparison value and K0 for the PLSY
output frequency. This will bring the controlled
system to a stop and the 'Record number '
counter will not be able to cycle back to the start
of the data table until the associated high speed
counter is reset by either pro-gram or hardware
methods. This situation can be easily monitored
by checking the paired data registers D8134
and D8135 for the '0' value.
It is recommended that the operation of the
PLSY instruction is delayed for 1 scan to allow
the DHSZ data table to be constructed on initial
operation. A suggested program using a pulsed
flag is shown in the example on this page.
, S
) to be used to define a data table using (S
1
2
,D
) contain a value (from 0 to
+3
) contain
+1
Record
number
[D8131]
0
1
2
3
4
M8000
X17
Applied Instructions 5
and FX
2N
) as the head address
1
) proportioned in to two 32 bit data
+3
Comparison value
Output Frequency
(lower/upper
register)
[D, D
]
+1
[D180, D181]
K40
[D184, D185]
K100
[D188, D189]
K400
[D192, D193]
K800
[D196, D197]
K0
DHSZ D180
K5
C251
PLS M10
M10
PLSY D8132 K0
C251 reset
800
400
100
40
D8131
0 1
1
1
2
2
2
3
3
3
600
550
100
40
PLSY Output Frequency in Hz
)
2NC
For PLSY
Instruction
[D
, D
]
+2
+3
[D182, D183]
K100
[D186, D187]
K600
[D190, D191]
K550
[D194, D195]
K40
[D198, D199]
K0
K9999
C251
M8132
Y7
4
5-77

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx1n seriesFx2nc seriesFx2n series

Table of Contents