![Mitsubishi Electric MELSEC FX-1HC Скачать руководство пользователя страница 10](http://html.mh-extra.com/html/mitsubishi-electric/melsec-fx-1hc/melsec-fx-1hc_user-manual_239068010.webp)
5.2 Error checking
The following LEDs on the main panel of the FX-1HC may help you to troubleshoot the unit.
●
φ
A,
φ
B
Goes on/off as
φ
A,
φ
B input turn ON/OFF. It can be checked by rotating the encoder slowly.
●
UP, DN Lights up to indicate whether the counter is going up (UP) or down (DN).
●
PRESET and DIS : The appropriate LED lights up when the PRESET terminal or the DISABLE terminal
is ON.
●
YH, YS The appropriate LED lights up when YH/YS output is turned on.
You can check the error status by reading the content of BFM #29 to the PC. Error contents are shown in
section 3.3 (10).
:
:
:
4
EXAMPLE PROGRAM
5
DAIGNOSTICS
Please use the following program as a guide whenever you use the FX-1HC unit. Other instructions to
read the current value of the counter, status etc. can be added as required.
M8002
Initial
pulse
K2
K0
K11
K1
TO
X014
M8002
(D) TO
TO
(D) TO
(D) TO
K2
K2
K2
K2
K2
K1
K12
K14
K1234
K1
K1000
K900
K1
K1
K1
K1
1.
2.
3.
4.
5.
K11 is written into BFM #0 of special function block
No.2. The counter input is 16-bit 1-phase. Please
use a pulse command for this initialization.
K1234
→
BFM #3, #2 (special function block No.2)
The ring length can be specified when a
16-bit counter is specified.
UP/DOWN direction should be specified for 1-
phase 1-input software determined UP/DOWN
counter.
K1000
→
BFM #13, #12 Set the compare value
for YH output.
K900
→
BFM #15, #14 Set the compare value
for YS output (not necessary if only YH
output is used).
Note that counting only occurs if count prohibit is
OFF. Also, outputs will not be set from the counting
process at all if the relevant output prohibit are set
in the command register. Please reset the error
flags and YH/YS output before you start. The
mutual reset and preset initialization commands
can be used as required.
6.
(M25 to M10)
→
BFM #4 (b15 to b0) command
7.
K4M10
D2
K1
K1
K4
K20
M8000
RUN
monitor
8. BFM (#21, #20)
→
Reads the current value to the
data registers D3 and D2.
M18
K2
K2
M19 and M20
M10
M11
M14
PLS
PLS
TO
(D)FROM
M13
Count allowed
Output allowed
Mutual reset
Preset allowed
Error flag reset
YH YS output reset
5.1 Preliminary checks
(1) Check that the I/O wiring and extension cable of the FX-1HC are properly connected.
(2) 5V 70mA power is supplied from the base or extension units for the FX-1HC. Check that there is no
power overload from this and other extension blocks.
(3) The counter works correctly only when data such as the counter mode (set with a pulse command), the
TO command, the compare value, etc. are appropriately specified. Remember to initialize the count
(BFM #4 b0), preset (BFM #4 b4), and output (BFM #4 b2, b1) prohibits. Reset the YH/YS outputs
before you start.
X010
M8000
X011
X012
X013