Mitsubishi Electric MELSEC FX-1HC Скачать руководство пользователя страница 10

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

Содержание MELSEC FX-1HC

Страница 1: ...selected using commands from the PC Allow the FX 1HC unit to run only after setting these mode parameters The source of your input signal should be a 1 or 2 phase encoder A 5V 12V or 24V power source can be used An initial value setting command input PRESET and a count prohibit command input DISABLE are also available The FX 1HC has two output When the counter value coincides with an output compar...

Страница 2: ...48 73 2 87 14 13 125 4 92 140 5 51 12 10 0 39 95 3 74 DISABLE terminal M3 5 0 14 screws YH YS terminal M3 5 0 14 screws Extension cable and connector POWER LED φA φB terminal M3 5 0 14 screws PRESET terminal M3 5 0 14 screws UP LED φA LED φB LED DN Down LED PRESET LED Mounting hole 2 φ5 5 0 22 Attachment groove for 3 5 1 38 wide DIN rail DIN rail clip DIS DISABLE LED YH LED YS LED ...

Страница 3: ... Using the solderless termination Use crimp terminals of the dimensions specified in the left figure Secure the terminals using a tightening torque of 0 5 to 0 8 N m 5 to 8 kg cm Wire only to the module terminals discussed in this manual Leave all thers vacant 6 8 mm 0 27 inches or less 6 8 mm 0 27 inches or less Class 3 grounding 100 Ω Extension cable FX 1HC PC 24V 0V SG 24V 0V External power sou...

Страница 4: ...y Pulse shape Output signal Counting specifi cation Format Range Comparison Type Output capacity Automatic UP DOWN however when on 1 phase 1 input mode UP DOWN is determined by a PC command or an input terminal When 32 bit is specified 2 147 483 648 to 2 147 483 647 When 16 bit is specified 0 to 65 535 upper limit can be user specified DC 12V to 24V 0 5A 8 point taken from the FX FX2C expansion bu...

Страница 5: ...imits are fixed values the upper limit is 2 147 483 647 and the lower limit is 2 147 483 648 16 bit counter modes A 16 bit binary counter handles only positive values from 0 to 65 535 Changes to zero from the upper limit or to the upper limit from zero when overflow occurs the upper limit is determined by BFMs 3 and 2 Lower limit 2 147 483 648 Ring length BFM 3 2 2 147 483 647 Upper limit Default ...

Страница 6: ... K1 c d Phase A Phase B OFF ON ON OFF UP DOWN Current value UP DOWN is determined by input phase A ON OFF Software UP DOWN K10 K11 Phase B input Phase A input ON OFF ON OFF 1 2 3 3 3 2 1 0 Phase A input 1 at OFF ON Phase B input 1 at OFF ON If both phase A and phase B inputs are received simultaneously the counter value dose not change e Phase A Phase B Phase B input ON OFF while phase A input ON ...

Страница 7: ...t to ON YS output is reset When b11 is set to ON YH output is set ON When b12 is set to ON YS output is set ON Stores the data that specifies the length of the 16 bit counter default K65 536 In the above example K100 is written into BFMs 3 and 2 of special block No 2 as a 32 bit binary value BFM 3 0 BFM 2 100 Permitted values K2 to K65 536 K1 D TO K2 K2 K100 X002 3 BFM 4 Command When 1 ON Count pe...

Страница 8: ...1 20 The current value of the counter can be read by the PC It will not be the correct value during high speed operations because of the communication delay The current value of the counter can be forcibly changed by writing a 32 bit value into the appropriate BFMs from the PC 7 Maximum count value BFM 23 22 These store the maximum and minimum value reached by the counter If the power is turned of...

Страница 9: ...r limit Set when the counter overflows the lower limit When the upper or lower limit is exceeded on a 32 bit counter When value ring length in 16 bit counter mode Set when the FROM TO command is used incorrectly Undefined There error flags can be reset by b8 of BFM 4 11 Model identification code number BFM 30 The identification number for a Special Function Block is read by using the FROM command ...

Страница 10: ...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 er...

Страница 11: ...BFM 21 20 Minimum value BFM 25 24 Maximum value BFM 23 22 Comparisor data BFM 13 12 TO TO Comparison data BFM 15 14 1 Sampling cycle 300µs BFM 4 b1 BFM 4 b9 BFM 4 b2 BFM 4 b12 BFM 4 b11 BFM 4 b10 S R BFM 4 b3 YH YS S R Compare results BFM 26 Terminal status BFM 27 Matched Matched Error status BFM 29 for YH output Reset BFM 4 b8 for YS output φZ Initiali zation BFM 4 b4 TO Preset data BFM 11 10 Mod...

Страница 12: ...EMC If in doubt at any stage during the installation of the FX 1HC always consult a professional electrical engineer who is qualified and trained to the local and national standards If in doubt about the operation or use of the FX 1HC please consult the nearest Mitsubishi Electric distributor Under no circumstances will Mitsubishi Electric be liable or responsible for any consequential damage that...

Отзывы: