7-4
Examples
Rexroth IndraMotion MLD
DOK-IM*MLD-F*STEP**V**-KB01-EN-P
Programming
1.
Variable declaration
In the variable declaration, the variables which are used are created and
assigned to the inputs and outputs.
DB000266v01_en.tif
Fig. 7-5:
Variable declaration
2.
Set drive enable
When the digital input I_1 is set, the drive PLC switches the axis to drive
enable (AF) via MC_Power.
DB000267v01_en.tif
Fig. 7-6:
Setting drive enable
3.
Generate sine signal
In the following program section, the sine signal is generated. The signal
can be influenced via the following variables:
•
rAmplitude
amplitude of sine signal
•
rDurationSinePeriod
periodic time of sine signal
DB000268v01_en.tif
Fig. 7-7:
Generating sine signal
4.
Travel sine profile
The generated sine signal is switched to the drive via the motion function
block "MoveVelocity". By calling the function block, the drive is
automatically operated in velocity control.