Professional Documents
Culture Documents
Quadrature Decoder - Rss LAD 2 - Total Rungs in File 6
Quadrature Decoder - Rss LAD 2 - Total Rungs in File 6
RSS
LAD 2 - --- Total Rungs in File = 6
0000
Quadrature Decoder with Up Down Counter. This logic takes inputs from a quadrature encoder and return a relative position in
Counter C12:0.ACC.
Useful as a potentiometer or thumbwheel replacement. Also good for machine position feedback.
Make sure that your PLC scan rate is at least 2X the maximum encoder input rate.
This rung detects channel A & B transitions.
Quadrature Encoder
Quadrature Encoder
Quadrature Encoder
Channel A Leading
Channel A Leading
Channel A
Edge OSR
Edge One Shot
B10:0
B11:0
B11:0
OSR
0
0
4
Quadrature Encoder
Channel B
B10:0
1
Quadrature Encoder
Channel A
B10:0
0
Quadrature Encoder
Channel B
B10:0
1
Quadrature Encoder
Channel B Leading
Edge OSR
B11:0
OSR
1
Quadrature Encoder
Channel B Leading
Edge One Shot
B11:0
Quadrature Encoder
Channel A Trailing
Edge OSR
B11:0
OSR
2
Quadrature Encoder
Channel A Trailing
Edge One Shot
B11:0
Quadrature Encoder
Channel B Trailing
Edge OSR
B11:0
OSR
3
Quadrature Encoder
Channel B Trailing
Edge One Shot
B11:0
Quadrature Encoder
Channel B
B10:0
Quadrature Encoder
Channel B Leading
Edge One Shot
B11:0
Quadrature Encoder
Channel A
B10:0
Quadrature Encoder
Channel A Trailing
Edge One Shot
B11:0
Quadrature Encoder
Channel B
B10:0
0001
Page 1
1 = Clockwise
Rotation
0 = Counter
Clockwise Rotation
B11:0
L
8
QUADRATURE DECODER.RSS
LAD 2 - --- Total Rungs in File = 6
Quadrature Encoder
Channel B Trailing
Edge One Shot
B11:0
Quadrature Encoder
Channel A
B10:0
Quadrature Encoder
Channel B
B10:0
Quadrature Encoder
Channel B Leading
Edge One Shot
B11:0
Quadrature Encoder
Channel A
B10:0
Quadrature Encoder
Channel A Trailing
Edge One Shot
B11:0
Quadrature Encoder
Channel B
B10:0
Quadrature Encoder
Channel B Trailing
Edge One Shot
B11:0
Quadrature Encoder
Channel A
B10:0
0002
1 = Clockwise
Rotation
0 = Counter
Clockwise Rotation
B11:0
U
8
Page 2
QUADRATURE DECODER.RSS
LAD 2 - --- Total Rungs in File = 6
Quadrature Encoder
Channel A Trailing
Edge One Shot
B11:0
6
Quadrature Encoder
Channel B Trailing
Edge One Shot
B11:0
7
1 = Clockwise
Rotation
0 = Counter
Clockwise Rotation
B11:0
1 = Clockwise
Rotation
0 = Counter
Clockwise Rotation
B11:0
Relative Encoder
Position
CTU
Count Up
Counter
C12:0
Preset
32767<
Accum
0<
Relative Encoder
Position
CTD
Count Down
Counter
C12:0
Preset
32767<
Accum
0<
CU
DN
CD
DN
Relative Encoder
Position
C12:0
RES
4
0005
Page 3
END