Download Print this page

Mitsubishi MELSEC-F FX2NC Series User Manual page 4

Hide thumbs Also See for MELSEC-F FX2NC Series:

Advertisement

5.2.10 Terminal status [BFM #27]
Bit N0.
Signal Name
OFF (0)
ON (1)
b0
PRESET input
OFF
ON
b1
DISABLE input
OFF
ON
b2
YH output
OFF
ON
b 3
YS output
OFF
ON
b 4 ~ b15
Not available
5.2.11 Error status [BFM #29]
Bit N0.
Error Status
b0
Set when any of b1 to b7 is ON.
Set when the value of the ring length is written incorrectly.
b1
(Except K2 to K65,536)
Set when the preset value is written
b2
incorrectly.
When value ≥ ring length in
Set when the compare value is
b3
written incorrectly.
16-bit counter mode.
S et w hen the c urr ent v alue is
b4
written in correctly.
Set when the counter overflows the
b5
When the upper or lower limit
upper limit.
i s e x c e e d e d o n a 3 2 - b i t
Set when the counter overflows the
counter.
b6
lower limit.
b7
Set when the FROM/TO command is used incorrectly.
S e t w h e n t h e c o u n t e r m o d e
b8
Except K0 to K11
(BFM#0) is written incorrectly.
S et w h en t he B F M nu mb er i s
b9
Except K0 to K31
written incorrectly.
b10 ~ b15
Not available
Error status in the FX
-1HC can be checked by reading the contents of b0 to b9
2NC
of BFM #29 to auxiliary relays of the PLC.
There error flags can be reset by b8 of BFM #4.
M8000
FNC 78
K2
K29
K3M100
K1
FROM
5.2.12 Model identification code [BFM #30]
This BFM stores the identification number for FX
-1HC.
2NC
The identification number for the FX
-1HC unit is K4010.
2N
By reading this identification number, the user may create built-in checking
routines to check whether the physical position of the FX
-1HC matches to that
2NC
of the software.
6. Example Program
Please use the following program as a guide whenever you use the FX
unit. Other instructions to read the current value of the counter, status etc. can be
added as required.
M8002
FNC 79
K2
K0
K11
K1
TO
Initial
pulse
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.
FNC 79
K2
K2
K1234
K1
DTO
K1234 → BFM #3, #2 (special function block No.2)
The ring length can be specified when a 16-bit counter is specified.
FNC 79
K2
K1
K1
K1
TO
UP/DOWN direction should be specified for 1-phase 1-input
software determined UP/DOWN counter.
FNC 79
K2
K12
K1000
K1
DTO
K1000 → BFM #13, #12
Set the compare value for YH output.
FNC 79
K2
K14
DTO
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.
X010
M10
Count allowed
M8000
Output allowed,
M11
~
M13
Mutual reset
X011
M14
Preset allowed
X012
PLS
M18
Error flag reset
X013
PLS
M19
YH output reset
PLS
YS output reset
M20
M8000
FNC 79
K2
K4
K4M10
TO
RUN
monitor
(M25 to M10) → BFM #4 (b15 to b0) command
FNC 78
K2
K20
DFROM
BFM (#21, #20) → Reads the current value to the data registers D3 and D2.
7. Preliminary checks
1) Check that the I/O wiring and extension cable of the FX
connected.
2) The FX
-1HC occupies 8 points of I/O on the FX
2NC
The 8 points can be allocated from either inputs or outputs.
5V DC 90mA power is supplied from the main or extension power supply units
(FX
only) for the FX
-1HC. Check that there is no power overload from this
3UC
2NC
and other extension blocks.
3) The following derating curve shows the simultaneous ON ratio of available power
for products connected to the FX
-1HC with respect to the ambient
2N C
temperature.
Use the adjoined following product within the simultaneous input ON ratio range
-1HC
2NC
shown in the figure.
Target input extension block:FX
-16EX, FX
2NC
2NC
FX
-32EX, FX
2NC
2NC
Derating curve: FX
-16EX(-DS), FX
-32EX(-DS)
2NC
2NC
Simultaneous ON ratio
Supply voltage:24V DC
100%
60%
45°C
55°C Ambient temperature
4) 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.
Note
Note that inputting the pulse higher than the maximum frequency may cause mis-
counting to FX
-1HC or a FROM/TO error to the PLC main unit.
2NC
8. Diagnostics
STARTUP AND MAINTE-
NANCE PRECAUTIONS
K900
K1
• Do not disassemble or modify the PLC.
Doing so may cause fire, equipment failures, or malfunctions.
* For repair, contact your local Mitsubishi Electric distributor.
• Do not drop the product or exert strong impact to it.
Doing so may cause damage.
DISPOSAL
PRECAUTIONS
• Please contact a certified electronic waste disposal company for the
environmentally safe recycling and disposal of your device.
TRANSPORT AND STOR-
AGE PRECAUTIONS
• The product is a precision instrument. During transportation, avoid any impacts.
Failure to do so may cause failures in the product.
After transportation, verify the operations of the product.
1) The following LEDs on the main panel of the FX
troubleshoot the unit.
a) φA, φB:
Goes on/off as φA, φB input turn ON/OFF. It can be checked by rotating the
encoder slowly.
b) UP, DN:
Lights up to indicate whether the counter is going up (UP) or down (DN).
c) PR, DS:
The appropriate LED lights up when the PRESET (PR) terminal or the
DISABLE (DS) terminal is ON.
d) YH, YS:
The appropriate LED lights up when YH/YS output is turned on.
K1
2) You can check the error status by reading the content of BFM #29 to the PLC.
→ For error contents, refer to the Subsection 5.2.11
9. System Block Diagram
D2
K1
Counter mode
BFM #0
T0
Ring upper limit value
BFM #3, #2
DOWN/UP command
BFM #1
2NC
-1HC are properly
, FX
expansion bus.
2NC
3UC
ØB
Count pulse
ØA
DISABLE
Count start
BFM #4 b0
-16EX-DS,
-32EX-DS
ØZ
PRESET
BFM#4 b4
T0
Preset data
BFM#11, #10
T0
Direct initialization
Model code
BFM #30
This manual confers no industrial property rights or any rights of any other kind,
nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be
held responsible for any problems involving industrial property rights which may
occur as a result of using the contents noted in this manual.
Warranty
Mitsubishi will not be held liable for damage caused by factors found not to be
the cause of Mitsubishi; opportunity loss or lost profits caused by faults in the
Mitsubishi products; damage, secondary damage, accident compensation
caused by special factors unpredictable by Mitsubishi; damages to products
other than Mitsubishi products; and to other duties.
This product has been manufactured as a general-purpose part for general
industries, and has not been designed or manufactured to be incorporated in
a device or system used in purposes related to human life.
Before using the product for special purposes such as nuclear power, electric
power, aerospace, medicine or passenger movement vehicles, consult with
Mitsubishi Electric.
This product has been manufactured under strict quality control. However
when installing the product where major accidents or losses could occur if the
product fails, install appropriate backup or failsafe functions in the system.
-1HC may help you to
2NC
HEAD OFFICE
HIMEJI WORKS
Reset
Error status
BFM #4 b8
BFM #29
16-bit counter
for YH output
T0
Comparisor data
BFM #13, #12
BFM #4 b1
1-phase
1-input
counter
Matched
DOWN/UP
for YS output
T0
Comparision data
BFM #15, #14
Counter
BFM #4 b2
16/32-bit
1-phase/2-phase
Matched
*1
Initiali-
zation
Current value
register
Sampling cycle
BFM #21, #20
300µs
Compare results
BFM #26
Maximum value
Terminal status
BFM #23, #22
BFM #27
Minimum value
BFM #25, #24
For safe use
: TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310,
JAPAN
: 840, CHIYODA CHO, HIMEJI, JAPAN
BFM #4 b11
S
YH
BFM #4 b9
R
BFM #4 b3
BFM #4 b12
S
YS
R
BFM #4 b10
*1
Comparison is made at the next
sampling point after an input
count.

Advertisement

loading

This manual is also suitable for:

Melsec-f fx2nc-1hc