166 / 183
Assembly and Commissioning Instructions Servo amplifier D1-N
numero = numero+1; // Count
ciclo = numero; // Number of cycles
if (numero = 10000000) do // Stop condition
stop 1; // Task 1 is stopped
else do // otherwise
goto _Test1; // Return to jump mark
ret;
end; // End of if/else do condition
Writing PDL program to D1-N and saving
“Lightening” software is used to write PDL programs, compile them and save them
to D1-N.
For a description of the “Lightening” software and how to install it, see section 8.
Once motor commissioning is complete (see section 9), select the PDL symbol in
the main toolbar in the main window.
Figure 10.2: Selecting PDL programming
In the following window, press the button “Edit”:
Figure 10.3: Opening the compiler
Programming takes place in three steps:
- Save program code in User-PDL (1)
- Run syntax check (2)
- Save program to device (3)
See Figure 10.4