Declaration of Variables Used in the Example
(Original Document)
Access to the Declaration of Values
Access to the entry of variables takes place by clicking the Variables directory of the project browser.
Internal Variables
The following internal variables are declared located:
Variable
Address
Comment
Cycle
%M0
Condition of the machine in operating mode
X_attente
%MD50
Waiting position (X axis)
y_attente
%MD52
Waiting position (Y axis)
X_b
%MD54
Position of Conveyor B (X axis)
y_b
%MD56
Position of Conveyor B (Y axis)
X_c
%MD58
Position of Conveyor C (X axis)
Y_c
%MD60
Position of Conveyor C (Y axis)
Variables Associated with the Discrete Input Module
The discrete input module is positioned in slot 3 of Rack 0. The variables associated are as follows:
Variable
Address
Comment
Capteur_1
%I0.3.0
Machined part detection cell
Capteur_2
%I0.3.1
Part type identification sensor (0 = type 2, 1 = type 1)
Capteur_3
%I0.3.2
Grab open / grab closed detection sensor
Auto_man
%I0.3.3
Mode selection switch (0 = Auto, 1 = Manual)
Depart_cycle
%I0.3.4
Automatic cycle start button
Arret_cycle
%I0.3.5
Automatic cycle stop button
Selection_x_y
I%I0.3.6
Selection of the axis to be controlled in manual mode (1 = X, 0 = Y)
Po_man
%I0.3.7
Manual reference point
Avant
%I0.3.8
Moving the moving part in a positive direction
Arriere
%I0.3.9
Moving the moving part in a negative direction
Acq_defauts
%I0.3.10
Fault acknowledgement
Arret_urgence
%I0.3.12
Emergency stop
Ouv_pince
%I0.3.13
Grab opening button
Ferm_pince
%I0.3.14
Grab closing button
Variables Associated with the Discrete Output Module
The discrete output module is positioned in slot 4 of Rack 0. The variables associated with it are as follows:
Variable
Address
Comment
Pince
%Q0.40.0
Grab open/close control (0 = Open, 1 = Close)
Defaut
%Q0.4.1
Fault signaling
IODDT of the Axis Control Module:
The axes control module is positioned in slot 3 of Rack 1. IODDT type variables that are associated with it are declared as typeT_AXIS_STD, and there are 2 of them:
IODDT
Address
Symbol
Address
Axe_x
%CH1.03.0
Axe_y
%CH1.03.1
IODDT Connected with Interpolation
If you use a TSX CAY 33 axis control module with interpolated axes in your application, it will be of the type T_INTERPO_STD:
Variable
Address
Comment
interpo
%CH0.03.2
Third channel of the TSX CAY 33 module
Internal Constants
The speed of the moving part following the different axes is contained in the internal constants. Where there are 2 independent axes, the symbols and values of these constants are as follows:
Variable
Address
Value
Comment
Vitesse_p_o_x
%KD0
1000
Reference point speed following the X axis
Vitesse_x_attente
%KD4
1200
Speed towards X axis waiting position
Vitesse_y_attente
%KD6
1200
Speed towards Y axis waiting position
Vitesse_pos_a_x
%KD8
1500
Speed towards X axis conveyor A position
Vitesse_pos_a_y
%KD10
1500
Speed towards Y axis conveyor A position
Vitesse_pos_b_x
%KD12
1200
Speed towards X axis conveyor B position
Vitesse_pos_b_y
%KD14
1200
Speed towards Y axis conveyor B position
Vitesse_pos_c_x
%KD16
1800
Speed towards X axis conveyor C position
Vitesse_pos_c_y
%KD18
1800
Speed towards Y axis conveyor C position
Where there are 2 interpolated axes, the symbols and values of these constants are as follows:
Variable
Address
Value
Comment
Vitesse_p_o_x
%KD0
1000
Reference point speed following the X axis
Vitesse_attente
%KD4
1200
Speed towards waiting position
Vitesse_pos_a
%KD8
1500
Speed towards conveyor A position
Vitesse_pos_b
%KD12
1200
Speed towards conveyor B position
Vitesse_pos_c
%KD16
1800
Speed towards conveyor C position