7 start a motion task, 8 start a direct motion task, 9 polling a warning or error message – BECKHOFF AX2000 PROFIBUS DP communication profile User Manual

Page 47: Start, Start a motion task, Start a direct motion task, Polling a warning or error message, Appendix

Advertising
background image

6.1.7

Start a motion task

Motion tasks are started by a transition edge (positive or negative) at Bit 6 STW.
Bit 14 STW is used to decide whether a stored motion task or a direct motion task should be carried
out.

Conditions:

Hardware enable is present.
Amplifier is in the “Operation enabled” state.
For linear axis: reference point is set.

Example: start the EEPROM motion task number 10:

Byte 9

10

11

12

0000 0100 0F*11 1111 0000 0000 0000 1010

STW

HSW

* F stands for a transition edge, the state of Bit 6 STW also depends on the previous state.

By setting bit 5 in the manufacturer-specific status, the amplifier indicates that it has accepted the
motion task and is carrying it out.

6.1.8

Start a direct motion task

If the motion task data is to be directly sent from the controller, then a direct motion task must be
used. In this case, the target position, velocity and type of motion task are transferred using the pro-
cess data channel (PZD), together with the call of the motion task. If required, further parameters
for this motion task (e.g. ramps) can be transferred previously by parameter tasks.

Target position

135000

mm

Velocity

20000

mm

s

Motion task type

- relative to actual position
- with following motion task
- without pause
- target velocity for the following task should already be reached at the

target position (only makes sense if there is no change of direction)

- use SI (user) units

Byte 1

2

3

4

5

6

0100 0100

0F*11 1111

0000 0000

0000 0000

0100 1110

0010 0000

PZD1

PZD2

PZD3

STW

velocity setpoint

Byte 7

8

9

10

11

12

0000 0000

0000 0010

0000 1111

0101 1000

0010 0001

0001 1101

PZD4

PZD5

PZD6

position setpoint

motion task type

* F stands for a transition edge, the state of Bit 6 STW also depends on the previous state.

6.1.9

Polling a warning or error message

If a warning or error message is present, then parameter 1001 or 1002 can be interrogated to find
out the number of the warning or error.

PROFIBUS for AX2000/2500

47

BECKHOFF

12/05

Appendix

Advertising