1. Encoder 10 bit EAC58C10-GP6PPDR-
1024.BT
+Ub 0v G0 G1 G2 G3 G4 G5 G6 G7 G8 G9 U/D
RD BK GN YE BU BN OG WH GY VT GY/OG WH/GN RD/BU
red black green yellow blue brown orange white grey violet Grey/orange White/green Read/blue
畛
24VDC
en
0VDC
Xanh
L叩
c但y
(L畛c)
Vng Xanh
da
tr畛i
(Lam)
N但u Cam Tr畉ng X叩m T鱈m X叩m/cam Tr畉ng/xanh
LC (l畛c)
畛/ xanh da tr畛i
(Lam)
C坦10 bit t鱈n hi畛u t動董ng 動董ng 畛 ph但n gi畉i 0-1023, k箪hi畛u t畛 G0 畉n G9, c坦2
d但y ngu畛n sd 24VDC, m畛t d但y U/D mu RD/BU 畛 chuy畛n ch畉 畛 畉m xu担i hay
ng動畛c c畛a Encoder (Up/Down), n畉u U/D=0v th狸 畉m l湛i khi quay xu担i kim H.
Encoder s畛 d畛ng m達Gray, ph畉i chuy畛n sang m達Binary m畛i c坦th畛 sd 動畛c.
V狸 Encoder c坦 10 bit ( 動a vo 10 畉u vo I ) n棚n ph畉i s畛 d畛ng 1 word 畛 畛c gi叩
tr畛 c畛a ch炭ng, nh動 v畉y 6 bit 畉u c畛a word 坦 ta ph畉i g叩n gi叩tr畛 0, 10 bit c嘆n l畉i c畛a
word t畛 bit 9 v畛 bit 0 s畉 動畛c g叩n theo quy lu畉t: G9 bit9; l畉y bit9 xor G8
bit8; l畉y bit8 xor G7 bit7; .l畉y bit1 xor G0 bit0.
Gi叩tr畛 c畛a t畛 坦 s畉 thu畛c 0-1023 khi xoay h畉t m畛t v嘆ng Encoder, khi xoay qu叩1
v嘆ng th狸gi叩tr畛 c畛a t畛 s畉 l畉p l畉i chu k畛 0-1023. N畉u d但y U/D 動畛c c畉p 24VDC th狸
gi叩tr畛 c畛a Encoder s畉 畉m ng動畛c v畛i chi畛u quay khi U/D=0VDC, vgi叩tr畛 thay
畛i hi畛n th畛 s畉 l Xng動畛c=1023-Xthu畉n. VD: Gi畉 s畛 Encoder ang quay thu畉n, gi叩
tr畛 c畛a word ang tng d畉n 畉n 522, n畉u c畉p 24VDC cho U/D th狸gi叩tr畛 c畛a word
s畉 hi畛n th畛 l1023-522 = 501, vn畉u quay thu畉n ti畉p th狸gi叩tr畛 501 s畉 gi畉m d畉n.
MW0 ( DBx.DBWy )
MB0 MB1
7 6 5 4 3 2 1(9) 0(8) 7 6 5 4 3 2 1 0
0 0 0 0 0 0 I1.1
(G9)
I1.0
(G8)
I0.7
(G7)
I0.6
(G6)
I0.5
(G5)
I0.4
(G4)
I0.3
(G3)
I0.2
(G2)
I0.1
(G1)
I0.0
(G0)
A I(M,L,) x.x
AN I(M,L,) x.x
= DB1.DBX 0.2
= DB1.DBX 0.3
= DB1.DBX 0.4
= DB1.DBX 0.5
= DB1.DBX 0.6
= DB1.DBX 0.7
A I 1.1
= DB1.DBX 0.1
X DB1.DBX 0.1
2. X I 1.0
= DB1.DBX 0.0
X DB1.DBX 0.0
X I 0.7
= DB1.DBX 1.7
X DB1.DBX 1.7
X I 0.6
= DB1.DBX 1.6
X DB1.DBX 1.6
X I 0.5
= DB1.DBX 1.5
X DB1.DBX 1.5
X I 0.4
= DB1.DBX 1.4
X DB1.DBX 1.4
X I 0.3
= DB1.DBX 1.3
X DB1.DBX 1.3
X I 0.2
= DB1.DBX 1.2
X DB1.DBX 1.2
X I 0.1
= DB1.DBX 1.1
X DB1.DBX 1.1
X I 0.0
= DB1.DBX 1.0
L DB1.DBW0
(sd FC 畛 gia c担ng thnh gi叩tr畛 mong mu畛n: chi畛u cao, g坦c quay, qu達ng 動畛ng v.v.)
Encoder Pepperl + Fuchs GmbH
Type: FVM58N-011K2R3GN-1213 ; m達Gray.
Steps/revolution: 8192 (=2^13): 畛 ph但n gi畉i c畛a 1 v嘆ng quay.
No. of revolutions: 4096 (=2^12): S畛 v嘆ng quay c畛a Encoder 畛 h畉t 1 chu k畛 畉m,
畛 ph但n gi畉i c畛a 1 chu k畛 畉m l2^25=33.554.432;
Bit 1 Green Bit 9 GY-PK Bit 17 WH-PK Bit 25 PK-GN
Bit 2 Yellow Bit 10 RD-BU Bit 18 PK-BN GND WH (0v)
Bit 3 Grey Bit 11 WH-GN Bit 19 WH-BU Ub BN (24v)
Bit 4 Pink Bit 12 BN-GN Bit 20 BN-BU V/R GY-GN
Bit 5 Blue Bit 13 WH-YE Bit 21 WH-RD Latch YE-GY
Bit 6 Red Bit 14 YE-BN Bit 22 BN-RD Preset YE-PK
Bit 7 Black Bit 15 WH-GY Bit 23 WH-BK
Bit 8 Violet Bit 16 GY-BN Bit 24 BN-BK
+ C畉p ngu畛n 24VDC vo d但y N但u v0VDC vo d但y tr畉ng.
3. + D但y V/R 畛 quy 畛nh 畉m ti畉n hay l湛i khi quay theo chi畛u kim H, n畉u V/R=0
th狸 畉m ti畉n n畉u quay xu担i kim H. (Ch動a ki畛m ch畛ng).
+ D但y Latch 畛 l動u t畉m th畛i gi叩tr畛 c畛a Encoder, n畉u Latch=1 (24V) th狸gi叩tr畛 hi畛n
th畛i c畛a Encoder s畉 t畉m 動畛c gi畛 l畉i,k畛 c畉 E v畉n xoay, khi Latch=0 th狸E l畉i 畉m
ti畉p v畛i gi叩tr畛 坦.
+ D但y Preset d湛ng 畛 reset E v畛 0, khi Preset=1 (24v) th狸E s畉 reset v畛 0.
+ M畛i m畛t v嘆ng quay c畛a E c坦d畉i 2^13=8192. Khi E ang 畛 gi叩tr畛 0, n畉u xoay
h畉t 1 v嘆ng xu担i kim H th狸 gi叩 tr畛 = 2^13 = 8192; quay h畉t 2 v嘆ng th狸gi叩tr畛
=2^14; h畉t 4 v嘆ng th狸gi叩tr畛 = 2^15; 8 v嘆ng th狸 = 2^16; 16 v嘆ng th狸 = 2^17;.;
4096 v嘆ng th狸gi叩tr畛 = 2^25 =33554432. Nh動 v畉y ph畉i xoay h畉t 4096 v嘆ng th狸E
m畛i h畉t m畛t chu k畛. N畉u t畉i gi叩tr畛 0 m xoay ng動畛c kim H th狸 E s畉 畉m l湛i t畛
33554432 v畛 0.
+ T湛y thu畛c y棚u c畉u c担ng ngh畛 mta sd bao nhi棚u bit c畛a E, n畉u sd 17 - 25 bit ta
ph畉i sd 1 DoubleWord 畛 ghi gi叩tr畛 c畛a E.
+ Tr動畛ng h畛p ta s畛 d畛ng s畛 bit theo th畛 t畛 nh動ng kh担ng d湛ng h畉t c畉 25 bit th狸khi
quay theo 1 chi畛u, E s畉 畉m t畛 0 畉n 2n
(n ls畛 bit s畛 d畛ng) r畛i 畉m l湛i v畛 0 r畛i
l畉i 畉m ti畉n 畉n 2n
r畛i l畉i 畉m l湛i. Nh動ng ch動董ng tr狸nh v畉n ph畉i gi畛 nguy棚n nh動
b棚n d動畛i.
+ N畉u ta vi畉t ch動董ng tr狸nh cho E m ch畛 vi畉t cho n bit 畉u (n<16) th狸gi叩tr畛 thu
動畛c s畉 lt畛 -2n-1
歎2n-1
: (SD o畉n ch動董ng tr狸nh mu 畛 nh動ng tr動畛c 坦 ch竪n l畛nh
A "bb16" v cu畛i o畉n 坦 thay b畉ng l畛nh L DB1.DBW 2 .
A I 3.7
AN I 3.7
= DB1.DBX 0.1
= DB1.DBX 0.2
= DB1.DBX 0.3
= DB1.DBX 0.4
= DB1.DBX 0.5
= DB1.DBX 0.6
= DB1.DBX 0.7
A "bb25"
X DB1.DBX 2.6
X "bb14"
= DB1.DBX 2.5
X DB1.DBX 2.5
X "bb13"
= DB1.DBX 2.4
X DB1.DBX 2.4
X "bb12"
= DB1.DBX 2.3
X DB1.DBX 2.3
X "bb11"
MD0
MW0 MW2
MB0 MB1 MB2 MB3
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
X X X X X X X X X X X X X X X X X X X X X X X X X
I3 I2 I1 I0
4. = DB1.DBX 0.0
X DB1.DBX 0.0
X "bb24"
= DB1.DBX 1.7
X DB1.DBX 1.7
X "bb23"
= DB1.DBX 1.6
X DB1.DBX 1.6
X "bb22"
= DB1.DBX 1.5
X DB1.DBX 1.5
X "bb21"
= DB1.DBX 1.4
X DB1.DBX 1.4
X "bb20"
= DB1.DBX 1.3
X DB1.DBX 1.3
X "bb19"
= DB1.DBX 1.2
X DB1.DBX 1.2
X "bb18"
= DB1.DBX 1.1
X DB1.DBX 1.1
X "bb17"
= DB1.DBX 1.0
X DB1.DBX 1.0
X "bb16"
= DB1.DBX 2.7
X DB1.DBX 2.7
X "bb15"
= DB1.DBX 2.6
= DB1.DBX 2.2
X DB1.DBX 2.2
X "bb10"
= DB1.DBX 2.1
X DB1.DBX 2.1
X "bb9"
= DB1.DBX 2.0
X DB1.DBX 2.0
X "bb8"
= DB1.DBX 3.7
X DB1.DBX 3.7
X "bb7"
= DB1.DBX 3.6
X DB1.DBX 3.6
X "bb6"
= DB1.DBX 3.5
X DB1.DBX 3.5
X "bb5"
= DB1.DBX 3.4
X DB1.DBX 3.4
X "bb4"
= DB1.DBX 3.3
X DB1.DBX 3.3
X "bb3"
= DB1.DBX 3.2
X DB1.DBX 3.2
X "bb2"
= DB1.DBX 3.1
X DB1.DBX 3.1
X "bb1"
= DB1.DBX 3.0
L DB1.DBD 0