0% found this document useful (0 votes)
76 views8 pages

User'S Guide: FX - 1Hc Special Function Block

The document describes the buffer memories (BFM) of a motor encoder. It lists 3 sentences: 1) The BFM number and default contents for the counter mode settings, command settings, ring length settings, command settings, preset data settings, YH compare value settings, YS compare value settings, counter current value settings, and maximum count value settings. 2) The BFM number and contents for the DOWN/UP command setting in 1-phase 1-input mode, with a default of K0. 3) The wiring diagram of the motor encoder showing the phases A, B, Z, with inputs and outputs connected to components like the FX2N-1HC programmable controller

Uploaded by

IGHORODJE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views8 pages

User'S Guide: FX - 1Hc Special Function Block

The document describes the buffer memories (BFM) of a motor encoder. It lists 3 sentences: 1) The BFM number and default contents for the counter mode settings, command settings, ring length settings, command settings, preset data settings, YH compare value settings, YS compare value settings, counter current value settings, and maximum count value settings. 2) The BFM number and contents for the DOWN/UP command setting in 1-phase 1-input mode, with a default of K0. 3) The wiring diagram of the motor encoder showing the phases A, B, Z, with inputs and outputs connected to components like the FX2N-1HC programmable controller

Uploaded by

IGHORODJE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

3.

3 Buffer memories (BFM)


2. WIRING
BFM number Contents
PNP output encoders #0 Counter mode K0 to K11 Default: K0
PNP output encoders #1 DOWN/UP command (1-phase 1-input mode) Default: K0
3.3k FX2N-1HC
Phase A Shielding Wire A24+
1.5k :source #3,#2 Ring length Upper/Lower Default: K65,536
OUT A12+
0.27k
ØA
A5 +
0.1k YH+
:sink Write #4 Command Default: K0
A -
B24+ 2.2kW *1 *1 #11,#10 Preset data Upper/Lower Default: K0
Phase B Shielding Wire YH-
OUT B12+
B5 +
#13,#12 YH compare value Upper/Lower Default: K32,767
ØB
B - #15,#14 YS compare value Upper/Lower Default: K32,767
12 to 24V inputtable
Phase Z Shielding Wire 1.5k
OUT XP24
0.5k YS+ #21,#20 Counter current value Upper/Lower Default: K0
PRESET XP 5
0.2k *1 Write / Read #23,#22 Maximum count value Upper/Lower Default: K0
COMP 2.2kW *1
FX2N-1HC SPECIAL FUNCTION BLOCK 12 to 24V YS-
#25,#24 Minimum count value Upper/Lower Default: K0
DISABLE Shielding Wire XD24 inputtaable
+24V COM
XD 5
USER’S GUIDE START
COMD
#26
#27
Compare results
Terminal status
Read
*1. " " is an external load #29 Error status
JY992D65401H connected with the out put.
*2. Connect the grounded terminal #30 Model identification code K4010
This manual contains text, diagrams and explanations which will guide the reader in the correct installation at the PLC side as required.
+24V 0V Extension 0V +24V #5-#9, #16-#19, #28, #31 are reserved.
and operation of the FX2N-1HC special function block and should be read and understood before attempting *2
cable
to install or use the unit. 1) BFM #0 Counter mode (K0 to K11), BFM #1 DOWN/UP command
Class 3
Further information can be found in the FX PROGRAMMING MANUAL and FX2N, FX2NC, FX3U, FX3UC External power source grounding
PLC Power supply for out put
SERIES HARDWARE MANUAL. DC5V,12V,24V (<100) load drive DC5 to 24V
Count modes 32 bits 16 bits The counter mode is selected form the
1 edge count K0 K1 PLC. As shown below, values between K0
2-phase input and K11 are written to buffer memory BFM
1. INTRODUCTION If using on NPN output encoder please take care to match the polarity of the terminals of the
(phase difference pulse)
2 edge count K2 K3 #0 form the PLC. When a value is written to
encoder to those of the FX2N-1HC. 4 edge count K4 K5 BFM #0 the contents of BFM #1 to BFM #31
The hardware high-speed counter block is a 2-phase 50 kHz high-speed counter. It is a special function
1-phase 2-input (add/subtract pulse) K6 K7 are reset to default values. When setting
block for the FX2N, FX2NC, FX3U, FX3UC series PLC. Differential-Line-Driver output encoders
this value use a TOP (pulsed) instruction
• FROM/TO instruction transfers the PLC data (i.e. parameters, comparing value and present value). Line driver output encoders FX2N-1HC When applying the Differential-Line-Driver encoder Hardware
K8 K9 use M8002 (initial pulse) to drive the TO
Shielding Wire
(AM26C31 or equivalent) to FX2N-1HC, connect the UP/DOWN
• The FX2N-1HC occupies 8 points of I/O on the FX2N, FX2NC, FX3U, FX3UC expansion bus. The 8 points LA A5+ 1-phase 1-input instruction.
can be allocated from either inputs or outputs. LAR A- encoder output with the 5V DC terminal as shown in Software A continuous command is not allowed.
K10 K11
• Differential-Line-Driver (AM26C31 or equivalent) and open collector output encoders are available for the left figure. UP/DOWN
FX2N-1HC. LB B5+
Connect other terminals as shown in the PNP output a) 32-bit counter modes
LBR B- +2,147,483,647
• The source of your input signal should be a 1 or 2 phase encoder. A 5V, 12V, or 24V power source can encoder figure above. A 32-bit binary counter which executes UP/DOWN counting will change Upper limit value
be used. An initial value setting command input (PRESET) and a count prohibit command input (DIS- from the lower limit value to the upper limit value or the upper limit value to
the lower limit value when overflow occurs. Both the upper and lower limit 0
ABLE) are also available.
• The FX2N-1HC has two outputs. When the counter value coincides with an output compare value, the
3. SPECIFICATIONS values are fixed values: the upper limit value is +2,147,483,647, and the
lower limit value is -2,147,483,648. Lower limit value
appropriate output is set ON. The output transistors are individually isolated to allow either sink or -2,147,483,648
3.1 General specifications b) 16-bit counter modes
source connection methods. A 16-bit binary counter handles only positive values from 0 to 65,535.
• Various counter modes, such as 1-phase or 2-phase, 16-bit or 32-bit modes, can be selected using Changes to zero from the upper limit value or to the upper limit value from 0
Perform the dielectric withstand voltage test between the GND terminal and all the other termi- zero when overflow occurs; the upper limit value is determined by BFMs #3 Ring length
commands from the PLC. Allow the FX2N-1HC unit to run only after setting these mode parameters. nals short-circuited. and #2. (BFM#3,#2)

1.1 External dimensions c) 1-phase 1-input counter (K8 to K11)


Mass (weight): Approx. 0.3 kg (0.66 lbs) Dimensions: mm (inches) Item Specification • Hardware UP/DOWN (K8, K9) • Software UP/DOWN (K10, K11)
Accessories: Self-adhesive labels special block number identification. General specifications (excluding the following) Same as those for the FX2N main unit
Phase A OFF ON BFM#1 K0 K1
87(3.43) 55(2.17) 55(2.17) Dielectric withstand voltage 500V AC, 1min (between all terminals and ground) ON ON
UP/DOWN is UP/DOWN is
4(0.16) 8
2 3.2 Performance specifications Phase B determined by Phase B determined by
OFF input phase A OFF the contents of
UP
3 1-phase input 2-phase input UP DOWN (ON/OFF). DOWN BFM #1, (K0/K1).
Current UP
Item Current
A12+ A - B12+
A12+ A - B12+

DOWN 4
value
A24+ A5+ B24+
A24+ A5+ B24+

øA 5 1 input 2 inputs 1 edge count 2 edge count 4 edge count value


øB
1 6 Phase A, Phase B [A24+],[B24+] :24V DC±10% 7mA or less d) 1-phase 2-input counter (K6, K7)
POWER
7
[A12+],[B12+] :12V DC±10% 7mA or less ON
Phase Phase A input-1
17 Signal level [A5+],[B5+] :3.0V to 5.5V DC 12.5mA or less A input OFF
B - XD5 COMD

at OFF→ON If both phase A and phase B inputs are received


90(3.54)
80(3.15)

11 PRESET, DISABLE [XP24],[XD24] :10.8V to 26.4V DC 15mA or less


B5+ XD24 XP24

[XP5],[XD5] :5V DC±10% 8mA or less simultaneously, the counter value does not change.
Phase ON Phase B input+1
(Selected by terminal connection) B input at OFF→ON
9 OFF 1 2 3 3 3 2 1 0
11 Input signal MAX. frequency 50 kHz 25 kHz 12.5kHz
COMP YH- YS-

e) 2-phase counter (K0 to K5)


FX2N-1HC

12
XP5 YH+ YS+

DIS
t1 t1 t1 :Rise/fall time is 3μs or less
PRE 13 t2 :ON/OFF pulse 6μs or more (at 50kHz) • 1 edge-count (K0, K1) • 2 edge-count (K2, K3)
16
YH 14 t2 t2 t3 :Phase difference between A and B is 3.5μs or
YS
15 Pulse shape t3
more (at 50kHz) Phase A Phase A
t3 PRESET(Z phase) input 100μs or more +1 +1 -1 -1 +1 +1 -1 -1
4(0.16) DISABLE (count prohibit) input 100μs or more
10 Phase B Phase B

