Command
Description
Range
Min.
Max.
C
O
U
N
T
E
R
M20
* WORK COUNTER SET
The initial value of work counter is set in the designated value.
The work counter is used for counting the total output production.
If the display mode is set at counter mode ( mode 1), the work counter
and general-purpose counter 0 is displayed. In order to display the total
output production, the initial value will be set in "0". Then, the work
counter is increased by 1 when program meets "M21". In order to
display the remainder of daily production, the initial value will be set in
the target value. Then, the work counter is decreased by 1 when
program meets "M22".
0
60000
M21
* WORK COUNTER UP
It increases the work counter by 1.
It is used for the display of
total output production. In order to display the
total output production, the initial value will be set in "0". Then, the work
counter is increased 1 by 1 when the program meets this command.
NO
NO
M22
* WORK COUNTER DOWN
It decreases the work counter by 1.
It is used for the display of remainder production. In order to display the
remainder of daily production, the initial value will be set in the target
value. Then, the work counter is decreased 1 by 1 when the program
meets this command.
NO
NO
M23
* GENERAL-PURPOSE COUNTER SET
The initial value of designated general-purpose counter (0~3) is set in
designated value. The general-purpose counter can be used for various
purposes. If the display mode is set at counter mode ( mode 1), the
work counter and general-purpose counter 0 is displayed at screen.
[Usage]
Counter no.
initial value
(0 ~ 3)X10000
+ (0000 ~ 9999)
0
39999
[Example]
File Step Code
Data
Description
00
13
M23
+10000
Initial value of counter1 is set in "0"
00
14
G00
+1000
Move 10.00 mm
00
15
M24
+1
Counter1 up by 1
00
16
M29
+10100
Compare counter1 with 100
00
17
M28
+14
If less than 100, go to step 14
00
18
M30
If equal 100, then program end
M24
* GENERAL-PURPOSE COUNTER UP
Increases the designated general-purpose counter (0~3) by 1.
0
3
M25
* GENERAL-PURPOSE COUNTER DOWN
Decreases the designated general-purpose counter (0~3) by 1.
0
3
M29
* GENERAL-PURPOSE COUNTER COMPARE
Compare the designated general-purpose counter (0~3) with designated
value and prepare the conditions of counter relative jump commands
(M26,M27,M28). The counter relative jump commands should be declared
after the execution of "M29"
[Usage]
Counter no.
target value
(0 ~ 3)X10000
+ (0000 ~ 9999)
0
39999
Summary of Contents for Tango-B series
Page 68: ......
Page 111: ...APPENDIX ...