Справочник Пользователя для Mitsubishi Electronics FX

Скачать
Страница из 382
FX Series Programmable Controlers
Applied Instructions 5
5-55
f) Because this instruction uses a series of
multiplexed signals it requires a certain amount of
‘hard wiring’ to operate. The example wiring
diagram to the right depicts the circuit used if the
previous example instruction was programmed. As
a general precaution to aid successful operation
diodes should be places after each input device
(see diagram opposite). These should have a
rating of 0.1A, 50V.
g) Example Operation
When output Y20 is ON only those inputs in the
first bank are read. These results are then stored;
in this example, auxiliary coils M30 to M37. The
second step involves Y20 going OFF and Y21
coming ON. This time only inputs in the second
bank are read. These results are stored in devices
M40 to M47. The last step of this example has Y21
going OFF and Y22 coming ON. This then allows all of the inputs in the third bank to be
read and stored in devices M50 to M57. The processing of this instruction example would
take 20 
× 
3 = 60msec.
5.6.4
HSCS (FNC 53)
Operation:
The HSCS set, compares the current value of the
selected high speed counter (S
2
)against a selected
value (S
1
). When the counters current value
changes to a value equal to S
1
the device specified
as the destination (D)is set ON.The example above shows that Y10 would be set ON only
when C255’s value stepped from 99-100 OR 101-100. If the counters current value was forced
to equal 100, output Y10 would NOT be set ON.
Points to note:
a) It is recommended that the drive input used for the high speed counter functions; HSCS,
HSCR, HSCZ is the special auxiliary RUN contact M8000.
Mnemonic
Function 
Operands
Program steps
S
1
S
2
n
HSCS
FNC 53
(
High 
speed
counter set)
Sets the selected
output when the
specified high
speed counter
value equals the
test value
K, H,
KnX, KnY, 
KnM, KnS,
T, C, D, V, Z
C
Note:
C = 235 to 254,
or available 
high speed 
counters
Y, M, S
Interrupt point-
ers
I010 to I060
can be set on
FX units from
 CPU ver 3.07
and F
X2C 
units
DHSCS:
13 steps
X10 X11 X12 X13 X14 X15 X16 X17
24V 0V S/S
Y22 Y23 Y24 Y25 Y26 Y27
+V Y20 Y21
3.
2.
1.
0,1 A
50 V
Diode
Input
devices
Transistor output unit
(source)
Notice how the resulting matrix-table does not use any of the 
P
8 and 
P
9 bit devices when
state S or auxiliary M relays are used as the storage medium.
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
M8000
C255 Y10
[ S1 ] [ S2 ]
K100
[ D ]
DHSCS