1 Mounting hole 2-φ4.5 (0.18) Format Automatic UP/DOWN (however, when on 1-phase 1-input mode, UP/DOWN is Phase B input OFF Phase B input ON Phase B input OFF Phase B input ON
10 YH·YS terminal (M3 (0.12) screws) determined by a PLC command or an input terminal.) →ON while phase →OFF while phase →ON while phase →OFF while phase
2 Extension cable and connector 11 DISABLE terminal (M3 (0.12) screws) A input ON Count A input ON Count A input ON Count A input ON Count
3 UP LED DIS (DISABLE) LED When 32-bit is specified : -2,147,483,648 to +2,147,483,647
12 Range When 16-bit is specified : 0 to 65,535 (upper limit can be user specified)
up by 1. down by 1. up by 1. down by 1.
4 DN (Down) LED 13 PRESET LED
5 φA LED 14 YH LED Counting Each output is set when the present value of the counter matches with the • 4 edge-count (K4, K5)
6 φB LED 15 YS LED specification compare value (which is transferred from the PLC), and is switched OFF by a UP COUNT DOWN COUNT
7 POWER LED 16 DIN rail clip reset command from the PLC.
Comparison Phase A input Phase A input
8 φA, φB terminal (M3 (0.12) screws) 17 Attachment groove for 35 (1.38) wide DIN rail Type YH : Direct output processed by hardware. +1 +1 +1 +1
-1 -1 -1 -1
9 PRESET terminal (M3 (0.12) screws) YS : Software processed output with worst delay time of 300μs.
(Therefore, when the input frequency is 50 kHz, there is a worst case delay of Phase B input Phase B input
15 input pulses.)
<Using the solderless termination>
YH + :transistor output for YH output YH+
6.2mm • Use crimp terminals of the dimensions specified in the left figure. YH − :transistor output for YH output YS+
(0.24 inches) Types of
or less • Secure the terminals using a tightening torque of 0.5 to 0.8 N·m Output outputs YS + :transistor output for YS output
YH-
FOR M3 signal YS − :transistor output for YS output NPN
(0.12 inches) Do not tighten terminal screws with a torque outside the above- YS-
6.2mm mentioned range. Output capacity 5V to 24V DC 0.5A
(0.24 inches)
or less
Failure to do so may cause equipment failures or malfunctions.
I/O occupation 8 points taken from the FX2N expansion bus (can be either inputs or outputs)
• Wire only to the module terminals discussed in this manual.
Power from base 5V DC 90mA(Internal power supply from main unit or powered extension unit)
Leave all others vacant.
3.3 Buffer memories (BFM)
2. WIRING
BFM number Contents
PNP output encoders #0 Counter mode K0 to K11 Default: K0
PNP output encoders #1 DOWN/UP command (1-phase 1-input mode) Default: K0
3.3k FX2N-1HC
Phase A Shielding Wire A24+
1.5k :source #3,#2 Ring length Upper/Lower Default: K65,536
OUT A12+
0.27k
ØA
A5 +
0.1k YH+
:sink Write #4 Command Default: K0
A -
B24+ 2.2kW *1 *1 #11,#10 Preset data Upper/Lower Default: K0
Phase B Shielding Wire YH-
OUT B12+
B5 +
#13,#12 YH compare value Upper/Lower Default: K32,767
ØB
B - #15,#14 YS compare value Upper/Lower Default: K32,767
12 to 24V inputtable
Phase Z Shielding Wire 1.5k
OUT XP24
0.5k YS+ #21,#20 Counter current value Upper/Lower Default: K0
PRESET XP 5
0.2k *1 Write / Read #23,#22 Maximum count value Upper/Lower Default: K0
COMP 2.2kW *1
FX2N-1HC SPECIAL FUNCTION BLOCK 12 to 24V YS-
#25,#24 Minimum count value Upper/Lower Default: K0
DISABLE Shielding Wire XD24 inputtaable
+24V COM
XD 5
USER’S GUIDE START
COMD
#26
#27
Compare results
Terminal status
Read
*1. " " is an external load #29 Error status
JY992D65401H connected with the out put.
*2. Connect the grounded terminal #30 Model identification code K4010
This manual contains text, diagrams and explanations which will guide the reader in the correct installation at the PLC side as required.
+24V 0V Extension 0V +24V #5-#9, #16-#19, #28, #31 are reserved.
and operation of the FX2N-1HC special function block and should be read and understood before attempting *2
cable
to install or use the unit. 1) BFM #0 Counter mode (K0 to K11), BFM #1 DOWN/UP command
Class 3
Further information can be found in the FX PROGRAMMING MANUAL and FX2N, FX2NC, FX3U, FX3UC External power source grounding
PLC Power supply for out put
SERIES HARDWARE MANUAL. DC5V,12V,24V (<100) load drive DC5 to 24V
Count modes 32 bits 16 bits The counter mode is selected form the
1 edge count K0 K1 PLC. As shown below, values between K0
2-phase input and K11 are written to buffer memory BFM
1. INTRODUCTION If using on NPN output encoder please take care to match the polarity of the terminals of the
(phase difference pulse)
2 edge count K2 K3 #0 form the PLC. When a value is written to
encoder to those of the FX2N-1HC. 4 edge count K4 K5 BFM #0 the contents of BFM #1 to BFM #31
The hardware high-speed counter block is a 2-phase 50 kHz high-speed counter. It is a special function
1-phase 2-input (add/subtract pulse) K6 K7 are reset to default values. When setting
block for the FX2N, FX2NC, FX3U, FX3UC series PLC. Differential-Line-Driver output encoders
this value use a TOP (pulsed) instruction
• FROM/TO instruction transfers the PLC data (i.e. parameters, comparing value and present value). Line driver output encoders FX2N-1HC When applying the Differential-Line-Driver encoder Hardware
K8 K9 use M8002 (initial pulse) to drive the TO
Shielding Wire
(AM26C31 or equivalent) to FX2N-1HC, connect the UP/DOWN
• The FX2N-1HC occupies 8 points of I/O on the FX2N, FX2NC, FX3U, FX3UC expansion bus. The 8 points LA A5+ 1-phase 1-input instruction.
can be allocated from either inputs or outputs. LAR A- encoder output with the 5V DC terminal as shown in Software A continuous command is not allowed.
K10 K11
• Differential-Line-Driver (AM26C31 or equivalent) and open collector output encoders are available for the left figure. UP/DOWN
FX2N-1HC. LB B5+
Connect other terminals as shown in the PNP output a) 32-bit counter modes
LBR B- +2,147,483,647
• The source of your input signal should be a 1 or 2 phase encoder. A 5V, 12V, or 24V power source can encoder figure above. A 32-bit binary counter which executes UP/DOWN counting will change Upper limit value
be used. An initial value setting command input (PRESET) and a count prohibit command input (DIS- from the lower limit value to the upper limit value or the upper limit value to
the lower limit value when overflow occurs. Both the upper and lower limit 0
ABLE) are also available.
• The FX2N-1HC has two outputs. When the counter value coincides with an output compare value, the
3. SPECIFICATIONS values are fixed values: the upper limit value is +2,147,483,647, and the
lower limit value is -2,147,483,648. Lower limit value
appropriate output is set ON. The output transistors are individually isolated to allow either sink or -2,147,483,648
3.1 General specifications b) 16-bit counter modes
source connection methods. A 16-bit binary counter handles only positive values from 0 to 65,535.
• Various counter modes, such as 1-phase or 2-phase, 16-bit or 32-bit modes, can be selected using Changes to zero from the upper limit value or to the upper limit value from 0
Perform the dielectric withstand voltage test between the GND terminal and all the other termi- zero when overflow occurs; the upper limit value is determined by BFMs #3 Ring length
commands from the PLC. Allow the FX2N-1HC unit to run only after setting these mode parameters. nals short-circuited. and #2. (BFM#3,#2)

1.1 External dimensions c) 1-phase 1-input counter (K8 to K11)


Mass (weight): Approx. 0.3 kg (0.66 lbs) Dimensions: mm (inches) Item Specification • Hardware UP/DOWN (K8, K9) • Software UP/DOWN (K10, K11)
Accessories: Self-adhesive labels special block number identification. General specifications (excluding the following) Same as those for the FX2N main unit
Phase A OFF ON BFM#1 K0 K1
87(3.43) 55(2.17) 55(2.17) Dielectric withstand voltage 500V AC, 1min (between all terminals and ground) ON ON
UP/DOWN is UP/DOWN is
4(0.16) 8
2 3.2 Performance specifications Phase B determined by Phase B determined by
OFF input phase A OFF the contents of
UP
3 1-phase input 2-phase input UP DOWN (ON/OFF). DOWN BFM #1, (K0/K1).
Current UP
Item Current
A12+ A - B12+
A12+ A - B12+

DOWN 4
value
A24+ A5+ B24+
A24+ A5+ B24+

øA 5 1 input 2 inputs 1 edge count 2 edge count 4 edge count value


øB
1 6 Phase A, Phase B [A24+],[B24+] :24V DC±10% 7mA or less d) 1-phase 2-input counter (K6, K7)
POWER
7
[A12+],[B12+] :12V DC±10% 7mA or less ON
Phase Phase A input-1
17 Signal level [A5+],[B5+] :3.0V to 5.5V DC 12.5mA or less A input OFF
B - XD5 COMD

at OFF→ON If both phase A and phase B inputs are received


90(3.54)
80(3.15)

11 PRESET, DISABLE [XP24],[XD24] :10.8V to 26.4V DC 15mA or less


B5+ XD24 XP24

[XP5],[XD5] :5V DC±10% 8mA or less simultaneously, the counter value does not change.
Phase ON Phase B input+1
(Selected by terminal connection) B input at OFF→ON
9 OFF 1 2 3 3 3 2 1 0
11 Input signal MAX. frequency 50 kHz 25 kHz 12.5kHz
COMP YH- YS-

e) 2-phase counter (K0 to K5)


FX2N-1HC

12
XP5 YH+ YS+

DIS
t1 t1 t1 :Rise/fall time is 3μs or less
PRE 13 t2 :ON/OFF pulse 6μs or more (at 50kHz) • 1 edge-count (K0, K1) • 2 edge-count (K2, K3)
16
YH 14 t2 t2 t3 :Phase difference between A and B is 3.5μs or
YS
15 Pulse shape t3
more (at 50kHz) Phase A Phase A
t3 PRESET(Z phase) input 100μs or more +1 +1 -1 -1 +1 +1 -1 -1
4(0.16) DISABLE (count prohibit) input 100μs or more
10 Phase B Phase B

