Commissioning EL72x1-xxxx

The EK9300 supports the servo terminals with the "Drive Motion Control" mode. This mode enables an axis to move independently to a position assigned from the process data. The setpoint calculations, which are usually done by the NC, are done in DMC mode by the terminal itself.

The commissioning of an EL7201-0010 on the EK9300 is to be shown by means of an example.

Requirement:

Hardware used

Configuration

First, the EK9300 and the EL7201-0010 must be added to the configuration. See: Appending PROFINET devices

To ensure that the terminal uses the correct motor, it is recommended to read the motor name plate with the terminal. For this the parameter entries "Enable auto config", "Reconfig identical motor" and "Reconfig non-identical motor" in the parameter settings "FB OCT SettingsCh1 - Index 0x3008" of the terminal must be changed to "TRUE".

Commissioning EL72x1-xxxx 1:
Parameter settings for automatic readout of the motor name plate used

The terminal reads the name plate of the motor and sets the motor-specific parameters automatically. The default motor settings are not used any further and can be read back if required.

Mapping of the EL7201-0010 in "Drive Motion Control" format

INPUTS (64 bytes):

Commissioning EL72x1-xxxx 2:
Drive Motion Control Inputs

Name

Size (variable)

Bit offset

DMC Inputs.FeedbackStatus (16-bit array)

Latch extern valid

BIT (BOOL)

0.1

Set counter done

BIT (BOOL)

0.2

Status of extern latch

BIT (BOOL)

1.4

DMC Inputs.DriveStatus (16-bit array)

Ready to enable

BIT (BOOL)

2.0

Ready

BIT (BOOL)

2.1

Warning

BIT (BOOL)

2.2

Error

BIT (BOOL)

2.3

Moving positive

BIT (BOOL)

2.4

Moving negative

BIT (BOOL)

2.5

Digital input 1

BIT (BOOL)

3.3

Digital input 2

BIT (BOOL)

3.4

DMC Inputs.PositioningStatus (16-bit array)

Busy

BIT (BOOL)

4.0

In-Target

BIT (BOOL)

4.1

Warning

BIT (BOOL)

4.2

Error

BIT (BOOL)

4.3

Calibrated

BIT (BOOL)

4.4

Accelerate

BIT (BOOL)

4.5

Decelerate

BIT (BOOL)

4.6

Ready to execute

BIT (BOOL)

4.7

DMC Inputs.Set position

DWORD (32-bit)

6-9

DMC Inputs.aligned [0]

DWORD (32-bit)

10-13

DMC Inputs.Set velocity

WORD (16-bit)

14-15

DMC Inputs.Actual drive time

DWORD (32-bit)

16-19

DMC Inputs.Actual position lag

DWORD (32-bit)

20-23

DMC Inputs aligned [1]

DWORD (32-bit)

24-27

DMC Inputs.Actual velocity

WORD (16-bit)

28-29

DMC Inputs.Actual position

DWORD (32-bit)

30-33

DMC Inputs.aligned [2]

DWORD (32-bit)

34-37

DMC Inputs.Error Id

DWORD (32-bit)

28-41

DMC Inputs.Input cycle counter

Byte (8 bit)

42

DMC Inputs.aligned [3]

Byte (8 bit)

43

DMC Inputs.Latch value input

DWORD (32-bit)

44-47

DMC Inputs.aligned [4]

DWORD (32-bit)

48-51

DMC Inputs. Cycle info data1

WORD (16-bit)

52-53

DMC Inputs.Cycle info data2

WORD (16-bit)

54-55

DMC Inputs.aligned [5]

LWORD (64-bit)

56-63

OUTPUTS (40 bytes):

Commissioning EL72x1-xxxx 3:
Drive Motion Control Outputs

Name

Size (variable)

Bit offset

DMC Outputs.FeedbackControl (16-bit array)

Latch extern valid

BIT (BOOL)

0.1

Set counter done

BIT (BOOL)

0.2

Status of extern latch

BIT (BOOL)

1.4

DMC Outputs.DriveControl (16-bit array)

Enable

Bit (BOOL)

2.0

Reset

Bit (BOOL)

2.1

DMC Outputs.PositioningControl (16-bit array)

Execute

BIT (BOOL)

4.0

Emergency Stop

BIT (BOOL)

4.1

DMC Outputs.Set counter value

DWORD (32-bit)

6-9

DMC Outputs.aligned [0]

DWORD (32-bit)

10-13

DMC Outputs.Target position

DWORD (32-bit)

14-17

DMC Outputs.aligned [0]

DWORD (32-bit)

18-21

DMC Outputs.Target velocity

WORD (16-bit)

22-23

DMC Outputs.Start Type

WORD (16-bit)

24-25

DMC Outputs.Target acceleration

WORD (16-bit)

26-27

DMC Outputs.Target deceleration

WORD (16-bit)

28-29

DMC Outputs.aligned [0]

10 bytes

30-39

Program sequence

1) The position of one revolution is 0x0010_0000 220
2)
The velocity is given in 0.01 % of the maximum velocity; 1000 = 10 %
3) The acceleration ramp is given in ms; 1000(dec) = 1 sec
4) see table

ABSOLUTE

0x0001

Absolute positioning to a specific target position

RELATIVE

0x0002

Relative positioning to a calculated target position; a specified position difference is added to the current position

ENDLESS_PLUS

0x0003

Endless travel in the positive direction of rotation (direct specification of a velocity)

ENDLESS_MINUS

0x0004

Endless travel in the negative direction of rotation (direct specification of a velocity)

MODULO_SHORT

0x0105

Modulo positioning along the shortest path to the modulo position (positive or negative), calculated by the "modulo factor"

MODULO_PLUS

0x0205

Modulo positioning in the positive direction of rotation to the calculated modulo position

MODULO_MINUS

0x0305

Modulo positioning in the negative direction of rotation to the calculated modulo position

CALI_PLC-CAM

0x6000

Start a calibration with cam (digital inputs)

CALI_ON_BLOCK

0x6200

Start a calibration "on block".

CALI_SET_POS

0x6E00

Set as calibrated, do not change position

CALI_CLEAR_POS

0x6F00

Delete calibration bit

Commissioning EL72x1-xxxx 4:

Creating a task for commissioning via TwinCAT

For commissioning via TwinCAT with our PROFINET controllers, a separate task must be created for the outputs, otherwise the values will not be processed correctly.

Servo terminal with STO input:

If the terminal in use is to have an STO input, this can lead to an error if it is not supplied with power.

A distinction must be made here between two cases, i.e. which error occurs.

Commissioning EL72x1-xxxx 5:
Display of the Error ID if the STO input is absent

It is possible to show the state of the STO input in the process data. For this purpose, the option "Input level" must be selected in the parameter settings of the terminal under "DRV Amplifier Settings Ch. 2 - Select Info data x". The state is then displayed in the eighth bit of the "Cyclic info data x".

Commissioning EL72x1-xxxx 6:

Parameter settings for showing the STO input in the process data

Using the EL7201-0010 via the TIA portal