Download FX2N-1HC SPECIAL FUNCTION BLOCK USER'S GUIDE

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