1 Mounting hole 2-φ4.5 (0.18) Format Automatic UP/DOWN (however, when on 1-phase 1-input mode, UP/DOWN is Phase B input OFF Phase B input ON Phase B input OFF Phase B input ON
10 YH·YS terminal (M3 (0.12) screws) determined by a PLC command or an input terminal.) →ON while phase →OFF while phase →ON while phase →OFF while phase
2 Extension cable and connector 11 DISABLE terminal (M3 (0.12) screws) A input ON Count A input ON Count A input ON Count A input ON Count
3 UP LED DIS (DISABLE) LED When 32-bit is specified : -2,147,483,648 to +2,147,483,647
12 Range When 16-bit is specified : 0 to 65,535 (upper limit can be user specified)
up by 1. down by 1. up by 1. down by 1.
4 DN (Down) LED 13 PRESET LED
5 φA LED 14 YH LED Counting Each output is set when the present value of the counter matches with the • 4 edge-count (K4, K5)
6 φB LED 15 YS LED specification compare value (which is transferred from the PLC), and is switched OFF by a UP COUNT DOWN COUNT
7 POWER LED 16 DIN rail clip reset command from the PLC.
Comparison Phase A input Phase A input
8 φA, φB terminal (M3 (0.12) screws) 17 Attachment groove for 35 (1.38) wide DIN rail Type YH : Direct output processed by hardware. +1 +1 +1 +1
-1 -1 -1 -1
9 PRESET terminal (M3 (0.12) screws) YS : Software processed output with worst delay time of 300μs.
(Therefore, when the input frequency is 50 kHz, there is a worst case delay of Phase B input Phase B input
15 input pulses.)
<Using the solderless termination>
YH + :transistor output for YH output YH+
6.2mm • Use crimp terminals of the dimensions specified in the left figure. YH − :transistor output for YH output YS+
(0.24 inches) Types of
or less • Secure the terminals using a tightening torque of 0.5 to 0.8 N·m Output outputs YS + :transistor output for YS output
YH-
FOR M3 signal YS − :transistor output for YS output NPN
(0.12 inches) Do not tighten terminal screws with a torque outside the above- YS-
6.2mm mentioned range. Output capacity 5V to 24V DC 0.5A
(0.24 inches)
or less
Failure to do so may cause equipment failures or malfunctions.
I/O occupation 8 points taken from the FX2N expansion bus (can be either inputs or outputs)
• Wire only to the module terminals discussed in this manual.
Power from base 5V DC 90mA(Internal power supply from main unit or powered extension unit)
Leave all others vacant.
3.3 Buffer memories (BFM)
2. WIRING
BFM number Contents
PNP output encoders #0 Counter mode K0 to K11 Default: K0
PNP output encoders #1 DOWN/UP command (1-phase 1-input mode) Default: K0
3.3k FX2N-1HC
Phase A Shielding Wire A24+
1.5k :source #3,#2 Ring length Upper/Lower Default: K65,536
OUT A12+
0.27k
ØA
A5 +
0.1k YH+
:sink Write #4 Command Default: K0
A -
B24+ 2.2kW *1 *1 #11,#10 Preset data Upper/Lower Default: K0
Phase B Shielding Wire YH-
OUT B12+
B5 +
#13,#12 YH compare value Upper/Lower Default: K32,767
ØB
B - #15,#14 YS compare value Upper/Lower Default: K32,767
12 to 24V inputtable
Phase Z Shielding Wire 1.5k
OUT XP24
0.5k YS+ #21,#20 Counter current value Upper/Lower Default: K0
PRESET XP 5
0.2k *1 Write / Read #23,#22 Maximum count value Upper/Lower Default: K0
COMP 2.2kW *1
FX2N-1HC SPECIAL FUNCTION BLOCK 12 to 24V YS-
#25,#24 Minimum count value Upper/Lower Default: K0
DISABLE Shielding Wire XD24 inputtaable
+24V COM
XD 5
USER’S GUIDE START
COMD
#26
#27
Compare results
Terminal status
Read
*1. " " is an external load #29 Error status
JY992D65401H connected with the out put.
*2. Connect the grounded terminal #30 Model identification code K4010
This manual contains text, diagrams and explanations which will guide the reader in the correct installation at the PLC side as required.
+24V 0V Extension 0V +24V #5-#9, #16-#19, #28, #31 are reserved.
and operation of the FX2N-1HC special function block and should be read and understood before attempting *2
cable
to install or use the unit. 1) BFM #0 Counter mode (K0 to K11), BFM #1 DOWN/UP command
Class 3
Further information can be found in the FX PROGRAMMING MANUAL and FX2N, FX2NC, FX3U, FX3UC External power source grounding
PLC Power supply for out put
SERIES HARDWARE MANUAL. DC5V,12V,24V (<100) load drive DC5 to 24V
Count modes 32 bits 16 bits The counter mode is selected form the
1 edge count K0 K1 PLC. As shown below, values between K0
2-phase input and K11 are written to buffer memory BFM
1. INTRODUCTION If using on NPN output encoder please take care to match the polarity of the terminals of the
(phase difference pulse)
2 edge count K2 K3 #0 form the PLC. When a value is written to
encoder to those of the FX2N-1HC. 4 edge count K4 K5 BFM #0 the contents of BFM #1 to BFM #31
The hardware high-speed counter block is a 2-phase 50 kHz high-speed counter. It is a special function
1-phase 2-input (add/subtract pulse) K6 K7 are reset to default values. When setting
block for the FX2N, FX2NC, FX3U, FX3UC series PLC. Differential-Line-Driver output encoders
this value use a TOP (pulsed) instruction
• FROM/TO instruction transfers the PLC data (i.e. parameters, comparing value and present value). Line driver output encoders FX2N-1HC When applying the Differential-Line-Driver encoder Hardware
K8 K9 use M8002 (initial pulse) to drive the TO
Shielding Wire
(AM26C31 or equivalent) to FX2N-1HC, connect the UP/DOWN
• The FX2N-1HC occupies 8 points of I/O on the FX2N, FX2NC, FX3U, FX3UC expansion bus. The 8 points LA A5+ 1-phase 1-input instruction.
can be allocated from either inputs or outputs. LAR A- encoder output with the 5V DC terminal as shown in Software A continuous command is not allowed.
K10 K11
• Differential-Line-Driver (AM26C31 or equivalent) and open collector output encoders are available for the left figure. UP/DOWN
FX2N-1HC. LB B5+
Connect other terminals as shown in the PNP output a) 32-bit counter modes
LBR B- +2,147,483,647
• The source of your input signal should be a 1 or 2 phase encoder. A 5V, 12V, or 24V power source can encoder figure above. A 32-bit binary counter which executes UP/DOWN counting will change Upper limit value
be used. An initial value setting command input (PRESET) and a count prohibit command input (DIS- from the lower limit value to the upper limit value or the upper limit value to
the lower limit value when overflow occurs. Both the upper and lower limit 0
ABLE) are also available.
• The FX2N-1HC has two outputs. When the counter value coincides with an output compare value, the
3. SPECIFICATIONS values are fixed values: the upper limit value is +2,147,483,647, and the
lower limit value is -2,147,483,648. Lower limit value
appropriate output is set ON. The output transistors are individually isolated to allow either sink or -2,147,483,648
3.1 General specifications b) 16-bit counter modes
source connection methods. A 16-bit binary counter handles only positive values from 0 to 65,535.
• Various counter modes, such as 1-phase or 2-phase, 16-bit or 32-bit modes, can be selected using Changes to zero from the upper limit value or to the upper limit value from 0
Perform the dielectric withstand voltage test between the GND terminal and all the other termi- zero when overflow occurs; the upper limit value is determined by BFMs #3 Ring length
commands from the PLC. Allow the FX2N-1HC unit to run only after setting these mode parameters. nals short-circuited. and #2. (BFM#3,#2)

1.1 External dimensions c) 1-phase 1-input counter (K8 to K11)


Mass (weight): Approx. 0.3 kg (0.66 lbs) Dimensions: mm (inches) Item Specification • Hardware UP/DOWN (K8, K9) • Software UP/DOWN (K10, K11)
Accessories: Self-adhesive labels special block number identification. General specifications (excluding the following) Same as those for the FX2N main unit
Phase A OFF ON BFM#1 K0 K1
87(3.43) 55(2.17) 55(2.17) Dielectric withstand voltage 500V AC, 1min (between all terminals and ground) ON ON
UP/DOWN is UP/DOWN is
4(0.16) 8
2 3.2 Performance specifications Phase B determined by Phase B determined by
OFF input phase A OFF the contents of
UP
3 1-phase input 2-phase input UP DOWN (ON/OFF). DOWN BFM #1, (K0/K1).
Current UP
Item Current
A12+ A - B12+
A12+ A - B12+

DOWN 4
value
A24+ A5+ B24+
A24+ A5+ B24+

øA 5 1 input 2 inputs 1 edge count 2 edge count 4 edge count value


øB
1 6 Phase A, Phase B [A24+],[B24+] :24V DC±10% 7mA or less d) 1-phase 2-input counter (K6, K7)
POWER
7
[A12+],[B12+] :12V DC±10% 7mA or less ON
Phase Phase A input-1
17 Signal level [A5+],[B5+] :3.0V to 5.5V DC 12.5mA or less A input OFF
B - XD5 COMD

at OFF→ON If both phase A and phase B inputs are received


90(3.54)
80(3.15)

11 PRESET, DISABLE [XP24],[XD24] :10.8V to 26.4V DC 15mA or less


B5+ XD24 XP24

[XP5],[XD5] :5V DC±10% 8mA or less simultaneously, the counter value does not change.
Phase ON Phase B input+1
(Selected by terminal connection) B input at OFF→ON
9 OFF 1 2 3 3 3 2 1 0
11 Input signal MAX. frequency 50 kHz 25 kHz 12.5kHz
COMP YH- YS-

e) 2-phase counter (K0 to K5)


FX2N-1HC

12
XP5 YH+ YS+

DIS
t1 t1 t1 :Rise/fall time is 3μs or less
PRE 13 t2 :ON/OFF pulse 6μs or more (at 50kHz) • 1 edge-count (K0, K1) • 2 edge-count (K2, K3)
16
YH 14 t2 t2 t3 :Phase difference between A and B is 3.5μs or
YS
15 Pulse shape t3
more (at 50kHz) Phase A Phase A
t3 PRESET(Z phase) input 100μs or more +1 +1 -1 -1 +1 +1 -1 -1
4(0.16) DISABLE (count prohibit) input 100μs or more
10 Phase B Phase B

