MICRO TSX37 USE OF INCREMENTAL ENCODER WITH INTEGRATED COUNTER AT CHANNEL 11.

MICRO TSX37
USE OF INCREMENTAL ENCODER WITH INTEGRATED COUNTER AT CHANNEL 11.

At following figure 1 is the connection of the P.L.C with TELEFAST 2



Figure 1




Figure 2

At our example we used P.L.C Micro TSX3722 and encoder XCC1510PR01K
with 11-30V/push-pull/100cpt

In Fig. 2 connection with the sensors, which is similar with those of the ENCODER
Cables and color of encoder and TELEFAST 2

RED = 24Vdc - 26
BLACK = 0V - 27
GREEN = Α - 4
BROWN = Α - 1
YELLOW = Β - 8
ORANGE = Β - 10
And we connect the Α-, Β-, και 0V together. Ζ and Preset are Not Connected.

The small program is analysed
The small code program named INCOUNTERUPDOWN.STX and you could download it HERE
We use two Setpoints (High & Low). When passed from High setpoint an output is activated %Q2.1. Then when the rotation of the movement will inversed, then passing through Low setpoint another output will be activated %Q2.0, and finally when under 15 steps ouputs are zeroing.
We used %MD0 for the Highsetpoint and %MD2 for Lowsetpoint which are give values at the following

%MD0=%MD0.11.10 Value of High Setpoint
%MD2=%MD0.11.12 Value of Low Setpoint όπου
0 = Module
11 = Counter0

Making Enable the Counter setting the %Q0.11 with a contact %Ι1.4

Making Preset the Counter setting the %Q0.11.1 with a contact π.χ %Ι1.7

Making Reset Preset τthe Counter setting the %Q0.11:X1

With %I0.11.9 we know every momment the direction of movement of the Εncoder.

%I0.11.7 (Current Value >Highsetpoint) Encoder Value has passed the Highsetpoint

%I0.11.8 (Current Value>Lowsetpoint). Encoder Value has passed the Lowsetpoint

Finally with WRITE_PARAM %CH0.11 we could change the High and Low setpoints giving values at %MD0 & %MD2.

In the following figure 3 is the Hardware Configuration of the PLC Internal Counter.


Figure 3

Use of the Incremental encoder is only applied at Counter0 (CNT1 – CHANNEL 11)

For more info visit the site schneider-electric at the category
P.L.C Micro . Hardware Installation Counting.