X21
C255
K-200
X20
RST C 2 55
X21
C251
K-5
X20
RST C 2 5 1
When the X21 is ON and the X7 (designated start-up input of C255) is
ON, the C255 is activated to receive the counting signals from X3 and X4.
When X3 is ON and X4 changes from OFF to ON, the present value of
C255 increases by 1.
When X3 is ON and X4 changes from ON to OFF, the present value of
C255 decreases by 1.
When X21 is ON, C251 is activated to receive pulse signals from input
point X0 (A-phase) and X1 (B-phase). Then bases on the sequence of
input signals to perform Up/Down count.
when X20 is ON, the RST instruction is executed. C251's present value is
reset to 0, and its output contact becomes OFF.
The A/B phase high speed counter is exclusively for receiving A/B phase pulses from a rotary or linear encoder.
When the X21 is ON and A/B phase pulses entering from X0 and X1 for
the C251.
When X0 is ON and X1 turns from OFF to ON, the present value of C251
increases by 1.
When X0 is ON and X1 turns from ON to OFF, the present value of C251
decreases by 1.
When the start-up signal X21 is ON and there are orderly pulses entering from X0 and X1, the present value of C251
will Up/Down change.
When X0 is ON (A-phase pulse is ON) and X1 turns from OFF to ON (B-phase pulse turns from OFF to ON),
the present value of C251 increases by 1.
When X0 is ON (A-phase pulse is ON) and X1 turns from ON to OFF (B-phase pulse turns from ON to OFF),
the present value of C251 decreases by 1.
The Up/Down counting direction of the A/B Phase High Speed Counter C251~C255 can be watched by to monitor
the M9251~M9255. The related relay OFF means up counting; ON means down counting.
The rotary encoder which is connected to a motor shaft that produces corresponding A/B phase pulse according to
the motor's forward/backward rotation. This A/B phase pulses are transmitted to C251's A/B phase inputs. Therefore,
the present value of C251 increases/decreases according to the motor's moving direction.
The C251 A/B phase high speed counter should use the user program to
control the activation and reset processes.
When the X20 is ON, the RST instruction is executed. The C252's present value is reset to “0” and its output
contact becomes OFF. If the application of the C252 is not demanded to reset by the program, could ignore this
line.
When the X2 (designated built-in reset input of C252) is ON, the present value of C252 will be reset to “0” and its
contact will become OFF.
The set value of C252 is provided by the content value of D11 and D10.
The C252~C253 at the Mode 1 are A/B phase high speed counters which should use the program to activate
then by the program or built-in reset input to clear.
When the X20 is ON, the RST instruction is executed. The C255's present value is reset to “0” and its output
contact becomes OFF. If the application of C255 is not demanded to reset by the program, could ignore this line.
When the X2 (designated built-in reset input of C255) is ON, the present value of C255 will be reset to “0” and its
contact will become OFF.
The C254~C255 at the Mode 1 are A/B phase high speed counters which should use the program and start-up
input to activate then by the program or built-in reset input to clear.
If the output contact was ON
Rotary encoder reverses here
Contact point of C251
X21
C252
D10
X20
RST C2 5 2
28
2-7-3 A/B Phase High Speed Counter
Reset signal X20
Start-up signal X21
A-phase pulse X0
B-phase pulse X1
Present value of C251