1 Mounting hole 2-φ4.5 (0.18) Format Automatic UP/DOWN (however, when on 1-phase 1-input mode, UP/DOWN is Phase B input OFF Phase B input ON Phase B input OFF Phase B input ON
10 YH·YS terminal (M3 (0.12) screws) determined by a PLC command or an input terminal.) →ON while phase →OFF while phase →ON while phase →OFF while phase
2 Extension cable and connector 11 DISABLE terminal (M3 (0.12) screws) A input ON Count A input ON Count A input ON Count A input ON Count
3 UP LED DIS (DISABLE) LED When 32-bit is specified : -2,147,483,648 to +2,147,483,647
12 Range When 16-bit is specified : 0 to 65,535 (upper limit can be user specified)
up by 1. down by 1. up by 1. down by 1.
4 DN (Down) LED 13 PRESET LED
5 φA LED 14 YH LED Counting Each output is set when the present value of the counter matches with the • 4 edge-count (K4, K5)
6 φB LED 15 YS LED specification compare value (which is transferred from the PLC), and is switched OFF by a UP COUNT DOWN COUNT
7 POWER LED 16 DIN rail clip reset command from the PLC.
Comparison Phase A input Phase A input
8 φA, φB terminal (M3 (0.12) screws) 17 Attachment groove for 35 (1.38) wide DIN rail Type YH : Direct output processed by hardware. +1 +1 +1 +1
-1 -1 -1 -1
9 PRESET terminal (M3 (0.12) screws) YS : Software processed output with worst delay time of 300μs.
(Therefore, when the input frequency is 50 kHz, there is a worst case delay of Phase B input Phase B input
15 input pulses.)
<Using the solderless termination>
YH + :transistor output for YH output YH+
6.2mm • Use crimp terminals of the dimensions specified in the left figure. YH − :transistor output for YH output YS+
(0.24 inches) Types of
or less • Secure the terminals using a tightening torque of 0.5 to 0.8 N·m Output outputs YS + :transistor output for YS output
YH-
FOR M3 signal YS − :transistor output for YS output NPN
(0.12 inches) Do not tighten terminal screws with a torque outside the above- YS-
6.2mm mentioned range. Output capacity 5V to 24V DC 0.5A
(0.24 inches)
or less
Failure to do so may cause equipment failures or malfunctions.
I/O occupation 8 points taken from the FX2N expansion bus (can be either inputs or outputs)
• Wire only to the module terminals discussed in this manual.
Power from base 5V DC 90mA(Internal power supply from main unit or powered extension unit)
Leave all others vacant.
2) BFM #3, #2 Ring length 10) BFM #29 Error status
Stores the data that specifies the length of the UP
Error status in the FX2N-1HC can be checked by reading the contents of b0 to b7 of BFM #29 to 6. SYSTEM BLOCK DIAGRAM
16-bit counter (default: K65,536). 98 99 0 1 auxiliary relays of the PLC.
T0 Counter mode BFM #0 16-bit
Error status Reset
X 002 DOWN BFM#29 Error status Ring upper limit value
counter
BFM #29 BFM #4 b8
D T0 K2 K2 K100 K1 1 0 99 98 BFM #3,#2
b0 Set when any of b1 to b7 is ON. DOWN/UP command for YH output
T0 Comparisor data
• In the above example, K100 is written into BFMs #3 and • When ring length K100 is specified, b1 Set when the value of the ring length is written incorrectly (other than K2 to K65,536).
BFM #1
1-phase BFM #13,#12 BFM #4 b1
#2 of special block No.2 as a 32-bit binary value (BFM #3 the value of the counter changes as BFM #4
b2 Set when the preset value is written incorrectly. 1-input
= 0, BFM #2 = 100). Permitted values: K2 to K65,536. shown above. When value ≥ ring length in counter b11 S YH
b3 Set when the compare value is written incorrectly. Matched
Note: Write counter data with (D) TO 16-bit counter mode. ØB BFM #4 b9
Count pulse
b4 Set when the current value is written in correctly. ØA R BFM#4
• Count data is always handled as a pair from two 16-bit values in this special function block. 16-bit 2’s DOWN/UP b3
b5 Set when the counter overflows the upper limit. When the upper or lower limit is for YS output
complement value stored in the registers of the PLC cannot be used. T0 Comparision data
b6 Set when the counter overflows the lower limit. exceeded on a 32-bit counter. DISABLE
Counter
• When you are writing a positive value between K32,768 and K65,535, the data should be treated as a Count start BFM#15,#14 BFM#4 b2
b7 Set when the FROM/TO command is used incorrectly. 16/32-bit
32-bit value even when a 16-bit ring counter is used. 1-phase/ BFM#4
BFM #4 b0 b12 S YS
• When transferring counter data to/from this special function block, always use the 32-bit forms of the b8 Set when the counter mode (BFM#0) is written incorrectly. When outside of K0 to K11 2-phase Matched

FROM/TO instructions ((D) FROM, (D) TO). b9 Set when the BFM number is written incorrectly. When outside of K0 to K31 R
BFM#4 b10
ØZ *1
3) BFM #4 Command b10-b15 Undefined
PRESET
1. When b0 is set to ON and the DISABLE input Initiali-
BFM#4 When ’0’(OFF) When ’1’(ON) There error flags can be reset by b8 of BFM #4.
terminal to OFF, the counter is permitted to zation
BFM#4 b4 Current value
b0 Count prohibit Count permit start counting input pulses. 11) Model identification code number BFM #30
register Sampling cycle
2. Unless b1 is set to ON, YH (hardware This BFM stores the identification number for FX2N-1HC. T0 Preset data BFM #21,#20 300ms
b1 YH output prohibit YH output permit compared output) does not turn ON. The identification number for the FX2N-1HC unit is K4010. BFM#11,#10
By reading this identification number, the user may create built-in checking routines to check whether T0
b2 YS output prohibit YS output permit 3. Unless b2 is set to ON, YS (software Direct initialization
Compare results
compared output) does not turn ON. the physical position of the FX2N-1HC matches to that of the software. BFM #26 *1 Comparison is made at
YH/YS independent Mutual reset the next sampling point
b3 4. When b3=ON, YS output is reset if YH output Maximum value after an input count.
action action
is set, and YH output is reset if YS output is 4. EXAMPLE PROGRAM BFM #23,#22
Terminal status
BFM #27
b4 Preset prohibit Preset permit set. When b3=OFF, YH and YS output act Model code Minimum value
independently, and do not reset each other. Please use the following program as a guide whenever you use the FX2N-1HC unit. Other instructions to BFM #30 BFM #25,#24
b5 to b7 Undefined read the current value of the counter, status etc. can be added as required.
5. When b4=OFF, preset function by the
b8 No action Error flag reset PRESET input terminal is disabled. M8002
6. When b8 is set to ON, all error flags are reset.
T0 K2 K0 K11 K1 1. K11 is written into BFM #0 of special function block
No.2. The counter input is 16-bit 1-phase. Please use
「电器电子产品有害物质限制使用标识要求」的表示方式
b9 No action YH output reset Initial
a pulse command for this initialization.
7. When b9 is set to ON, YH output is reset. pulse
b10 No action YS output reset 2. K1234→BFM #3, #2 (special function block No.2) Note: This symbol mark is for China only.
8. When b10 is set to ON, YS output is reset. D T0 K2 K2 K1234 K1 The ring length can be specified when a 16-bit
b11 No action YH output set 9. When b11 is set to ON, YH output is set ON. counter is specified. 含有有害6物质的名称,含有量,含有部品
X 014  本产品中所含有的有害 6 物质的名称,含有量,含有部品如下表所示。
b12 No action YS output set 10.When b12 is set to ON, YS output is set ON. T0 K2 K1 K1 K1 3. UP/DOWN direction should be specified for 1-phase
1-input software determined UP/DOWN counter.
4) BFM #11, #10 Preset data M8002
产品中有害物质的名称及含量
4. K1000→BFM #13, #12
• Data to used as the initial value when the counter starts to count. D T0 K2 K12 K1000 K1
Set the compare value for YH output. 有害物质
• Data becomes valid when b4 of BFM #4 is set to ON, and PRESET input terminal changes from OFF 5. K900→BFM #15, #14 部件名称 铅 汞 镉 六价铬 多溴联苯 多溴二苯醚
to ON. The default value of the counter is zero. You can change it by writing a value into BFM #11 and D T0 K2 K14 K900 K1
Set the compare value for YS output (not necessary if (Pb) (Hg) (Cd) (Cr(VI)) (PBB) (PBDE)
#10 or by using the command below. only YH output is used).
• The initial counter value can also be set by writing the data directly into BFM #21 and #20 (current X 010
外壳 ○ ○ ○ ○ ○ ○
M10 Count allowed 可编程控制器
value of the counter). 印刷基板 × ○ ○ ○ ○ ○
M8000
5) BFM #13, #12 Comparison value for YH output, BFM #15, #14 Comparison value for YS output M11 to M13
Output allowed 6. Note that counting only occurs if count prohibit is 本表格依据SJ/T 11364的规定编制。
Mutual reset OFF. Also, outputs will not be set from the counting
• After comparing the current value of the counter with the value process at all if the relevant output prohibit are set in ○:表示该有害物质在该部件所有均质材料中的含量均在GB/T 26572规定的限量要求以下。
C
e

written in BFM #13 and #12, BFM #15 and #14, the hardware and X 011
ur
lu

the command register. Please reset the error flags ×:表示该有害物质至少在该部件的某一均质材料中的含量超出GB/T 26572规定的限量要求。
re
va

M14 Preset allowed


nt

software comparator in the FX2N-1HC outputs the comparison and YH/YS output before you start. The mutual reset
nt

va
re

and preset initialization commands can be used as 基于中国标准法的参考规格: GB/T15969.2


lu

result.
ur

Current value Current value


e
C

