Getting started – Lenze ETC Motion Control User Manual

Page 63

Advertising
background image

Getting started

Creating a PLC sample program

Starting and configuring the PLC sample program

2

2.12

2.12.2

l

63

EDSTCXN EN 2.0

The communication between the CNC control system and the PLC program
takes place via variables of the data block 1, the communication between the
ETC−MMI and the PLC program via variables of the data block 2. The required
system variables are summarised in the following table (the system
variables are listed in German and English):

System variable

Flag word

Required for

db1_sps2nc_notaus_bit
DB1_X0_0_plc2nc_emergency_bit

%MX1.0.0

Release of CNC

db1_sps2nc_vorschubfreigabe_w
DB1_W1_plc2nc_feed_release_axes_w

%MW1.1

Release of CNC

db1_sps2nc_verfahrtastenfreigabe_plus_w
DB1_W3_plc2nc_release_jog_keys_plus_w

%MW1.3

Manual travel of keys,
e.g. Lenze−HMI,
coded bit by bit for 12
drives

db1_sps2nc_verfahrtastenfreigabe_minus_w
DB1_W4_plc2nc_release_jog_keys_minus_w

%MW1.4

Manual travel of keys,
e.g. Lenze−HMI,
coded bit by bit for 12
drives

db1_sps2nc_reglerfreigabe_w
DB1_W5_plc2nc_regulator_release_w

%MW1.5

Release of CNC

db1_sps2nc_einlesefreigabe_bit
DB1_X7_0_plc2nc_read_in_release_bit

%MX1.7.0

Release of CNC

db1_sps2nc_programmstart_b
DB1_B9_0_plc2nc_program_start_b

%MB1.9.0

ETC−MMI

db1_sps2nc_programmstop_b
DB1_B12_0_plc2nc_stop_program_b

%MB1.12.0

ETC−MMI

db1_nc2sps_betriebsbereit_2_bit
DB1_X128_0_nc2plc_NC_ready_1_bit

%MX1.128.1

Monitoring CNC

db1_nc2sps_programmstart_b
DB1_B137_0_nc2plc_program_start_b

%MB1.137.0

ETC−MMI

db1_nc2sps_programmstop_b
DB1_B142_0_nc2plc_stop_program_b

%MB1.142.0

ETC−MMI

ETCN026

)

Note!

The complete list of the system variables can be displayed in the
programming window of the ETC−CoDeSys via <F2>.

System variables and data
blocks

Advertising