Examples and tips
PROGRAMMING MANUAL
248
R
e
vi
si
o
n
1
.0
'Stop MECHATROLINK Section
'================================================
'THIS SECTION MUST BE MANUALLY SET BY THE USER
'ACCORDING TO THE APPLICATION. TYPICAL ACTIONS ARE
'VARIABLE INITIALIZATION, SERVO/AXIS SETTING, NAMING
'GLOBAL VARIABLES AND START THE "APPLICATION" PROGRAM.
'================================================
'Define Names for global variables
GLOBAL "project_status",100
GLOBAL "alarm_status",101
GLOBAL "action",102
'Initialize variables
VR(0)=0
project_status=0
alarm_status=0
action=0
'Start APPLICATION program
RUN "APPLICATION",2
STOP
5.1.2
Gain settings
The gain setting is related to the mechanical system to which the motor is
attached. There are three main concepts:
•
Inertia ratio
•
Rigidity
•
Resonant frequency.
These concepts are described in the Hardware Reference Manual in the
chapter System Philosophy.
This section shows example parameter values for:
•
Speed Loop Gain
•
Proportional position gain
•
Velocity Feed Forward gain.