13 testing cnc and plc program, Testing cnc and plc program, Getting started – Lenze ETC Motion Control User Manual
Page 72
Getting started
Testing CNC and PLC program
2.13
l
72
EDSTCXN EN 2.0
2.13
Testing CNC and PLC program
)
Note!
Basically, the operation of the CNC program is possible:
ƒ
without connected mechanics and drives.
This is achieved by setting the machine constant
MK_TEST_OHNEMECHANIK=1.
ƒ
without a PLC program.
This is achieved by setting the machine constant
MK_SPS_DUMMY=1.
For the following tests with program and mechanics, the machine constants
must be set as follows:
MC keyword
Numbe
r of
values
Values
MK_TEST_OHNEMECHANIK
1
0
MK_SPS_DUMMY
1
0
1. Connect the hardware according to the requirements (
¶ 60).
– The inputs "Tool down" and "Tool up" must be set according to the
progress of the program (M14, M15). Thus, 24 V must be
continuously applied to the inputs or the inputs must be switched in
time.
1. Start the PLC sample program in the CoDeSys. For this purpose,
double−click on the file "Training1.pro" in Windows File Explorer
(
¶ 61).
CoDeSys starts and the sample program is loaded.
2. Load the PLC program into the control system via Online
W
Log in
(
¶ 68).
3. Start the PLC program via Online
W
Start (
¶ 68).
Test setting
Connecting the hardware
Start PLC program