X 012 required.
PLS M18 Error flag reset
• YH, YS output will not turn ON if you use PRESET or the TO
instruction to set the counter value equal to the comparison BFM #4 BFM #4 This manual confers no industrial property rights or any rights of any other kind, nor does it confer
b9,b10 b9,b10 X 013 any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems
value. It will turn ON only when a match occurs by the counting of PLS M19 and M20 YH YS output reset
input pulses. involving industrial property rights which may occur as a result of using the contents noted in this
Coincidence output Coincidence output
• The YS comparison operation takes about 300μs, and if a match M8000
7. (M25 to M10) →BFM #4 (b15 to b0) command
manual.
T0 K2 K4 K4M10 K1
occurs, the output goes ON. RUN
monitor Guidelines for the safety of the user and protection of the FX2N-1HC special
• Output occurs when the current value becomes equal to the compare value but only if b1 and b2 of 8. BFM (#21, #20)→Reads the current value to the data
BFM #4 are ON. Once an output is set, it remains ON until it is reset by b9 or b10 of BFM #4. If b3 of D FROM K2 K20 D2 K1
registers D3 and D2. function block
BFM #4 is ON, however, one of the outputs is reset when the other is set. • This manual has been written to be used by trained and competent personnel. This is
defined by the European directives for machinery, low voltage and EMC.
6) Counter current value (BFM #21, 20) 5. DIAGNOSTICS • If in doubt at any stage during the installation of the FX2N-1HC always consult a professional
The current value of the counter can be read by the PLC. It will not be the correct value during electrical engineer who is qualified and trained to the local and national standards. If in doubt
high-speed operations because of the communication delay. The current value of the counter can be 5.1 Preliminary checks about the operation or use of the FX2N-1HC please consult your local Mitsubishi Electric
forcibly changed by writing a 32-bit value into the appropriate BFMs from the PLC. representative.
1) Check that the I/O wiring and extension cable of the FX2N-1HC are properly connected. • Under no circumstances will Mitsubishi Electric be liable or responsible for any consequential
7) Maximum count value (BFM #23, 22) damage that may arise as a result of the installation or use of this equipment.
2) 5V 90mA power is supplied from the main or extension units for the FX2N-1HC. Check that there is no
These store the maximum and minimum value reached by the counter. If the power is turned off, the • All examples and diagrams shown in this manual are intended only as an aid to
power overload from this and other extension blocks.
stored data is cleared. understanding the text, not to guarantee operation. Mitsubishi Electric will accept no
3) The counter works correctly only when data such as the counter mode (set with a pulse command), responsibility for actual use of the product based on these illustrative examples.
8) Comparison status (BFM #26) the TO command, the compare value, etc. are appropriately specified. Remember to initialize the • Owing to the very great variety in possible application of this equipment, you must satisfy
BFM#26 When ’0’ (OFF) When ’1’ (ON) BFM#26 When ’0’ (OFF) When ’1’ (ON) count (BFM #4 b0), preset (BFM #4 b4), and output (BFM #4 b2, b1) prohibits. Reset the YH/YS yourself as to its suitability for your specific application.
outputs before you start.
Set value ≤ current Set value > current Set value ≤ current Set value > current
b0 value value b3 value value 5.2 Error checking
Manual number : JY992D65401
YH b1 Set value ≠ current Set value = current YS b4 Set value ≠ current Set value = current The following LEDs on the main panel of the FX2N-1HC may help you to troubleshoot the unit.
value value value value
• φA, φB :Goes on/off as φA, φB input turn ON/OFF. It can be checked by rotating the encoder Manual revision: H
Set value ≥ current Set value < current Set value ≥ current Set value < current slowly.
b2 b5
value value value value • UP, DN :Lights up to indicate whether the counter is going up (UP) or down (DN). Date : August 2018
BFM #26 is for reading only. Write commands from the programmable controller are ignored. • PRESET and DIS:The appropriate LED lights up when the PRESET terminal or the DISABLE terminal
is ON.
9) Terminal status (BFM #27) • YH, YS :The appropriate LED lights up when YH/YS output is turned on.
BFM#26 When ’0’ (OFF) When ’1’ (ON) BFM#26 When ’0’ (OFF) When ’1’ (ON) You can check the error status by reading the content of BFM #29 to the PLC. HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN

Error contents are shown in section 3.3 (10).


b0 PRESET input is OFF. PRESET input is ON. b2 YH output is OFF. YH output is ON. Effective August 2018
b1 DISABLE input is OFF. DISABLE input is ON. b3 YS output is OFF. YS output is ON. Note that inputting the pulse higher than the maximum frequency may cause mis-counting to JY992D65401H Specifications are subject to
b4-b15 Undefined 1HC or a FROM/TO error to the PLC main unit. change without notice
2) BFM #3, #2 Ring length 10) BFM #29 Error status
Stores the data that specifies the length of the UP
Error status in the FX2N-1HC can be checked by reading the contents of b0 to b7 of BFM #29 to 6. SYSTEM BLOCK DIAGRAM
16-bit counter (default: K65,536). 98 99 0 1 auxiliary relays of the PLC.
T0 Counter mode BFM #0 16-bit
Error status Reset
X 002 DOWN BFM#29 Error status Ring upper limit value
counter
BFM #29 BFM #4 b8
D T0 K2 K2 K100 K1 1 0 99 98 BFM #3,#2
b0 Set when any of b1 to b7 is ON. DOWN/UP command for YH output
T0 Comparisor data
• In the above example, K100 is written into BFMs #3 and • When ring length K100 is specified, b1 Set when the value of the ring length is written incorrectly (other than K2 to K65,536).
BFM #1
1-phase BFM #13,#12 BFM #4 b1
#2 of special block No.2 as a 32-bit binary value (BFM #3 the value of the counter changes as BFM #4
b2 Set when the preset value is written incorrectly. 1-input
= 0, BFM #2 = 100). Permitted values: K2 to K65,536. shown above. When value ≥ ring length in counter b11 S YH
b3 Set when the compare value is written incorrectly. Matched
Note: Write counter data with (D) TO 16-bit counter mode. ØB BFM #4 b9
Count pulse
b4 Set when the current value is written in correctly. ØA R BFM#4
• Count data is always handled as a pair from two 16-bit values in this special function block. 16-bit 2’s DOWN/UP b3
b5 Set when the counter overflows the upper limit. When the upper or lower limit is for YS output
complement value stored in the registers of the PLC cannot be used. T0 Comparision data
b6 Set when the counter overflows the lower limit. exceeded on a 32-bit counter. DISABLE
Counter
• When you are writing a positive value between K32,768 and K65,535, the data should be treated as a Count start BFM#15,#14 BFM#4 b2
b7 Set when the FROM/TO command is used incorrectly. 16/32-bit
32-bit value even when a 16-bit ring counter is used. 1-phase/ BFM#4
BFM #4 b0 b12 S YS
• When transferring counter data to/from this special function block, always use the 32-bit forms of the b8 Set when the counter mode (BFM#0) is written incorrectly. When outside of K0 to K11 2-phase Matched

FROM/TO instructions ((D) FROM, (D) TO). b9 Set when the BFM number is written incorrectly. When outside of K0 to K31 R
BFM#4 b10
ØZ *1
3) BFM #4 Command b10-b15 Undefined
PRESET
1. When b0 is set to ON and the DISABLE input Initiali-
BFM#4 When ’0’(OFF) When ’1’(ON) There error flags can be reset by b8 of BFM #4.
terminal to OFF, the counter is permitted to zation
BFM#4 b4 Current value
b0 Count prohibit Count permit start counting input pulses. 11) Model identification code number BFM #30
register Sampling cycle
2. Unless b1 is set to ON, YH (hardware This BFM stores the identification number for FX2N-1HC. T0 Preset data BFM #21,#20 300ms
b1 YH output prohibit YH output permit compared output) does not turn ON. The identification number for the FX2N-1HC unit is K4010. BFM#11,#10
By reading this identification number, the user may create built-in checking routines to check whether T0
b2 YS output prohibit YS output permit 3. Unless b2 is set to ON, YS (software Direct initialization
Compare results
compared output) does not turn ON. the physical position of the FX2N-1HC matches to that of the software. BFM #26 *1 Comparison is made at
YH/YS independent Mutual reset the next sampling point
b3 4. When b3=ON, YS output is reset if YH output Maximum value after an input count.
action action
is set, and YH output is reset if YS output is 4. EXAMPLE PROGRAM BFM #23,#22
Terminal status
BFM #27
b4 Preset prohibit Preset permit set. When b3=OFF, YH and YS output act Model code Minimum value
independently, and do not reset each other. Please use the following program as a guide whenever you use the FX2N-1HC unit. Other instructions to BFM #30 BFM #25,#24
b5 to b7 Undefined read the current value of the counter, status etc. can be added as required.
5. When b4=OFF, preset function by the
b8 No action Error flag reset PRESET input terminal is disabled. M8002
6. When b8 is set to ON, all error flags are reset.
T0 K2 K0 K11 K1 1. K11 is written into BFM #0 of special function block
No.2. The counter input is 16-bit 1-phase. Please use
「电器电子产品有害物质限制使用标识要求」的表示方式
b9 No action YH output reset Initial
a pulse command for this initialization.
7. When b9 is set to ON, YH output is reset. pulse
b10 No action YS output reset 2. K1234→BFM #3, #2 (special function block No.2) Note: This symbol mark is for China only.
8. When b10 is set to ON, YS output is reset. D T0 K2 K2 K1234 K1 The ring length can be specified when a 16-bit
b11 No action YH output set 9. When b11 is set to ON, YH output is set ON. counter is specified. 含有有害6物质的名称,含有量,含有部品
X 014  本产品中所含有的有害 6 物质的名称,含有量,含有部品如下表所示。
b12 No action YS output set 10.When b12 is set to ON, YS output is set ON. T0 K2 K1 K1 K1 3. UP/DOWN direction should be specified for 1-phase
1-input software determined UP/DOWN counter.
4) BFM #11, #10 Preset data M8002
产品中有害物质的名称及含量
4. K1000→BFM #13, #12
• Data to used as the initial value when the counter starts to count. D T0 K2 K12 K1000 K1
Set the compare value for YH output. 有害物质
• Data becomes valid when b4 of BFM #4 is set to ON, and PRESET input terminal changes from OFF 5. K900→BFM #15, #14 部件名称 铅 汞 镉 六价铬 多溴联苯 多溴二苯醚
to ON. The default value of the counter is zero. You can change it by writing a value into BFM #11 and D T0 K2 K14 K900 K1
Set the compare value for YS output (not necessary if (Pb) (Hg) (Cd) (Cr(VI)) (PBB) (PBDE)
#10 or by using the command below. only YH output is used).
• The initial counter value can also be set by writing the data directly into BFM #21 and #20 (current X 010
外壳 ○ ○ ○ ○ ○ ○
M10 Count allowed 可编程控制器
value of the counter). 印刷基板 × ○ ○ ○ ○ ○
M8000
5) BFM #13, #12 Comparison value for YH output, BFM #15, #14 Comparison value for YS output M11 to M13
Output allowed 6. Note that counting only occurs if count prohibit is 本表格依据SJ/T 11364的规定编制。
Mutual reset OFF. Also, outputs will not be set from the counting
• After comparing the current value of the counter with the value process at all if the relevant output prohibit are set in ○:表示该有害物质在该部件所有均质材料中的含量均在GB/T 26572规定的限量要求以下。
C
e

written in BFM #13 and #12, BFM #15 and #14, the hardware and X 011
ur
lu

the command register. Please reset the error flags ×:表示该有害物质至少在该部件的某一均质材料中的含量超出GB/T 26572规定的限量要求。
re
va

M14 Preset allowed


nt

software comparator in the FX2N-1HC outputs the comparison and YH/YS output before you start. The mutual reset
nt

va
re

and preset initialization commands can be used as 基于中国标准法的参考规格: GB/T15969.2


lu

result.
ur

Current value Current value


e
C

