Chapter 3 - page 9
MCO-TCO work mode
3.3.3 ASSOCIATED ROUTINE
The routine associated with the cycle must be defined by the OEM (see programming manual). It must
contain all the instructions necessary to execute the canned cycle.
There is a routine associated with each cycle. Routine 9001 for cycle 001, 9002 for cycle 002 and
so on up to 9200 which is for cycle 200.
When the configuration file of the cycle uses a (P100=W13) type statement, the auxiliary routine must
also be defined.
There is an auxiliary routine for each cycle. Routine 9301 for cycle 001, 9392 for cycle 002 and so
on up to 9500 which is for cycle 200.
Therefore, the 2 routines associated with the cycle are:
Basic routine associated with the cycle
9000 + cycle Nr.
Auxiliary routine associated with the cycle
9300 + cycle Nr.
When the cycle is executed, the associated routine is called upon indicating at the local parameters
A - Z (P0 - P25) the value used to define each field.
Parameter A (P0) indicates the value of the W1 field, parameter B (P1) that of the W2 field and so
on up to parameter Z (P25) which indicates the value of the W26 field. If there are more fields, use
global parameters.
The data shown by each parameter depends on the associated data type.
If it is a numeric data (coordinates, feedrates, etc.) .................................. The assigned value
If it is the number of a profile ..................................................................... The assigned value
(The call to the profile must be done in the routine)
If it is an option among several available (button set) ................................. Values 0, 1, 2, ...
If it is an icon with several representations (multiple in Wgdraw). ............ Values 0, 1, 2, ...
The following table shows the values assumed by the local parameters when customizing cycle 001,
defined earlier, with the indicated values.
Field
Value
Parameter
Xi
W1
11
A
(P0)
= 11
Zi
W2
22
B
(P1)
= 22
Xf
W3
33
C
(P2)
= 33
Zf
W4
44
D
(P3)
= 44
RPM / CSS
W5
RPM
E
(P4)
= 0
S
W6
1234
F
(P5)
= 1234
SMAX
W7
9999
G
(P6)
= 9999
GAMA
W8
2
H
(P7)
= 1
Spindle rotation W9
clockwise
I
(P8)
= 1
Feedrate (F)
W10
1234.567
J
(P9)
= 1234.567
Tool (T)
W11
12
K
(P10)
= 12
Material type
W12
Aluminum
L
(P11)
= 1
Fields which do not contain data return the following values:
W5 (RPM / CSS)
E = 0 if RPM
E= 1 if CSS
W8 (GEAR)
H=0 if gear 1
H=1 if gear 2
H=2 if gear 3
H=3 if gear 4
W9 (Spindle rotat.)
I=0 is stopped
I=1 if clockwise I=2 if counterclockwise
W12 (Material type) L=0 if Steel
L=1 if Aluminum L=2 if brass
L=3 if iron
L=4 if plastic
L=5 if wood
If the cycle is executed with the indicated values, the following call to routine 9001 takes place:
(PCALL 9001, A=11, B=22, C=33, D=44, E=0, F=1234, G=9999, H=1, I=1, J=1234.567, K=12, L=1)