X 012 required.
PLS M18 Error flag reset
• YH, YS output will not turn ON if you use PRESET or the TO
instruction to set the counter value equal to the comparison BFM #4 BFM #4 This manual confers no industrial property rights or any rights of any other kind, nor does it confer
b9,b10 b9,b10 X 013 any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems
value. It will turn ON only when a match occurs by the counting of PLS M19 and M20 YH YS output reset
input pulses. involving industrial property rights which may occur as a result of using the contents noted in this
Coincidence output Coincidence output
• The YS comparison operation takes about 300μs, and if a match M8000
7. (M25 to M10) →BFM #4 (b15 to b0) command
manual.
T0 K2 K4 K4M10 K1
occurs, the output goes ON. RUN
monitor Guidelines for the safety of the user and protection of the FX2N-1HC special
• Output occurs when the current value becomes equal to the compare value but only if b1 and b2 of 8. BFM (#21, #20)→Reads the current value to the data
BFM #4 are ON. Once an output is set, it remains ON until it is reset by b9 or b10 of BFM #4. If b3 of D FROM K2 K20 D2 K1
registers D3 and D2. function block
BFM #4 is ON, however, one of the outputs is reset when the other is set. • This manual has been written to be used by trained and competent personnel. This is
defined by the European directives for machinery, low voltage and EMC.
6) Counter current value (BFM #21, 20) 5. DIAGNOSTICS • If in doubt at any stage during the installation of the FX2N-1HC always consult a professional
The current value of the counter can be read by the PLC. It will not be the correct value during electrical engineer who is qualified and trained to the local and national standards. If in doubt
high-speed operations because of the communication delay. The current value of the counter can be 5.1 Preliminary checks about the operation or use of the FX2N-1HC please consult your local Mitsubishi Electric
forcibly changed by writing a 32-bit value into the appropriate BFMs from the PLC. representative.
1) Check that the I/O wiring and extension cable of the FX2N-1HC are properly connected. • Under no circumstances will Mitsubishi Electric be liable or responsible for any consequential
7) Maximum count value (BFM #23, 22) damage that may arise as a result of the installation or use of this equipment.
2) 5V 90mA power is supplied from the main or extension units for the FX2N-1HC. Check that there is no
These store the maximum and minimum value reached by the counter. If the power is turned off, the • All examples and diagrams shown in this manual are intended only as an aid to
power overload from this and other extension blocks.
stored data is cleared. understanding the text, not to guarantee operation. Mitsubishi Electric will accept no
3) The counter works correctly only when data such as the counter mode (set with a pulse command), responsibility for actual use of the product based on these illustrative examples.
8) Comparison status (BFM #26) the TO command, the compare value, etc. are appropriately specified. Remember to initialize the • Owing to the very great variety in possible application of this equipment, you must satisfy
BFM#26 When ’0’ (OFF) When ’1’ (ON) BFM#26 When ’0’ (OFF) When ’1’ (ON) count (BFM #4 b0), preset (BFM #4 b4), and output (BFM #4 b2, b1) prohibits. Reset the YH/YS yourself as to its suitability for your specific application.
outputs before you start.
Set value ≤ current Set value > current Set value ≤ current Set value > current
b0 value value b3 value value 5.2 Error checking
Manual number : JY992D65401
YH b1 Set value ≠ current Set value = current YS b4 Set value ≠ current Set value = current The following LEDs on the main panel of the FX2N-1HC may help you to troubleshoot the unit.
value value value value
• φA, φB :Goes on/off as φA, φB input turn ON/OFF. It can be checked by rotating the encoder Manual revision: H
Set value ≥ current Set value < current Set value ≥ current Set value < current slowly.
b2 b5
value value value value • UP, DN :Lights up to indicate whether the counter is going up (UP) or down (DN). Date : August 2018
BFM #26 is for reading only. Write commands from the programmable controller are ignored. • PRESET and DIS:The appropriate LED lights up when the PRESET terminal or the DISABLE terminal
is ON.
9) Terminal status (BFM #27) • YH, YS :The appropriate LED lights up when YH/YS output is turned on.
BFM#26 When ’0’ (OFF) When ’1’ (ON) BFM#26 When ’0’ (OFF) When ’1’ (ON) You can check the error status by reading the content of BFM #29 to the PLC. HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN

Error contents are shown in section 3.3 (10).


b0 PRESET input is OFF. PRESET input is ON. b2 YH output is OFF. YH output is ON. Effective August 2018
b1 DISABLE input is OFF. DISABLE input is ON. b3 YS output is OFF. YS output is ON. Note that inputting the pulse higher than the maximum frequency may cause mis-counting to JY992D65401H Specifications are subject to
b4-b15 Undefined 1HC or a FROM/TO error to the PLC main unit. change without notice
2) BFM #3, #2 Ring length 10) BFM #29 Error status
Stores the data that specifies the length of the UP
Error status in the FX2N-1HC can be checked by reading the contents of b0 to b7 of BFM #29 to 6. SYSTEM BLOCK DIAGRAM
16-bit counter (default: K65,536). 98 99 0 1 auxiliary relays of the PLC.
T0 Counter mode BFM #0 16-bit
Error status Reset
X 002 DOWN BFM#29 Error status Ring upper limit value
counter
BFM #29 BFM #4 b8
D T0 K2 K2 K100 K1 1 0 99 98 BFM #3,#2
b0 Set when any of b1 to b7 is ON. DOWN/UP command for YH output
T0 Comparisor data
• In the above example, K100 is written into BFMs #3 and • When ring length K100 is specified, b1 Set when the value of the ring length is written incorrectly (other than K2 to K65,536).
BFM #1
1-phase BFM #13,#12 BFM #4 b1
#2 of special block No.2 as a 32-bit binary value (BFM #3 the value of the counter changes as BFM #4
b2 Set when the preset value is written incorrectly. 1-input
= 0, BFM #2 = 100). Permitted values: K2 to K65,536. shown above. When value ≥ ring length in counter b11 S YH
b3 Set when the compare value is written incorrectly. Matched
Note: Write counter data with (D) TO 16-bit counter mode. ØB BFM #4 b9
Count pulse
b4 Set when the current value is written in correctly. ØA R BFM#4
• Count data is always handled as a pair from two 16-bit values in this special function block. 16-bit 2’s DOWN/UP b3
b5 Set when the counter overflows the upper limit. When the upper or lower limit is for YS output
complement value stored in the registers of the PLC cannot be used. T0 Comparision data
b6 Set when the counter overflows the lower limit. exceeded on a 32-bit counter. DISABLE
Counter
• When you are writing a positive value between K32,768 and K65,535, the data should be treated as a Count start BFM#15,#14 BFM#4 b2
b7 Set when the FROM/TO command is used incorrectly. 16/32-bit
32-bit value even when a 16-bit ring counter is used. 1-phase/ BFM#4
BFM #4 b0 b12 S YS
• When transferring counter data to/from this special function block, always use the 32-bit forms of the b8 Set when the counter mode (BFM#0) is written incorrectly. When outside of K0 to K11 2-phase Matched

FROM/TO instructions ((D) FROM, (D) TO). b9 Set when the BFM number is written incorrectly. When outside of K0 to K31 R
BFM#4 b10
ØZ *1
3) BFM #4 Command b10-b15 Undefined
PRESET
1. When b0 is set to ON and the DISABLE input Initiali-
BFM#4 When ’0’(OFF) When ’1’(ON) There error flags can be reset by b8 of BFM #4.
terminal to OFF, the counter is permitted to zation
BFM#4 b4 Current value
b0 Count prohibit Count permit start counting input pulses. 11) Model identification code number BFM #30
register Sampling cycle
2. Unless b1 is set to ON, YH (hardware This BFM stores the identification number for FX2N-1HC. T0 Preset data BFM #21,#20 300ms
b1 YH output prohibit YH output permit compared output) does not turn ON. The identification number for the FX2N-1HC unit is K4010. BFM#11,#10
By reading this identification number, the user may create built-in checking routines to check whether T0
b2 YS output prohibit YS output permit 3. Unless b2 is set to ON, YS (software Direct initialization
Compare results
compared output) does not turn ON. the physical position of the FX2N-1HC matches to that of the software. BFM #26 *1 Comparison is made at
YH/YS independent Mutual reset the next sampling point
b3 4. When b3=ON, YS output is reset if YH output Maximum value after an input count.
action action
is set, and YH output is reset if YS output is 4. EXAMPLE PROGRAM BFM #23,#22
Terminal status
BFM #27
b4 Preset prohibit Preset permit set. When b3=OFF, YH and YS output act Model code Minimum value
independently, and do not reset each other. Please use the following program as a guide whenever you use the FX2N-1HC unit. Other instructions to BFM #30 BFM #25,#24
b5 to b7 Undefined read the current value of the counter, status etc. can be added as required.
5. When b4=OFF, preset function by the
b8 No action Error flag reset PRESET input terminal is disabled. M8002
6. When b8 is set to ON, all error flags are reset.
T0 K2 K0 K11 K1 1. K11 is written into BFM #0 of special function block
No.2. The counter input is 16-bit 1-phase. Please use
「电器电子产品有害物质限制使用标识要求」的表示方式
b9 No action YH output reset Initial
a pulse command for this initialization.
7. When b9 is set to ON, YH output is reset. pulse
b10 No action YS output reset 2. K1234→BFM #3, #2 (special function block No.2) Note: This symbol mark is for China only.
8. When b10 is set to ON, YS output is reset. D T0 K2 K2 K1234 K1 The ring length can be specified when a 16-bit
b11 No action YH output set 9. When b11 is set to ON, YH output is set ON. counter is specified. 含有有害6物质的名称,含有量,含有部品
X 014  本产品中所含有的有害 6 物质的名称,含有量,含有部品如下表所示。
b12 No action YS output set 10.When b12 is set to ON, YS output is set ON. T0 K2 K1 K1 K1 3. UP/DOWN direction should be specified for 1-phase
1-input software determined UP/DOWN counter.
4) BFM #11, #10 Preset data M8002
产品中有害物质的名称及含量
4. K1000→BFM #13, #12
• Data to used as the initial value when the counter starts to count. D T0 K2 K12 K1000 K1
Set the compare value for YH output. 有害物质
• Data becomes valid when b4 of BFM #4 is set to ON, and PRESET input terminal changes from OFF 5. K900→BFM #15, #14 部件名称 铅 汞 镉 六价铬 多溴联苯 多溴二苯醚
to ON. The default value of the counter is zero. You can change it by writing a value into BFM #11 and D T0 K2 K14 K900 K1
Set the compare value for YS output (not necessary if (Pb) (Hg) (Cd) (Cr(VI)) (PBB) (PBDE)
#10 or by using the command below. only YH output is used).
• The initial counter value can also be set by writing the data directly into BFM #21 and #20 (current X 010
外壳 ○ ○ ○ ○ ○ ○
M10 Count allowed 可编程控制器
value of the counter). 印刷基板 × ○ ○ ○ ○ ○
M8000
5) BFM #13, #12 Comparison value for YH output, BFM #15, #14 Comparison value for YS output M11 to M13
Output allowed 6. Note that counting only occurs if count prohibit is 本表格依据SJ/T 11364的规定编制。
Mutual reset OFF. Also, outputs will not be set from the counting
• After comparing the current value of the counter with the value process at all if the relevant output prohibit are set in ○:表示该有害物质在该部件所有均质材料中的含量均在GB/T 26572规定的限量要求以下。
C
e

written in BFM #13 and #12, BFM #15 and #14, the hardware and X 011
ur
lu

the command register. Please reset the error flags ×:表示该有害物质至少在该部件的某一均质材料中的含量超出GB/T 26572规定的限量要求。
re
va

M14 Preset allowed


nt

software comparator in the FX2N-1HC outputs the comparison and YH/YS output before you start. The mutual reset
nt

va
re

and preset initialization commands can be used as 基于中国标准法的参考规格: GB/T15969.2


lu

result.
ur

Current value Current value


e
C

X 012 required.
PLS M18 Error flag reset
• YH, YS output will not turn ON if you use PRESET or the TO
instruction to set the counter value equal to the comparison BFM #4 BFM #4 This manual confers no industrial property rights or any rights of any other kind, nor does it confer
b9,b10 b9,b10 X 013 any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems
value. It will turn ON only when a match occurs by the counting of PLS M19 and M20 YH YS output reset
input pulses. involving industrial property rights which may occur as a result of using the contents noted in this
Coincidence output Coincidence output
• The YS comparison operation takes about 300μs, and if a match M8000
7. (M25 to M10) →BFM #4 (b15 to b0) command
manual.
T0 K2 K4 K4M10 K1
occurs, the output goes ON. RUN
monitor Guidelines for the safety of the user and protection of the FX2N-1HC special
• Output occurs when the current value becomes equal to the compare value but only if b1 and b2 of 8. BFM (#21, #20)→Reads the current value to the data
BFM #4 are ON. Once an output is set, it remains ON until it is reset by b9 or b10 of BFM #4. If b3 of D FROM K2 K20 D2 K1
registers D3 and D2. function block
BFM #4 is ON, however, one of the outputs is reset when the other is set. • This manual has been written to be used by trained and competent personnel. This is
defined by the European directives for machinery, low voltage and EMC.
6) Counter current value (BFM #21, 20) 5. DIAGNOSTICS • If in doubt at any stage during the installation of the FX2N-1HC always consult a professional
The current value of the counter can be read by the PLC. It will not be the correct value during electrical engineer who is qualified and trained to the local and national standards. If in doubt
high-speed operations because of the communication delay. The current value of the counter can be 5.1 Preliminary checks about the operation or use of the FX2N-1HC please consult your local Mitsubishi Electric
forcibly changed by writing a 32-bit value into the appropriate BFMs from the PLC. representative.
1) Check that the I/O wiring and extension cable of the FX2N-1HC are properly connected. • Under no circumstances will Mitsubishi Electric be liable or responsible for any consequential
7) Maximum count value (BFM #23, 22) damage that may arise as a result of the installation or use of this equipment.
2) 5V 90mA power is supplied from the main or extension units for the FX2N-1HC. Check that there is no
These store the maximum and minimum value reached by the counter. If the power is turned off, the • All examples and diagrams shown in this manual are intended only as an aid to
power overload from this and other extension blocks.
stored data is cleared. understanding the text, not to guarantee operation. Mitsubishi Electric will accept no
3) The counter works correctly only when data such as the counter mode (set with a pulse command), responsibility for actual use of the product based on these illustrative examples.
8) Comparison status (BFM #26) the TO command, the compare value, etc. are appropriately specified. Remember to initialize the • Owing to the very great variety in possible application of this equipment, you must satisfy
BFM#26 When ’0’ (OFF) When ’1’ (ON) BFM#26 When ’0’ (OFF) When ’1’ (ON) count (BFM #4 b0), preset (BFM #4 b4), and output (BFM #4 b2, b1) prohibits. Reset the YH/YS yourself as to its suitability for your specific application.
outputs before you start.
Set value ≤ current Set value > current Set value ≤ current Set value > current
b0 value value b3 value value 5.2 Error checking
Manual number : JY992D65401
YH b1 Set value ≠ current Set value = current YS b4 Set value ≠ current Set value = current The following LEDs on the main panel of the FX2N-1HC may help you to troubleshoot the unit.
value value value value
• φA, φB :Goes on/off as φA, φB input turn ON/OFF. It can be checked by rotating the encoder Manual revision: H
Set value ≥ current Set value < current Set value ≥ current Set value < current slowly.
b2 b5
value value value value • UP, DN :Lights up to indicate whether the counter is going up (UP) or down (DN). Date : August 2018
BFM #26 is for reading only. Write commands from the programmable controller are ignored. • PRESET and DIS:The appropriate LED lights up when the PRESET terminal or the DISABLE terminal
is ON.
9) Terminal status (BFM #27) • YH, YS :The appropriate LED lights up when YH/YS output is turned on.
BFM#26 When ’0’ (OFF) When ’1’ (ON) BFM#26 When ’0’ (OFF) When ’1’ (ON) You can check the error status by reading the content of BFM #29 to the PLC. HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN

Error contents are shown in section 3.3 (10).


b0 PRESET input is OFF. PRESET input is ON. b2 YH output is OFF. YH output is ON. Effective August 2018
b1 DISABLE input is OFF. DISABLE input is ON. b3 YS output is OFF. YS output is ON. Note that inputting the pulse higher than the maximum frequency may cause mis-counting to JY992D65401H Specifications are subject to
b4-b15 Undefined 1HC or a FROM/TO error to the PLC main unit. change without notice
3.3 Buffer memories (BFM)
2. WIRING
BFM number Contents
PNP output encoders #0 Counter mode K0 to K11 Default: K0
PNP output encoders #1 DOWN/UP command (1-phase 1-input mode) Default: K0
3.3k FX2N-1HC
Phase A Shielding Wire A24+
1.5k :source #3,#2 Ring length Upper/Lower Default: K65,536
OUT A12+
0.27k
ØA
A5 +
0.1k YH+
:sink Write #4 Command Default: K0
A -
B24+ 2.2kW *1 *1 #11,#10 Preset data Upper/Lower Default: K0
Phase B Shielding Wire YH-
OUT B12+
B5 +
#13,#12 YH compare value Upper/Lower Default: K32,767
ØB
B - #15,#14 YS compare value Upper/Lower Default: K32,767
12 to 24V inputtable
Phase Z Shielding Wire 1.5k
OUT XP24
0.5k YS+ #21,#20 Counter current value Upper/Lower Default: K0
PRESET XP 5
0.2k *1 Write / Read #23,#22 Maximum count value Upper/Lower Default: K0
COMP 2.2kW *1
FX2N-1HC SPECIAL FUNCTION BLOCK 12 to 24V YS-
#25,#24 Minimum count value Upper/Lower Default: K0
DISABLE Shielding Wire XD24 inputtaable
+24V COM
XD 5
USER’S GUIDE START
COMD
#26
#27
Compare results
Terminal status
Read
*1. " " is an external load #29 Error status
JY992D65401H connected with the out put.
*2. Connect the grounded terminal #30 Model identification code K4010
This manual contains text, diagrams and explanations which will guide the reader in the correct installation at the PLC side as required.
+24V 0V Extension 0V +24V #5-#9, #16-#19, #28, #31 are reserved.
and operation of the FX2N-1HC special function block and should be read and understood before attempting *2
cable
to install or use the unit. 1) BFM #0 Counter mode (K0 to K11), BFM #1 DOWN/UP command
Class 3
Further information can be found in the FX PROGRAMMING MANUAL and FX2N, FX2NC, FX3U, FX3UC External power source grounding
PLC Power supply for out put
SERIES HARDWARE MANUAL. DC5V,12V,24V (<100) load drive DC5 to 24V
Count modes 32 bits 16 bits The counter mode is selected form the
1 edge count K0 K1 PLC. As shown below, values between K0
2-phase input and K11 are written to buffer memory BFM
1. INTRODUCTION If using on NPN output encoder please take care to match the polarity of the terminals of the
(phase difference pulse)
2 edge count K2 K3 #0 form the PLC. When a value is written to
encoder to those of the FX2N-1HC. 4 edge count K4 K5 BFM #0 the contents of BFM #1 to BFM #31
The hardware high-speed counter block is a 2-phase 50 kHz high-speed counter. It is a special function
1-phase 2-input (add/subtract pulse) K6 K7 are reset to default values. When setting
block for the FX2N, FX2NC, FX3U, FX3UC series PLC. Differential-Line-Driver output encoders
this value use a TOP (pulsed) instruction
• FROM/TO instruction transfers the PLC data (i.e. parameters, comparing value and present value). Line driver output encoders FX2N-1HC When applying the Differential-Line-Driver encoder Hardware
K8 K9 use M8002 (initial pulse) to drive the TO
Shielding Wire
(AM26C31 or equivalent) to FX2N-1HC, connect the UP/DOWN
• The FX2N-1HC occupies 8 points of I/O on the FX2N, FX2NC, FX3U, FX3UC expansion bus. The 8 points LA A5+ 1-phase 1-input instruction.
can be allocated from either inputs or outputs. LAR A- encoder output with the 5V DC terminal as shown in Software A continuous command is not allowed.
K10 K11
• Differential-Line-Driver (AM26C31 or equivalent) and open collector output encoders are available for the left figure. UP/DOWN
FX2N-1HC. LB B5+
Connect other terminals as shown in the PNP output a) 32-bit counter modes
LBR B- +2,147,483,647
• The source of your input signal should be a 1 or 2 phase encoder. A 5V, 12V, or 24V power source can encoder figure above. A 32-bit binary counter which executes UP/DOWN counting will change Upper limit value
be used. An initial value setting command input (PRESET) and a count prohibit command input (DIS- from the lower limit value to the upper limit value or the upper limit value to
the lower limit value when overflow occurs. Both the upper and lower limit 0
ABLE) are also available.
• The FX2N-1HC has two outputs. When the counter value coincides with an output compare value, the
3. SPECIFICATIONS values are fixed values: the upper limit value is +2,147,483,647, and the
lower limit value is -2,147,483,648. Lower limit value
appropriate output is set ON. The output transistors are individually isolated to allow either sink or -2,147,483,648
3.1 General specifications b) 16-bit counter modes
source connection methods. A 16-bit binary counter handles only positive values from 0 to 65,535.
• Various counter modes, such as 1-phase or 2-phase, 16-bit or 32-bit modes, can be selected using Changes to zero from the upper limit value or to the upper limit value from 0
Perform the dielectric withstand voltage test between the GND terminal and all the other termi- zero when overflow occurs; the upper limit value is determined by BFMs #3 Ring length
commands from the PLC. Allow the FX2N-1HC unit to run only after setting these mode parameters. nals short-circuited. and #2. (BFM#3,#2)

1.1 External dimensions c) 1-phase 1-input counter (K8 to K11)


Mass (weight): Approx. 0.3 kg (0.66 lbs) Dimensions: mm (inches) Item Specification • Hardware UP/DOWN (K8, K9) • Software UP/DOWN (K10, K11)
Accessories: Self-adhesive labels special block number identification. General specifications (excluding the following) Same as those for the FX2N main unit
Phase A OFF ON BFM#1 K0 K1
87(3.43) 55(2.17) 55(2.17) Dielectric withstand voltage 500V AC, 1min (between all terminals and ground) ON ON
UP/DOWN is UP/DOWN is
4(0.16) 8
2 3.2 Performance specifications Phase B determined by Phase B determined by
OFF input phase A OFF the contents of
UP
3 1-phase input 2-phase input UP DOWN (ON/OFF). DOWN BFM #1, (K0/K1).
Current UP
Item Current
A12+ A - B12+
A12+ A - B12+

DOWN 4
value
A24+ A5+ B24+
A24+ A5+ B24+

øA 5 1 input 2 inputs 1 edge count 2 edge count 4 edge count value


øB
1 6 Phase A, Phase B [A24+],[B24+] :24V DC±10% 7mA or less d) 1-phase 2-input counter (K6, K7)
POWER
7
[A12+],[B12+] :12V DC±10% 7mA or less ON
Phase Phase A input-1
17 Signal level [A5+],[B5+] :3.0V to 5.5V DC 12.5mA or less A input OFF
B - XD5 COMD

at OFF→ON If both phase A and phase B inputs are received


90(3.54)
80(3.15)

11 PRESET, DISABLE [XP24],[XD24] :10.8V to 26.4V DC 15mA or less


B5+ XD24 XP24

[XP5],[XD5] :5V DC±10% 8mA or less simultaneously, the counter value does not change.
Phase ON Phase B input+1
(Selected by terminal connection) B input at OFF→ON
9 OFF 1 2 3 3 3 2 1 0
11 Input signal MAX. frequency 50 kHz 25 kHz 12.5kHz
COMP YH- YS-

e) 2-phase counter (K0 to K5)


FX2N-1HC

12
XP5 YH+ YS+

DIS
t1 t1 t1 :Rise/fall time is 3μs or less
PRE 13 t2 :ON/OFF pulse 6μs or more (at 50kHz) • 1 edge-count (K0, K1) • 2 edge-count (K2, K3)
16
YH 14 t2 t2 t3 :Phase difference between A and B is 3.5μs or
YS
15 Pulse shape t3
more (at 50kHz) Phase A Phase A
t3 PRESET(Z phase) input 100μs or more +1 +1 -1 -1 +1 +1 -1 -1
4(0.16) DISABLE (count prohibit) input 100μs or more
10 Phase B Phase B

1 Mounting hole 2-φ4.5 (0.18) Format Automatic UP/DOWN (however, when on 1-phase 1-input mode, UP/DOWN is Phase B input OFF Phase B input ON Phase B input OFF Phase B input ON
10 YH·YS terminal (M3 (0.12) screws) determined by a PLC command or an input terminal.) →ON while phase →OFF while phase →ON while phase →OFF while phase
2 Extension cable and connector 11 DISABLE terminal (M3 (0.12) screws) A input ON Count A input ON Count A input ON Count A input ON Count
3 UP LED DIS (DISABLE) LED When 32-bit is specified : -2,147,483,648 to +2,147,483,647
12 Range When 16-bit is specified : 0 to 65,535 (upper limit can be user specified)
up by 1. down by 1. up by 1. down by 1.
4 DN (Down) LED 13 PRESET LED
5 φA LED 14 YH LED Counting Each output is set when the present value of the counter matches with the • 4 edge-count (K4, K5)
6 φB LED 15 YS LED specification compare value (which is transferred from the PLC), and is switched OFF by a UP COUNT DOWN COUNT
7 POWER LED 16 DIN rail clip reset command from the PLC.
Comparison Phase A input Phase A input
8 φA, φB terminal (M3 (0.12) screws) 17 Attachment groove for 35 (1.38) wide DIN rail Type YH : Direct output processed by hardware. +1 +1 +1 +1
-1 -1 -1 -1
9 PRESET terminal (M3 (0.12) screws) YS : Software processed output with worst delay time of 300μs.
(Therefore, when the input frequency is 50 kHz, there is a worst case delay of Phase B input Phase B input
15 input pulses.)
<Using the solderless termination>
YH + :transistor output for YH output YH+
6.2mm • Use crimp terminals of the dimensions specified in the left figure. YH − :transistor output for YH output YS+
(0.24 inches) Types of
or less • Secure the terminals using a tightening torque of 0.5 to 0.8 N·m Output outputs YS + :transistor output for YS output
YH-
FOR M3 signal YS − :transistor output for YS output NPN
(0.12 inches) Do not tighten terminal screws with a torque outside the above- YS-
6.2mm mentioned range. Output capacity 5V to 24V DC 0.5A
(0.24 inches)
or less
Failure to do so may cause equipment failures or malfunctions.
I/O occupation 8 points taken from the FX2N expansion bus (can be either inputs or outputs)
• Wire only to the module terminals discussed in this manual.
Power from base 5V DC 90mA(Internal power supply from main unit or powered extension unit)
Leave all others vacant.
2) BFM #3, #2 Ring length 10) BFM #29 Error status
Stores the data that specifies the length of the UP
Error status in the FX2N-1HC can be checked by reading the contents of b0 to b7 of BFM #29 to 6. SYSTEM BLOCK DIAGRAM
16-bit counter (default: K65,536). 98 99 0 1 auxiliary relays of the PLC.
T0 Counter mode BFM #0 16-bit
Error status Reset
X 002 DOWN BFM#29 Error status Ring upper limit value
counter
BFM #29 BFM #4 b8
D T0 K2 K2 K100 K1 1 0 99 98 BFM #3,#2
b0 Set when any of b1 to b7 is ON. DOWN/UP command for YH output
T0 Comparisor data
• In the above example, K100 is written into BFMs #3 and • When ring length K100 is specified, b1 Set when the value of the ring length is written incorrectly (other than K2 to K65,536).
BFM #1
1-phase BFM #13,#12 BFM #4 b1
#2 of special block No.2 as a 32-bit binary value (BFM #3 the value of the counter changes as BFM #4
b2 Set when the preset value is written incorrectly. 1-input
= 0, BFM #2 = 100). Permitted values: K2 to K65,536. shown above. When value ≥ ring length in counter b11 S YH
b3 Set when the compare value is written incorrectly. Matched
Note: Write counter data with (D) TO 16-bit counter mode. ØB BFM #4 b9
Count pulse
b4 Set when the current value is written in correctly. ØA R BFM#4
• Count data is always handled as a pair from two 16-bit values in this special function block. 16-bit 2’s DOWN/UP b3
b5 Set when the counter overflows the upper limit. When the upper or lower limit is for YS output
complement value stored in the registers of the PLC cannot be used. T0 Comparision data
b6 Set when the counter overflows the lower limit. exceeded on a 32-bit counter. DISABLE
Counter
• When you are writing a positive value between K32,768 and K65,535, the data should be treated as a Count start BFM#15,#14 BFM#4 b2
b7 Set when the FROM/TO command is used incorrectly. 16/32-bit
32-bit value even when a 16-bit ring counter is used. 1-phase/ BFM#4
BFM #4 b0 b12 S YS
• When transferring counter data to/from this special function block, always use the 32-bit forms of the b8 Set when the counter mode (BFM#0) is written incorrectly. When outside of K0 to K11 2-phase Matched

FROM/TO instructions ((D) FROM, (D) TO). b9 Set when the BFM number is written incorrectly. When outside of K0 to K31 R
BFM#4 b10
ØZ *1
3) BFM #4 Command b10-b15 Undefined
PRESET
1. When b0 is set to ON and the DISABLE input Initiali-
BFM#4 When ’0’(OFF) When ’1’(ON) There error flags can be reset by b8 of BFM #4.
terminal to OFF, the counter is permitted to zation
BFM#4 b4 Current value
b0 Count prohibit Count permit start counting input pulses. 11) Model identification code number BFM #30
register Sampling cycle
2. Unless b1 is set to ON, YH (hardware This BFM stores the identification number for FX2N-1HC. T0 Preset data BFM #21,#20 300ms
b1 YH output prohibit YH output permit compared output) does not turn ON. The identification number for the FX2N-1HC unit is K4010. BFM#11,#10
By reading this identification number, the user may create built-in checking routines to check whether T0
b2 YS output prohibit YS output permit 3. Unless b2 is set to ON, YS (software Direct initialization
Compare results
compared output) does not turn ON. the physical position of the FX2N-1HC matches to that of the software. BFM #26 *1 Comparison is made at
YH/YS independent Mutual reset the next sampling point
b3 4. When b3=ON, YS output is reset if YH output Maximum value after an input count.
action action
is set, and YH output is reset if YS output is 4. EXAMPLE PROGRAM BFM #23,#22
Terminal status
BFM #27
b4 Preset prohibit Preset permit set. When b3=OFF, YH and YS output act Model code Minimum value
independently, and do not reset each other. Please use the following program as a guide whenever you use the FX2N-1HC unit. Other instructions to BFM #30 BFM #25,#24
b5 to b7 Undefined read the current value of the counter, status etc. can be added as required.
5. When b4=OFF, preset function by the
b8 No action Error flag reset PRESET input terminal is disabled. M8002
6. When b8 is set to ON, all error flags are reset.
T0 K2 K0 K11 K1 1. K11 is written into BFM #0 of special function block
No.2. The counter input is 16-bit 1-phase. Please use
「电器电子产品有害物质限制使用标识要求」的表示方式
b9 No action YH output reset Initial
a pulse command for this initialization.
7. When b9 is set to ON, YH output is reset. pulse
b10 No action YS output reset 2. K1234→BFM #3, #2 (special function block No.2) Note: This symbol mark is for China only.
8. When b10 is set to ON, YS output is reset. D T0 K2 K2 K1234 K1 The ring length can be specified when a 16-bit
b11 No action YH output set 9. When b11 is set to ON, YH output is set ON. counter is specified. 含有有害6物质的名称,含有量,含有部品
X 014  本产品中所含有的有害 6 物质的名称,含有量,含有部品如下表所示。
b12 No action YS output set 10.When b12 is set to ON, YS output is set ON. T0 K2 K1 K1 K1 3. UP/DOWN direction should be specified for 1-phase
1-input software determined UP/DOWN counter.
4) BFM #11, #10 Preset data M8002
产品中有害物质的名称及含量
4. K1000→BFM #13, #12
• Data to used as the initial value when the counter starts to count. D T0 K2 K12 K1000 K1
Set the compare value for YH output. 有害物质
• Data becomes valid when b4 of BFM #4 is set to ON, and PRESET input terminal changes from OFF 5. K900→BFM #15, #14 部件名称 铅 汞 镉 六价铬 多溴联苯 多溴二苯醚
to ON. The default value of the counter is zero. You can change it by writing a value into BFM #11 and D T0 K2 K14 K900 K1
Set the compare value for YS output (not necessary if (Pb) (Hg) (Cd) (Cr(VI)) (PBB) (PBDE)
#10 or by using the command below. only YH output is used).
• The initial counter value can also be set by writing the data directly into BFM #21 and #20 (current X 010
外壳 ○ ○ ○ ○ ○ ○
M10 Count allowed 可编程控制器
value of the counter). 印刷基板 × ○ ○ ○ ○ ○
M8000
5) BFM #13, #12 Comparison value for YH output, BFM #15, #14 Comparison value for YS output M11 to M13
Output allowed 6. Note that counting only occurs if count prohibit is 本表格依据SJ/T 11364的规定编制。
Mutual reset OFF. Also, outputs will not be set from the counting
• After comparing the current value of the counter with the value process at all if the relevant output prohibit are set in ○:表示该有害物质在该部件所有均质材料中的含量均在GB/T 26572规定的限量要求以下。
C
e

written in BFM #13 and #12, BFM #15 and #14, the hardware and X 011
ur
lu

the command register. Please reset the error flags ×:表示该有害物质至少在该部件的某一均质材料中的含量超出GB/T 26572规定的限量要求。
re
va

M14 Preset allowed


nt

software comparator in the FX2N-1HC outputs the comparison and YH/YS output before you start. The mutual reset
nt

va
re

and preset initialization commands can be used as 基于中国标准法的参考规格: GB/T15969.2


lu

result.
ur

Current value Current value


e
C

X 012 required.
PLS M18 Error flag reset
• YH, YS output will not turn ON if you use PRESET or the TO
instruction to set the counter value equal to the comparison BFM #4 BFM #4 This manual confers no industrial property rights or any rights of any other kind, nor does it confer
b9,b10 b9,b10 X 013 any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems
value. It will turn ON only when a match occurs by the counting of PLS M19 and M20 YH YS output reset
input pulses. involving industrial property rights which may occur as a result of using the contents noted in this
Coincidence output Coincidence output
• The YS comparison operation takes about 300μs, and if a match M8000
7. (M25 to M10) →BFM #4 (b15 to b0) command
manual.
T0 K2 K4 K4M10 K1
occurs, the output goes ON. RUN
monitor Guidelines for the safety of the user and protection of the FX2N-1HC special
• Output occurs when the current value becomes equal to the compare value but only if b1 and b2 of 8. BFM (#21, #20)→Reads the current value to the data
BFM #4 are ON. Once an output is set, it remains ON until it is reset by b9 or b10 of BFM #4. If b3 of D FROM K2 K20 D2 K1
registers D3 and D2. function block
BFM #4 is ON, however, one of the outputs is reset when the other is set. • This manual has been written to be used by trained and competent personnel. This is
defined by the European directives for machinery, low voltage and EMC.
6) Counter current value (BFM #21, 20) 5. DIAGNOSTICS • If in doubt at any stage during the installation of the FX2N-1HC always consult a professional
The current value of the counter can be read by the PLC. It will not be the correct value during electrical engineer who is qualified and trained to the local and national standards. If in doubt
high-speed operations because of the communication delay. The current value of the counter can be 5.1 Preliminary checks about the operation or use of the FX2N-1HC please consult your local Mitsubishi Electric
forcibly changed by writing a 32-bit value into the appropriate BFMs from the PLC. representative.
1) Check that the I/O wiring and extension cable of the FX2N-1HC are properly connected. • Under no circumstances will Mitsubishi Electric be liable or responsible for any consequential
7) Maximum count value (BFM #23, 22) damage that may arise as a result of the installation or use of this equipment.
2) 5V 90mA power is supplied from the main or extension units for the FX2N-1HC. Check that there is no
These store the maximum and minimum value reached by the counter. If the power is turned off, the • All examples and diagrams shown in this manual are intended only as an aid to
power overload from this and other extension blocks.
stored data is cleared. understanding the text, not to guarantee operation. Mitsubishi Electric will accept no
3) The counter works correctly only when data such as the counter mode (set with a pulse command), responsibility for actual use of the product based on these illustrative examples.
8) Comparison status (BFM #26) the TO command, the compare value, etc. are appropriately specified. Remember to initialize the • Owing to the very great variety in possible application of this equipment, you must satisfy
BFM#26 When ’0’ (OFF) When ’1’ (ON) BFM#26 When ’0’ (OFF) When ’1’ (ON) count (BFM #4 b0), preset (BFM #4 b4), and output (BFM #4 b2, b1) prohibits. Reset the YH/YS yourself as to its suitability for your specific application.
outputs before you start.
Set value ≤ current Set value > current Set value ≤ current Set value > current
b0 value value b3 value value 5.2 Error checking
Manual number : JY992D65401
YH b1 Set value ≠ current Set value = current YS b4 Set value ≠ current Set value = current The following LEDs on the main panel of the FX2N-1HC may help you to troubleshoot the unit.
value value value value
• φA, φB :Goes on/off as φA, φB input turn ON/OFF. It can be checked by rotating the encoder Manual revision: H
Set value ≥ current Set value < current Set value ≥ current Set value < current slowly.
b2 b5
value value value value • UP, DN :Lights up to indicate whether the counter is going up (UP) or down (DN). Date : August 2018
BFM #26 is for reading only. Write commands from the programmable controller are ignored. • PRESET and DIS:The appropriate LED lights up when the PRESET terminal or the DISABLE terminal
is ON.
9) Terminal status (BFM #27) • YH, YS :The appropriate LED lights up when YH/YS output is turned on.
BFM#26 When ’0’ (OFF) When ’1’ (ON) BFM#26 When ’0’ (OFF) When ’1’ (ON) You can check the error status by reading the content of BFM #29 to the PLC. HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN

Error contents are shown in section 3.3 (10).


b0 PRESET input is OFF. PRESET input is ON. b2 YH output is OFF. YH output is ON. Effective August 2018
b1 DISABLE input is OFF. DISABLE input is ON. b3 YS output is OFF. YS output is ON. Note that inputting the pulse higher than the maximum frequency may cause mis-counting to JY992D65401H Specifications are subject to
b4-b15 Undefined 1HC or a FROM/TO error to the PLC main unit. change without notice

You might also like