Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
and Controls
Hydraulics
Rexroth PLCopen
Function Blocks
For Field Bus Drives
Application Manual
Pneumatics
Service
R911315058
Edition 01
Title
PLCopen MotionControl
Rexroth PLCopen
Function Blocks
For Field Bus Drives
Type of Documentation
Document Typecode
Internal File Reference
Purpose of Documentation
Record of Revisions
Copyright
Application Manual
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
Document Number, 120-0401-B327-01/EN
This documentation describes the PLCopen function blocks for field bus
drives.
Description
Release
Date
Notes
120-0401-B327-01/EN
04/06
First Edition
Validity
Published by
The specified data is for product description purposes only and may not
be deemed to be guaranteed unless expressly confirmed in the contract.
All rights are reserved with respect to the content of this documentation
and the availability of the product.
Bosch Rexroth AG
Bgm.-Dr.-Nebel-Str. 2 D-97816 Lohr a. Main
Telephone +49 (0)93 52/40-0 Tx 68 94 21 Fax +49 (0)93 52/40-48 85
http://www.boschrexroth.com/
Dept. BRC/EPY (NH)
Note
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Contents I
Contents
1
MotionControl Libraries
1.1
1-1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
II Contents
2
PLCopen MotionControl
2-1
2.2
2.3
2.4
2.5
List of Figures
3-1
Index
4-1
5-1
1.1
1.2
1.3
Internet.......................................................................................................................................... 5-1
1.4
1.5
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
MotionControl Libraries
1.1
General Information
The description of the MotionLogic function blocks starts with a brief
introduction to the principal options of the MotionControl according to the
PLCopen standard.
Chapter 1.5 and the following chapters contain a description of the data
types which are included in the RIL_CommonTypes.lib and
MP_PLCopenTypes.lib libraries.
The MP_PLCOpen.lib and PLCopenFieldBus.lib libraries contain the
MotionControl modules.
An RIL_CommonTypes.lib library is contained in the targets. As an
alternative, an MP_PLCOpenTypes.lib library (which is independent of the
firmware) can be used instead of the RIL_CommonTypes.lib library.
Prefix MB_
This prefix means that this function block, although complying with the
system structure of PLCopen, is different from or is a supplement to this
system structure or is not defined at all.
Prefix MP_
This prefix means that this function block complies completely with the
PLCopen standard.
Prefix MBP_
This prefix means that this function block, although complying with the
system structure of PLCopen, is different from or is a supplement to this
system structure or is not defined at all and is applicable to field bus
drives only.
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
1.2
PLCopen MotionControl
State Diagram
The diagram following below normatively defines the behavior of
MotionControl axes from the users viewpoint, when several
MotionControl function blocks are activated at the same time. This
combination of motion profiles is useful in the generation of complicated
profiles and in the reaction to exceptional situations in programs.
In principle, motion commands are given and processed sequentially,
even if the PLC is capable of parallel processing. These commands follow
the state diagram of the MotionControl axes.
Each axis is in exactly one of the defined states (see the state diagram
below). Each motion command represents a state transition for the axis
concerned. The sequence of these transitions describes the entire
behavior of the axis.
The diagram focuses on the individual axis. Multi-axis function blocks,
such as MC_CamIn, MC_GearIn and MC_Phasing, can be considered
such that each axis, as seen from the user's view, is in its specific state of
the state diagram, e. g. the CAM master may be in the 'continuous
motion' state, while the corresponding slave is in the 'synchronized
motion' state.
Note:
When a slave axis is connected to follow a master axis, the master axis is
not affected.
The following function blocks which have a "managing function" do not
affect the state diagram:
MC_ReadStatus, MC_ReadActualPosition
MC_ReadAxisError
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
(1):
(2):
(3):
Fig. 1-1:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
All function blocks can be called without being processed, except for
MC_Reset and Error, which generate the transition to StandStill or
ErrorStop respectively.
If in a state other than Standstill, the output of MB_Home results in
ErrorStop, except for Homing itself.
The transition relates to errors which are caused by axes and axis
control, but not to errors which are caused by FB instances. These
axis errors are only reflected at the error outputs of the function block
instances.
MotionControl state diagram of a real axis
1.3
PLCopen MotionControl
With its rising edge, the "Execute" signal initiates processing of the FB
instance . The duration of the signal must correspond to at least one PLC
cycle.
The "Execute" signal triggers the three phases of processing of the FB
instance:
Preprocessing: FB inputs are checked; values are precalculated;
values are initialized; command values are sent; the operation mode is
changed; acknowledgement from the target object is expected.
Command values are active: The command values are available for
processing at the target location (e. g. drive). Processing is in progress
(communication channel active with communication modules;
operation mode and command values active with motion modules).
FB is ready: Processing at the target location is completed. The result
is returned and made available at the outputs of the FB.
The three phases become evident at the outputs of the FB:
"Active" comprises the phases of "Command values are active" and "FB
is ready". New information can be applied to a module not earlier than
after the "Active" signal has appeared.
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Alternatives:
"Enable" Input Signal
1.4
Fig. 1-3:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
The signal time behavior is typical of the function blocks listed below:
MB_WriteParameter
MC_MoveAbsolute
MC_MoveRelative
MC_MoveAdditive
MC_MoveVelocity
Note:
Status-Controlled Function
Blocks
Fig. 1-4:
The following function blocks are typical of the time behavior shown
above:
MC_ReadActualPosition
MB_ReadParameter
MC_ReadStatus
MC_ReadAxisError
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
1.5
Version
Version_RIL_CommonTypes_xxVxx (FUN)
Data types
ERROR_STRUCT (STRUCT)
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
AXIS_REF
Brief Description
Name
TYPE
Type
Initial value
Comment
CntrlNo
CONTROLS
LOCAL_CNTRL
AxisNo
OBJECTS
AXIS_1
AXIS_RE
F
STRUCT
END_STRUCT
END_TYPE
Fig. 1-6:
Functional Description
AXIS_REF (STRUCT)
CONTROLS
Brief Description
Name
TYPE
Value
CONTROLS
Comment
Enumeration of valid logical control addresses
(
LOCAL_CNTRL
:=
)
END_TYPE
Fig. 1-7:
Functional Description
Note:
Note:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
OBJECTS
This enumeration of available axes and axis groups contains all objects of
a MotionControl network which can be addressed by means of
MotionControl function blocks.
Brief Description
Name
TYPE
Value
OBJECTS
Comment
Enumeration of valid axes and axis groups
(
NO_OBJECT
:=
No object defined
AXIS_1
:=
Axis 1
AXIS_2
:=
Axis 2
:=
6001
:=
6099
...
FieldBusAxis_1
...
FieldBusAxis_99
)
END_TYPE
Fig. 1-8:
Functional Description
This enumeration of available axes and axis groups contains all objects of
a MotionControl network which can be addressed by means of
MotionControl modules (also refer to "Communicating Field Bus Axes to
the PLC" on page 2-1).
Number 0000 is invalid (no object defined)
0001 .. 0999 are reserved for axes.
1001 .. 1999 are reserved for real master axes.
2001 .. 2999 are reserved for virtual master axes.
3001 .. 3999 are reserved for the ELS group local master.
4001 .. 4008 are reserved for ELS groups.
5001 .. 5006 are reserved for ELS system masters.
6001 .. 6099 are reserved for field bus axes.
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
ERROR_CODE
Brief Description
Name
TYPE
Value
ERROR_CODE
Comment
Enumeration of valid error types
(
NONE_ERROR
:= 0
INPUT_INVALID_ERROR
:= 1
Invalid input
COMMUNICATION_ERROR
:= 2
Communication error
RESOURCE_ERROR
:= 3
Resource error
ACCESS_ERROR
:= 4
Access error
STATE_MACHINE_ERROR
:= 5
INPUT_RANGE_ERROR
:= 6
CALCULATION_ERROR
:= 7
Calculation error
DEVICE_ERROR
:= 8
Device error
OTHER_ERROR
:= 254
General error
SYSTEM_ERROR
:= 255
System error
)
END_TYPE
Fig. 1-9:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
ERROR_TABLE
Brief Description
Name
Value
Comment
NO_TABLE_USED
16#0000
SERCOS_TABLE
16#0010
SERCOS
MLDS_TABLE
16#0020
MLC_TABLE
16#0030
MTX_TABLE
16#0040
MLP_TABLE
16#0050
PLC_TABLE
16#0060
Rexroth PLC
INDRV_TABLE
16#0070
Rexroth IndraDrive
DIAX_TABLE
16#0080
Rexroth DIAX
ECO_TABLE
16#0090
Rexroth EcoDrive
PB_DP_TABLE
16#0130
Profibus
DEVICENET_TABLE
16#0140
DeviceNet
ETHERNET_TABLE
16#0150
Ethernet
INTERBUS_TABLE
16#0160
Interbus
F_RELATED_TABLE
16#0170
Function-related
USER1_TABLE
16#1000
USER2_TABLE
16#1001
USER3_TABLE
16#1002
USER4_TABLE
16#1003
USER5_TABLE
16#1004
USER6_TABLE
16#1005
USER7_TABLE
16#1006
USER8_TABLE
16#1007
USER9_TABLE
16#1008
USER10_TABLE
16#1009
STRUCT
END_STRUCT
Fig. 1-10:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
ERROR_STRUCT
Brief Description
Name
Type
Comment
Code
ERROR_TABLE
Additional1
DWORD
Additional1
DWORD
STRUCT
END_STRUCT
Fig. 1-11:
SYS_TIME64
The time stamp is based on the following structure. It contains the
number of milliseconds elapsed since January 1, 1970 (also refer to
SYS_TIME_DATE).
Note:
Fig. 1-12:
SYS_TIME_DATE
The structure reflects the system time or a time stamp in a readable form
(also refer to SYS_TIME64).
Note:
Fig. 1-13:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
EXT_SYS_TIME_DATE
This structure results from a combination of SYS_TIME64 and
SYS_TIME_DATE.
1.6
Note:
Fig. 1-14:
The data of a drive or the control involving these drives can be reached by
accessing parameters in a reading or, in part, writing manner. The
declarations of control parameters A and C are not included in
MP_PLCOpen.lib nor in PLCOpenFieldBus.lib.
S and P parameters can be accessed through the field bus.
The structure of all MotionControl parameters is the same:
Example: S-0-0001, where S(, A, C, P) is the parameter type qualifier
which is followed by the group number and the four-digit parameter
number.
To this end, declaration files for global constants are available in
MP_PLCOpen.lib for P and S parameters.
Fig. 1-15:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
VAR_GLOBAL CONSTANT
FP_S_0_0001: DINT := 1; (*NC_cycle_time_TNcyc_*)
FP_S_0_0002: DINT := 2; (*SERCOS_cycle_time_TScyc_*)
FP_P_0_0009: DINT := 32787; (*Initial_position_value*)
....
END_VAR
As an alternative of the constant itself, the number can be applied to the
"ParameterNumber" input of the particular function block.
Parameter Offsets:
Parameter group
Decimal
Hexadecimal
S-0-0000
16#0
P-0-0000
32768
16#8000
A-0-0000
65536
16#10000
C-0-0000
131072
16#20000
Fig. 1-16:
Parameter offsets
MC_ReadActualPosition
Brief Description
This function block reads the current position of the drive ("Actual position
value" S-0-0051) or the parameter specified in the drive on the field bus
process data input description.
Library
Range
MP_PLCOpen.lib
Parameters
Fig. 1-17:
Library assignment
Fig. 1-18:
FB MC_ReadActualPosition
Interface Description
Name
Type
Comment
VAR_IN_OUT
Axis
AXIS_REF
VAR_INPUT
Enable
BOOL
VAR_OUTPUT
Done
BOOL
Active
BOOL
Error
BOOL
ErrorID
ENUM
Indicates the basic error cause in the event of an error, using the
enumeration values of ERROR_CODE.
ERROR_CODE
ErrorIdent
Position
STRUCT
ERROR_STRUCT
REAL
Current absolute position of the drive (in the axis unit [u]).
Fig. 1-19:
Interface of FB MC_ReadActualPosition
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Fig. 1-20:
Error Handling
MC_ReadStatus
Brief Description
Range
MP_PLCOpen.lib
Parameters
Fig. 1-21:
Library assignment
Fig. 1-22:
FB MC_ReadStatus
Interface Description
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Name
Type
Comment
VAR_IN_OUT
Axis
AXIS_REF
VAR_INPUT
Enable
BOOL
VAR_OUTPUT
Done
BOOL
Active
BOOL
Error
BOOL
ErrorID
ENUM
Indicates the basic error cause in the event of an error, using the
enumeration values of ERROR_CODE.
ERROR_CO
DE
ErrorIdent
STRUCT
Errorstop
BOOL
Stopping
BOOL
StandStill
BOOL
DiscreteMotion
BOOL
ContinuousMotion
BOOL
SynchronizedMotion
BOOL
Homing
BOOL
InPosition
BOOL
Fig. 1-23:
Interface of FB MC_ReadStatus
Fig. 1-24:
Error Handling
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
MC_ReadAxisError
Brief Description
This function block retrieves the error status ("Axis diagnostic message"
(A-0-0020)) of the axis addressed. One instance of the function block is to
be used for each axis.
Library
Range
MP_PLCOpen.lib
Parameters
Fig. 1-25:
Library assignment
Fig. 1-26:
FB MC_ReadAxisError
Interface Description
Name
Type
Comment
VAR_IN_OUT
Axis
AXIS_REF
VAR_INPUT
Enable
BOOL
VAR_OUTPUT
Done
BOOL
Value available.
Active
BOOL
Error
BOOL
Indicates that an error has occurred when the FB instance was called.
ErrorID
ENUM
Indicates the basic error cause in the event of an error, using the
enumeration values of ERROR_CODE.
ERROR_CODE
ErrorIdent
STRUCT
ERROR_STRUCT
Fig. 1-27:
Interface of FB MC_ReadActualPosition
Fig. 1-28:
Error Handling
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
MB_ReadParameter
Brief Description
Range
MP_PLCOpen.lib
Parameters
Fig. 1-29:
Library assignment
Fig. 1-30:
FB MB_ReadParameter
Interface Description
Name
Type
Comment
VAR_IN_OUT
Axis
AXIS_REF
VAR_INPUT
Enable
BOOL
Parameter number
DINT
Done
BOOL
Active
BOOL
Error
BOOL
ErrorID
ENUM
Indicates the basic error cause in the event of an error, using the
enumeration values of ERROR_CODE.
VAR_OUTPUT
ERROR_CODE
ErrorIdent
Value
STRUCT
ERROR_STRUCT
DINT
Fig. 1-31:
Interface of FB MB_ReadParameter
Fig. 1-32:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Error Handling
MB_ReadRealParameter
Brief Description
Range
MP_PLCOpen.lib
Parameters
Fig. 1-33:
Library assignment
Fig. 1-34:
FB MB_ReadRealParameter
Interface Description
Name
Type
Comment
VAR_IN_OUT
Axis
AXIS_REF
VAR_INPUT
Enable
BOOL
ParameterNumber
DINT
Done
BOOL
Active
BOOL
Error
BOOL
ErrorID
ENUM
Indicates the basic error cause in the event of an error, using the
enumeration values of ERROR_CODE.
VAR_OUTPUT
ERROR_CODE
ErrorIdent
Value
STRUCT
ERROR_STRUCT
REAL
Fig. 1-35:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
Interface of FB MB_ReadRealParameter
PLCopen MotionControl
Fig. 1-36:
Error Handling
MB_WriteParameter
Brief Description
Range
MP_PLCOpen.lib
Parameters
Fig. 1-37:
Library assignment
Fig. 1-38:
FB MB_WriteParameter
Interface Description
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Name
Type
Comment
VAR_IN_OUT
Axis
AXIS_REF
VAR_INPUT
Execute
BOOL
ParameterNumber
DINT
Value
DINT
Done
BOOL
Active
BOOL
Error
BOOL
ErrorID
ENUM
VAR_OUTPUT
ERROR_CODE
ErrorIdent
STRUCT
ERROR_STRUCT
Fig. 1-39:
Interface of FB MB_WriteParameter
Fig. 1-40:
Error Handling
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
MB_WriteRealParameter
Brief Description
Range
MP_PLCOpen.lib
Parameters
Fig. 1-41:
Library assignment
Fig. 1-42:
FB MB_MB_WriteRealParameter
Interface Description
Name
Type
Comment
VAR_IN_OUT
Axis
AXIS_REF
VAR_INPUT
Execute
BOOL
Starts writing of the value which is present with rising edge to the
parameter.
ParameterNumber
REAL
Value
REAL
Done
BOOL
The value has been written successfully to the control / the drive.
Active
BOOL
Error
BOOL
ErrorID
ENUM
Indicates the basic error cause in the event of an error, using the
enumeration values of ERROR_CODE.
VAR_OUTPUT
ERROR_CODE
ErrorIdent
STRUCT
ERROR_STRUCT
Fig. 1-43:
Interface of FB MB_WriteRealParameter
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Fig. 1-44:
Error Handling
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
1.7
PLCopen MotionControl
MC_Power
Brief Description
Library
Range
MP_PLCOpen.lib
Motion
Fig. 1-45:
Library assignment
Fig. 1-46:
FB MC_Power
Interface
Name
Type
Comment
VAR_IN_OUT
Axis
AXIS_REF
VAR_INPUT
Enable
BOOL
VAR_OUTPUT
Status
BOOL
Error
BOOL
ErrorID
ENUM
Indicates the basic error cause in the event of an error, using the
enumeration values of ERROR_CODE.
ERROR_CODE
ErrorIdent
STRUCT
ERROR_STRUCT
Fig. 1-47:
Error Handling
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
MC_MoveAbsolute
Brief Description
Note:
Library
Range
MP_PLCOpen.lib
Motion
Fig. 1-48:
Library assignment
Fig. 1-49:
FB MC_MoveAbsolute
Interface Description
Name
Type
Comment
VAR_IN_OUT
Axis
AXIS_REF
VAR_INPUT
Execute
BOOL
Position
REAL
Target position for the motion (in technical unit [u]) (+/-).
Velocity
REAL
Acceleration
REAL
Deceleration
REAL
Done
BOOL
Active
BOOL
Command
Aborted
BOOL
Error
BOOL
ErrorID
ENUM
Indicates the basic error cause in the event of an error, using the
enumeration values of ERROR_CODE.
VAR_OUTPUT
ERROR_CODE
ErrorIdent
STRUCT
ERROR_STRUCT
Fig. 1-50:
Error Handling
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Implementation Example
Fig. 1-51:
Fig. 1-52:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
MC_MoveRelative
Brief Description
This function block determines the new "target position" by adding the
"distance" and the "actual position" and moves to that position.
Note:
Library
Range
MP_PLCOpen.lib
Motion
Fig. 1-53:
Library assignment
Fig. 1-54:
FB MC_MoveRelative
Interface Description
Name
Type
Comment
VAR_IN_OUT
Axis
AXIS_REF
VAR_INPUT
Execute
BOOL
Distance
REAL
Relative distance for the motion (+/-) (in technical unit [u])
Velocity
REAL
Acceleration
REAL
Deceleration
REAL
Done
BOOL
Active
BOOL
CommandAborted
BOOL
Error
BOOL
ErrorID
ENUM
Indicates the basic error cause in the event of an error, using the
enumeration values of ERROR_CODE.
VAR_OUTPUT
ERROR_CODE
ErrorIdent
STRUCT
ERROR_STRUCT
Fig. 1-55:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
Interface of FB MC_MoveRelative
PLCopen MotionControl
Fig. 1-56:
Error Handling
Implementation Example
Fig. 1-57:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Fig. 1-58:
MC_MoveAdditive
Brief Description
This function block adds the "distance" to the "target position" and moves
to the latter.
Note:
Library
Range
MP_PLCOpen.lib
Motion
Fig. 1-59:
Library assignment
Fig. 1-60:
FB MC_MoveAdditive
Interface Description
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Name
Type
Comment
VAR_IN_OUT
Axis
AXIS_REF
VAR_INPUT
Execute
BOOL
Distance
REAL
Relative distance for the motion (+/-) (in technical unit [u])
Velocity
REAL
Acceleration
REAL
Deceleration
REAL
Done
BOOL
Active
BOOL
CommandAborted
BOOL
Error
BOOL
ErrorID
ENUM
Indicates the basic error cause in the event of an error, using the
enumeration values of ERROR_CODE.
VAR_OUTPUT
ERROR_CODE
ErrorIdent
STRUCT
ERROR_STRUCT
Fig. 1-61:
Error Handling
Implementation Example
The figure below shows two combined FB instances while the axis is in
the "discrete motion state".
Note:
Instance1: MC_MoveAbsolute
Instance2: MC_MoveAdditive
5. The left-hand part of the time diagram shows a case where the
second FB is started after the first FB. The first FB reaches the
desired distance of 6000 (at a velocity of 0). Then the "Done" output
causes the second FB to reach the distance of 10000.
6. The right-hand part of the time diagram shows a case where the
second FB is already started while the first FB is still active. In this
case, the first motion is stopped and aborted by the "Test" signal at
constant velocity. The second FB adds its distance of 4000 to the
originally commanded position 5000 and moves the axis to the
resulting position 10000, at the velocity specified at the second FB.
Fig. 1-62:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Fig. 1-63:
Time
diagram:
MC_MoveAdditive
Instances
of
MC_MoveAbsolute
and
MC_MoveVelocity
Brief Description
Library
Range
MP_PLCOpen.lib
Motion
Fig. 1-64:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
Library assignment
PLCopen MotionControl
Interface Description
Fig. 1-65:
FB MC_MoveVelocity
Name
Type
Comment
VAR_IN_OUT
Axis
AXIS_REF
VAR_INPUT
Execute
BOOL
Velocity
REAL
Acceleration
REAL
Deceleration
REAL
InVelocity
BOOL
Active
BOOL
CommandAborted
BOOL
Error
BOOL
ErrorID
ENUM
Indicates the basic error cause in the event of an error, using the
enumeration values of ERROR_CODE.
VAR_OUTPUT
ERROR_CODE
ErrorIdent
STRUCT
ERROR_STRUCT
Fig. 1-66:
Interface of FB MC_MoveVelocity
Fig. 1-67:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Fig. 1-68:
Error Handling
Implementation Example
Fig. 1-69:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Fig. 1-70:
MB_Home
Brief Description
Range
MP_PLCOpen.lib
Motion
Fig. 1-71:
Library assignment
Fig. 1-72:
FB MB_Home
Interface Description
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Name
Type
Comment
VAR_IN_OUT
Axis
AXIS_REF
VAR_INPUT
Execute
BOOL
VAR_OUTPUT
Done
BOOL
Active
BOOL
CommandAborted
BOOL
Error
BOOL
ErrorID
ENUM
ERROR_CODE
ErrorIdent
STRUCT
ERROR_STRUCT
Fig. 1-73:
Interface of FB MB_Home
Fig. 1-74:
Error Handling
Brief Description
This function block implements a controlled motion stop and transfers the
axis to the "Stopping" state. As a result, any function block processing is
stopped. When standstill is reached, the "Done" output is set.
MC_Stop
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Library
Range
MP_PLCOpen.lib
Motion
Fig. 1-75:
Library assignment
Fig. 1-76:
FB MC_Stop
Interface Description
Name
Type
Comment
VAR_IN_OUT
Axis
AXIS_REF
VAR_INPUT
Execute
BOOL
Starts the action with rising edge. The function block cannot be
interrupted before the "Stopping" state is reached.
VAR_OUTPUT
Decelerati REAL
on
Done
BOOL
Standstill reached
Active
BOOL
Error
BOOL
ErrorID
ENUM
Indicates the basic error cause in the event of an error, using the
enumeration values of ERROR_CODE.
ERROR_CODE
ErrorIdent
STRUCT
ERROR_STRUCT
Fig. 1-77:
Interface of FB MC_Stop
Fig. 1-78:
Error Handling
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
MB_Stop
Brief Description
This function block implements a controlled motion stop and transfers the
axis to the "Stopping" state. As a result, any function block processing is
stopped. When standstill is reached, the "Done" output is set.
The position is kept active.
Note:
Range
MP_PLCOpen.lib
Motion
Fig. 1-79:
Library assignment
Fig. 1-80:
FB MB_Stop
Interface Description
Name
Type
Comment
VAR_IN_OUT
Axis
AXIS_REF
VAR_INPUT
ExecuteLock
BOOL
Deceleration
REAL
Done
BOOL
Standstill reached
Active
BOOL
CommandAborted
BOOL
Error
BOOL
ErrorID
ENUM
VAR_OUTPUT
ERROR_CODE
ErrorIdent
STRUCT
ERROR_STRUCT
Fig. 1-81:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
Interface of FB MB_Stop
PLCopen MotionControl
Fig. 1-82:
Error Handling
Brief Description
This function block implements the transition from the "ErrorStop" state to
the "StandStill" state by resetting all internal axis errors.
MC_Reset
Note:
Range
MP_PLCOpen.lib
Motion
Fig. 1-83:
Library assignment
Fig. 1-84:
FB MC_Reset
Interface Description
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Name
Type
Comment
VAR_IN_OUT
Axis
AXIS_REF
VAR_INPUT
Execute
BOOL
VAR_OUTPUT
Done
BOOL
Standstill reached
Error
BOOL
ErrorID
ENUM
Indicates the basic error cause in the event of an error, using the
enumeration values of ERROR_CODE.
ERROR_CODE
ErrorIdent
STRUCT
ERROR_STRUCT
Fig. 1-85:
Interface of FB MC_Reset
Fig. 1-86:
Error Handling
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
1.8
PLCopen MotionControl
Functions of the multi-axis control are not enabled for field bus
drives! Single-axis function blocks are the only ones
functioning for field bus drives!
The following parameters and/or function blocks are provided for multiaxis control:
MC_START_MODE
MC_SYNC_MODE
MC_CAM_ID
MC_CamIn
MC_CamOut
MC_GearIn
MC_GearOut
MB_GearInPos
ML_PhasingSlave
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
2.1
Fig. 2-1:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Target Settings
The "Replace constants" check box must be activated in the target
settings. If this check box is unchecked, an error message stating that
there is no variable declaration will be repeatedly emitted during
translation. Make this setting in the IndraWorks project navigator, "Logic"
properties, "Further settings" tab.
Fig. 2-2:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Fig. 2-3:
Move the desired axis from the IndraWorks library to the PLC project by
drag-and-drop and place it below the Profibus master interface in the
project navigator:
Fig. 2-4:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
Note:
PLCopen MotionControl
2.2
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Fig. 2-5:
Once you have established the connection to the drive, you can make the
required settings.
Fig. 2-6:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Profile Settings
Select the "Free configurable mode" profile type. Also use this menu to
specify the slave address in relation to the Profibus.
Fig. 2-7:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Mode Selection
Assign "Drive-controlled positioning" as the primary mode and "Velocity
control" as the first secondary mode to the drive. The second and third
modes are of no relevance, since they are not selected by the PLCopen
function blocks.
Note:
Profile Settings
Select the "Free configurable operating mode" profile type and set the
length of the parameter channel to 12 bytes. Set the slave address
directly at the drive, using the rotary address switches.
Fig. 2-8:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Mode Selection
The drive needs "Drive-controlled positioning" as the primary mode and
"Jog mode" as the first secondary mode. The second and third modes
are of no relevance, since they are not selected by the PLCopen function
blocks.
Note:
2.3
Necessary Libraries
The PLCopen function blocks and the functions required for operation are
packed in libraries.
MP_PLCopen.lib
This *.lib file contains the PLCopen function blocks with the prefix MC_
defined in PLCopen, e. g. MC_MoveAbsolute.
This *.lib file functions only in connection with the PLCopenFieldBus.lib
library. As a matter of principle, the MP_PLCopen.lib and
PLCopenFieldBus.lib libraries can be run on all IndaLogic target systems.
For example, an MLC (Motion Logic) also comprises a library with
PLCopen function blocks which optimally communicate with the drives
through a SERCOS interface. The physics of activation through a
SERCOS interface, however, is completely different, so that the same
function blocks for SERCOS axes cannot simultaneously activate field
bus axes. Here, it is not possible to use the MP_PLCopen.lib library for
operating the field bus axes since, otherwise, two function blocks with the
same designation would be available. To enable this mixed mode
nevertheless, the MP_PLCopen.lib library only contains PLCopen function
blocks which call up the actual PLCopen functions from the
PLCopenFieldBus.lib library. This *.lib file contains the actual function
blocks for field bus drives. The function blocks in the
PLCopenFieldBus.lib
library
have
the
prefix
MP_,
e. g.
MP_MoveAbsolute.
PLCopenFieldBus.lib
This *.lib file contains the actual function blocks which communicate with
the field bus axes. These have the prefix MP_, e. g. MP_MoveAbsolute.
RIL_CommonTypes.lib
RIL_Check.lib
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Note:
2.4
Fig. 2-9:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
Note:
PLCopen MotionControl
AXIS_DATA:
ARRAY
FieldBusDriveControlData
[FieldBusAxis_1..FieldBusAxis_1]
OF
Necessary Declarations
AXIS_REF
Using the structure AXIS_REF, each axis is described with reference to
its number and to the controller it belongs to. The assigned axis number
does not necessarily refer to the station number set at the drive.
Drive_XYZ: AXIS_REF :=
(CntrlNo:=LOCAL_CNTRL,
AxisNo:=FieldBusAxis_1);
Drive_EcoDrive: AXIS_REF :=
(CntrlNo:=LOCAL_CNTRL,
AxisNo:=FieldBusAxis_2);
Drive_EcoDriveCS: AXIS_REF :=
(CntrlNo:=LOCAL_CNTRL,
AxisNo:=FieldBusAxis_3);
Drive_IndraDrive: AXIS_REF :=
(CntrlNo:=LOCAL_CNTRL,
AxisNo:=FieldBusAxis_4);
Fig. 2-10:
AXIS_REF Declaration
Drive_XYZ :AXIS_REF :=
The necessary data types are contained in the RIL_CommonTypes.lib
library, "Datatypes of PLCopen" folder, AXIS_REF element.
CntrlNo Assignment
(CntrlNo := LOCAL_CNTRL
The enumeration value LOCAL_CNTRL is contained in the
RIL_CommonTypes.lib library, "Datatypes of logical addresses" folder,
CONTROLS element.
The field bus modules always refer to the local PLC, that is
LOCAL_CNTRL.
AxisNo Assignment
AxisNo:=FieldBusAxis_1);
The enumeration value FieldBusAxis_1 is contained in the
RIL_CommonTypes.lib library, "Datatypes of logical addresses" folder,
OBJECTS element.
In order to avoid ambiguities, a separate range of numbers, that is
FieldBusAxis_1 (6001) to FieldBusAxis_99 (6099), is filed here for the
field bus axes. It is appropriate, although not mandatory, to assign the
numbers consecutively without any gap. This consecutive assignment has
the benefit that the declaration of the communication array will not
become too large, because this communication array is declared from the
lowest axis number to the highest axis number. This will be described in
the following sections.
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
AXIS_DATA
The data of this array is used to enable communication of the PLCopen
function blocks (MP_MoveAbsolute, MP_ReadStatus, etc.) with the actual
axis-related function blocks (MP_IndraDrive_Command_MPH02VRS,
MP_Ecodrive_Command_FGP03VRS).
AXIS_DATA: ARRAY [FieldBusAxis_1..
FieldBusAxis_4]
OF FieldBusDriveControlData;
Fig. 2-11:
AXIS_DATA
AXIS_DATA: ARRAY
The declaration of this array which carries the designation AXIS_DATA is
mandatory in the project.
FieldBusDriveControlData
FieldBusAxis_1
Enter the lowest axis number assigned or the lowest axis enumeration
value assigned as the lower dimension of the array.
FieldBusAxis_99
Enter the highest axis number assigned or the highest axis enumeration
value assigned as the upper dimension of the array (FieldBusAxis_4 in
the example, however not higher than FieldBusAxis_99).
FieldBusDriveControlData
The data type is contained in the PLCopenFieldBus.lib library,
"Datatypes_PLCopen" folder.
MP_Ecodrive_Command_FGP03
VRS
DriveEcoDrive: MP_Ecodrive_Command_FGP03VRS
MP_IndraDrive_Command_MPH
02VRS
DriveIndraDrive: MP_IndraDrive_Command_MPH02VRS
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
PR_FieldBusDrives
This program must only be created, i. e. be available in the PLC program,
if the PLCOpenFieldBus.lib library has been entered in the PLC program.
The name is defined because it is called up by the actual PLCopen
functions blocks, such as MP_MoveAbsolute or MP_ReadStatus, etc. The
previously declared axis-related control function blocks are programmed
to this program.
Fig. 2-13:
Example of PR_FieldBusDrives
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
InVelocity Window
rVelocityWindow
This is the window for formation of the InVelocity message.
iVelocityWindowExp
The number of places after the decimal point is as described above.
Axis
Axis
The previously globally declared AXIS_REF of the particular axis is
created at the Axis input.
PR_FieldBusDrivesParameter
The control function blocks MP_Ecodrive_Command_FGP03VRS and
MP_IndraDrive_Command_MPH02VRS are designed for all default
communication processes. If, however, parameters must be read or
written directly in the drive (with MP_ReadParamter, MP_WriteParameter,
MP_ReadRealParamter, MP_WriteRealParameter), then the control
function block MP_IndraDrv_AcyclicCommunication must be declared
and programmed in analogy with the normal control function block.
DriveIndraDrive_Parameter:
MP_IndraDrv_AcyclicCommunication;
DriveIndraDrive:
MP_IndraDrive_Command_MPH02VRS;
Fig. 2-14:
Fig. 2-15:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
Example of PR_FieldBusDrivesParameter
PLCopen MotionControl
bDPV1PNum
There are two types of numbering the parameters:
According to DPV1; please refer to Chapter "Function Blocks for
Parameter Access" on page 1-13. To achieve this, the SERCOS
parameters are filed as constants for S-parameters in
MP_PLCopen.lib, global variables, IL_S_Param_ID and for Pparameters in IL_P_Param_ID.
Alternatively, there are enumeration values for field bus drives only,
according to the object directory of Profibus DP (ProfiDrive). These are
residing in the PLCopenFieldBus.lib library, under the data types item,
in the Datatypes_PLCopen folder, DriveParameter.
Axis
Axis
The previously globally declared AXIS_REF of the axis to be controlled is
created at the Axis input.
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Fig. 2-16:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Fig. 2-17:
VAR_GLOBAL
.DriveEcoDrive_Parameter._In AT %IB40 : ARRAY [0..5] OF WORD; (*Parameter communication*)
.DriveEcoDrive_Parameter._Out AT %QB40 : ARRAY [0..5] OF WORD; (*Parameter communication*)
.DriveEcoDrive.FieldBusInputs AT %IB52 : PLCOpen_EcoDrive_IN_02V00; (*Cycl. Data exch.*)
.DriveEcoDrive.FieldBusOutputs AT %QB52 : PLCOpen_EcoDrive_OUT_02V00; (*Cycl. Data exch.*)
END_VAR
Fig. 2-18:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
AchseInProjektEintragen_09.bmp
Fig. 2-19:
VAR_GLOBAL
.DriveIndraDrive_Parameter.IndraDrive._In AT %IB100 : AcyclicComm_IndraDrive_IN_01V00;
.DriveIndraDrive_Parameter.IndraDrive._Out AT %QB100 : AcyclicComm_IndraDrive_OUT_01V00;
.DriveIndraDrive.FieldBusInputs AT %IB110 : PLCOpen_IndraDrive_IN_01V00; (*Cycl. Data exch.*)
.DriveIndraDrive.FieldBusOutputs AT %QB110 : PLCOpen_IndraDrive_OUT_01V00; (*Cycl. Data exch.*)
END_VAR
Fig. 2-20:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
2.5
MP_Ecodrive_AcyclicCommunication_FGP03VRS_02V00
Brief Description
Library
Range
PLCOpenFieldbus.lib
SystemFBs_PLCopen
Fig. 2-21:
Library assignment
Fig. 2-22:
FB MP_Ecodrive_AcyclicCommunication_FGP03VRS_02V00
Interface Description
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
VAR_INPUT
VAR_OUTPUT
Name
Type
Comment
Execute
BOOL
ICallNo
INT
UsiCommandType
USINT
BDataLengthWrite
BOOL
bDPV1Pnum
BOOL
DiParameter
DINT
DwValueSend
DWORD
Done
BOOL
Active
BOOL
BDataLengthRead
BOOL
UiDataLengthParameter UINT
UiDecimalPlace
UINT
UiDataType
UINT
DwValueReceive
DWORD
Error
BOOL
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
VAR_OUTPUT
PLCopen MotionControl
Name
Type
Comment
ErrorID
ENUM
ERROR_CODE
ErrorIdent
STRUCT
ERROR_STRUCT
Functional Description
Fig. 2-23:
Interface of the FB
MP_Ecodrive_AcyclicCommunication_FGP03VRS_02V00
Fig. 2-24:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Fig. 2-25:
Error Handling
The MP_Ecodrive_AcyclicCommunication_FGP03VRS_02V00
function block works only in connection with EcoDrive, EcoDrive
CS and DuraDrive.
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
List of Figures
Fig. 1-1: MotionControl state diagram of a real axis 1-3
Fig. 1-2: Signal interplay of a PLCopen function block 1-4
Fig. 1-3: Signal time behavior of edge-triggered function blocks 1-5
Fig. 1-4: Signal time behavior of status-controlled function blocks 1-6
Fig. 1-5: Structure of the "RIL_CommonTypes.lib" library 1-7
Fig. 1-6: AXIS_REF (STRUCT) 1-8
Fig. 1-7: CONTROLS (ENUM) example 1-8
Fig. 1-8: OBJECTS (ENUM) example 1-9
Fig. 1-9: Meaning of the error codes in "ERROR_CODE" 1-10
Fig. 1-10: Assignment of error tables in "ERROR_TABLE" 1-11
Fig. 1-11: Data type: ERROR_STRUCT (STRUCT) 1-12
Fig. 1-12: Time stamp in the form of "SYS_TIME64" 1-12
Fig. 1-13: System time in the form of "SYS_TIME_DATE" 1-12
Fig. 1-14: Extended system time in the form of "EXT_SYS_TIME_DATE"
1-13
Fig. 1-15: Global constant declarations for parameter accesses 1-13
Fig. 1-16: Parameter offsets 1-14
Fig. 1-17: Library assignment 1-14
Fig. 1-18: FB MC_ReadActualPosition 1-14
Fig. 1-19: Interface of FB MC_ReadActualPosition 1-14
Fig. 1-20: Default signal time diagram 1-15
Fig. 1-21: Library assignment 1-15
Fig. 1-22: FB MC_ReadStatus 1-15
Fig. 1-23: Interface of FB MC_ReadStatus 1-16
Fig. 1-24: Default signal time diagram 1-16
Fig. 1-25: Library assignment 1-17
Fig. 1-26: FB MC_ReadAxisError 1-17
Fig. 1-27: Interface of FB MC_ReadActualPosition 1-17
Fig. 1-28: Default signal time diagram 1-17
Fig. 1-29: Library assignment 1-18
Fig. 1-30: FB MB_ReadParameter 1-18
Fig. 1-31: Interface of FB MB_ReadParameter 1-18
Fig. 1-32: Default signal time diagram 1-18
Fig. 1-33: Library assignment 1-19
Fig. 1-34: FB MB_ReadRealParameter 1-19
Fig. 1-35: Interface of FB MB_ReadRealParameter 1-19
Fig. 1-36: Default signal time diagram 1-20
Fig. 1-37: Library assignment 1-20
Fig. 1-38: FB MB_WriteParameter 1-20
Fig. 1-39: Interface of FB MB_WriteParameter 1-21
Fig. 1-40: Default signal time diagram 1-21
Fig. 1-41: Library assignment 1-22
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
Index 4-1
PLCopen MotionControl
Index
A
Access to data of a drive or a control 1-13
Active 1-4
Acyclic parameter communication with EcoDrive 2-18
Acyclic parameter communication with IndraDrive 2-19
AXIS_DATA 2-13, 2-14
AXIS_REF 1-8, 2-12
B
Basic drive settings of an IndraDrive 2-4
Basic PLC settings 2-1
Busy 1-4
C
CheckExceedingOccurred 2-11
Command processing in a PLCopen FB 1-4
Command signals to drive 2-23
Configuration of AT data container for EcoDrive (CS) 2-9
Configuration of MDT data container for EcoDrive (CS) 2-9
Axis 2-15
bCallAxisFB 2-14
iAccelerationExp 2-15
iDecelerationExp 2-15
iPositionExp 2-15
iVelocityWindowExp 2-15
rVelocityWindow 2-15
bCallAxisParameterFB 2-16
bDPV1PNum 2-16
iVelocityEx 2-15
Control function blocks 2-13
Control function blocks MP_Ecodrive_Command_FGP03VRS, 2-13
Control function blocks MP_IndraDrive_Command_MPH02VRS 2-13
CONTROLS 1-8
Cyclic data exchange with EcoDrive 2-18
Cyclic data exchange with IndraDrive Refer to
Cyclic field bus data channel for IndraDrive 2-6
Cyclic field bus data channel of EcoDrive (CS( 2-9
D
Data types at the interface of MotionControl function blocks 1-7
Done 1-4
Drive homing 2-8, 2-10
Drive in original state 2-4
E
EcoDrive (CS) communication settings 2-8
EcoDrive (CS) profile settings 2-8
EcoDrive input address 2-18
EcoDrive output address 2-18
EcoDrive startup support 2-8
EcoDrive VAR_CONFIG 2-18
Enable 1-5
Error messages during translation 2-2, 2-12
ERROR_CODE 1-10
ERROR_STRUCT 1-12
ERROR_TABLE 1-11
Establishing the communication for parameterization 2-5
Evaluation of velocity and acceleration values 2-15
Execute 1-4
EXT_SYS_TIME_DATE 1-13
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
4-2 Index
PLCopen MotionControl
F
Field bus process data input description 1-14
F-module (technical safety) in IndraDrive 2-19
I
I/O address assignment for EcoDrive, EcoDrive CS and DuraDrive 2-18
I/O address assignment for IndraDrive 2-19
I/O address assignment of field bus drives 2-17
IndraDrive communication settings 2-6
IndraDrive mode selection 2-8
IndraDrive profile settings 2-6
IndraDrive VAR_CONFIG 2-19
InGear 1-5
InSync 1-5
InVelocity 1-5, 2-15
L
Length of the IndraDrive parameter channel 2-7
Length of the parameter channel of EcoDrive (CS) 2-8
M
Making the necessary settings with DriveTop 2-4
Making the necessary settings with IndraWorks Engineering Desktop 2-4
MB_GearInPos 1-40
MB_Home 1-34
MB_ReadParameter 1-18
MB_ReadRealParameter 1-19
MB_Stop 1-37
MB_WriteParameter 1-20
MB_WriteRealParameter 1-22
MC_CAM_ID 1-40
MC_CamIn 1-40
MC_CamOut 1-40
MC_GearIn 1-40
MC_GearOut 1-40
MC_MoveAbsolute 1-25
MC_MoveAdditive 1-29
MC_MoveRelative 1-27
MC_MoveVelocity 1-31
MC_Power 1-24
MC_ReadActualPosition 1-14
MC_ReadAxisError 1-17
MC_ReadStatus 1-15
MC_Reset 1-38
MC_START_MODE 1-40
MC_Stop 1-35
MC_SYNC_MODE 1-40
ML_PhasingSlave 1-40
Mode selection for EcoDrive, EcoDrive CS and DuraDrive 2-10
MP_Ecodrive_AcyclicCommunication_FGP03VRS_02V00 2-20
MP_Ecodrive_Command_FGP03VRS 2-13
MP_IndraDrive_Command_MPH02VRS 2-13
MP_PLCopen.LIB 2-10
MP_PLCOpenTypes.lib 1-7, 1-12, 1-13
MP_ReadParameter 2-16
MP_ReadRealParameter 2-16
MP_WriteParameter Refer to
MP_WriteRealParameter 2-16
Multiplex channel EcoDrive (CS) 2-9
N
Necessary declarations 2-12
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
Index 4-3
PLCopen MotionControl
O
OBJECTS 1-9
P
Parameter communication with EcoDrive 2-18
Parameters 1-13
PLCopenFieldBus.LIB 2-10
PR_FieldBusDrives 2-14
PR_FieldBusDrivesParameter 2-15
Prefix MC_ 2-10
Prefix MP_ 2-10
Profibus interface settings 2-1
R
Replace constants (target settings 2-2
RIL_Check.LIB 2-10
RIL_CommonTypes.lib 1-7
RIL_CommonTypes.LIB 2-10
S
Signal control word EcoDrive (CS) 2-9
Signal control word of IndraDrive 2-7
Signal status word EcoDrive (CS) 2-9
Signal status word of IndraDrive 2-7
Single-axis function blocks 1-14, 1-24
State diagram 1-2
Status signals from drive 2-23
SYS_TIME_DATE 1-12
SYS_TIME64 1-12
T
Target settings 2-2
Technical safety system functions 2-10
V
VAR_CONFIG 2-17, 2-22
Variable_Configuration 2-17, 2-22
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
4-4 Index
PLCopen MotionControl
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
5.1
Helpdesk
telefonisch - by phone:
ber Service Call Entry Center Mo-Fr 07:00-18:00 Central European Time
- via Service Call Entry Center
Mo-Fr 7:00 am - 6:00 pm CET
5.2
Service-Hotline
oder - or
5.3
Internet
Verkaufsniederlassungen
sales agencies
5.4
1.
1.
Detailed
description
circumstances.
2.
2.
3.
3.
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
of
the
failure
and
5.5
PLCopen MotionControl
Deutschland Germany
Vertriebsgebiet Mitte
Germany Centre
Bosch Rexroth
Electrice Drives and Controls GmbH
Bgm.-Dr.-Nebel-Str. 2 / Postf. 1357
97816 Lohr am Main / 97803 Lohr
Kompetenz-Zentrum Europa
Tel.:
Fax:
SERVICE AUTOMATION
CALL ENTRY CENTER
Helpdesk
MO FR
von 07:00 - 18:00 Uhr
from 7 am 6 pm
vom Ausland:
from abroad:
SERVICE AUTOMATION
HOTLINE 24 / 7 / 365
auerhalb der Helpdesk-Zeit
out of helpdesk hours
Tel.: +49 (0)172 660 04 06
oder / or
SERVICE AUTOMATION
ERSATZTEILE / SPARES
verlngerte Ansprechzeit
- extended office time nur an Werktagen
- only on working days von 07:00 - 18:00 Uhr
- from 7 am - 6 pm Tel. +49 (0) 9352 40 42 22
Vertriebsgebiet Sd
Germany South
Vertriebsgebiet West
Germany West
Gebiet Sdwest
Germany South-West
Bosch Rexroth AG
Landshuter Allee 8-10
80637 Mnchen
Bosch Rexroth AG
Regionalzentrum West
Borsigstrasse 15
40880 Ratingen
Bosch Rexroth AG
Service-Regionalzentrum Sd-West
Siemensstr. 1
70736 Fellbach
Tel.:
Fax:
Vertriebsgebiet Nord
Germany North
Vertriebsgebiet Mitte
Germany Centre
Vertriebsgebiet Ost
Germany East
Vertriebsgebiet Ost
Germany East
Bosch Rexroth AG
Walsroder Str. 93
30853 Langenhagen
Bosch Rexroth AG
Regionalzentrum Mitte
Waldecker Strae 13
64546 Mrfelden-Walldorf
Bosch Rexroth AG
Beckerstrae 31
09120 Chemnitz
Bosch Rexroth AG
Regionalzentrum Ost
Walter-Khn-Str. 4d
04356 Leipzig
Tel.:
Fax:
Tel.:
Fax:
Tel.:
Service:
Fax:
Service:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
Austria - sterreich
Austria sterreich
Belgium - Belgien
Denmark - Dnemark
BEC A/S
Zinkvej 6
8900 Randers
Tel.:
Fax:
Denmark - Dnemark
Finland - Finnland
France - Frankreich
Bosch Rexroth Oy
Electric Drives & Controls
Ansatie 6
017 40 Vantaa
Tel.:
+44 (0)1285 863-000
Fax:
+44 (0)1285 863-030
sales@boschrexroth.co.uk
service@boschrexroth.co.uk
Tel.:
Fax:
France Frankreich
France Frankreich
Italy - Italien
Italy - Italien
Italy - Italien
Italy - Italien
Italy - Italien
Tel.:
Fax:
Tel.:
Fax:
Tel.:
Fax:
Tel.:
Fax:
Tel.:
+45 36 77 44 66
Fax:
+45 70 10 03 20
tj@boschrexroth.dk
France - Frankreich
+39 081 8 71 57 00
+39 081 8 71 68 85
Tel.:
+33 (0)1 41 19 33 33
+39 049 8 70 13 70
+39 049 8 70 13 77
+45 87 11 90 60
+45 87 11 90 61
Italy - Italien
Netherlands Niederlande/Holland
Netherlands - Niederlande/Holland
Norway - Norwegen
Bosch Rexroth AS
Electric Drives & Controls
Berghagan 1
or: Box 3007
1405 Ski-Langhus
1402 Ski
Tel.:
+47 64 86 41 00
Tel.:
Tel.:
+31 (0) 411 65 16 40
Fax:
+31 (0) 411 65 14 83
www.boschrexroth.nl
Fax:
+47 64 86 90 62
Hotline: +47 64 86 94 82
jul.ruud@rexroth.no
Spain Spanien
Spain - Spanien
Spain - Spanien
Sweden - Schweden
Bosch Rexroth AB
Electric Drives & Controls
- Varuvgen 7
(Service: Konsumentvgen 4, lfsj)
125 81 Stockholm
Sweden - Schweden
Bosch Rexroth AB
Electric Drives & Controls
Ekvndan 7
254 67 Helsingborg
Tel.:
+46 (0) 4 238 88 -50
Fax:
+46 (0) 4 238 88 -74
Tel.:
+34 9 43 31 84 21
- service: +34 9 43 31 84 56
Fax:
+34 9 43 31 84 27
- service: +34 9 43 31 84 60
sat.indramat@goimendi.es
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
Tel.:
+34 91 806 24 79
Fax:
+34 91 806 24 72
fernando.bariego@boschrexroth.es
Tel.:
Fax:
Tel.:
Fax:
PLCopen MotionControl
Hungary - Ungarn
Poland Polen
Poland Polen
Romania - Rumnien
Romania - Rumnien
Russia - Russland
Turkey - Trkei
Turkey - Trkei
Slowakia - Slowakei
Slowenia - Slowenien
DOMEL
Otoki 21
64 228 Zelezniki
Tel.:
+90 212 411-13 00
Fax:
+90 212 411-13 17
www.boschrexroth.com.tr
Tel:
+90 212 320 30 80
Fax:
+90 212 320 30 81
remzi.sali@servokontrol.com
www.servokontrol.com
Tel.:
Tel.:
+386 5 5117 152
Fax:
+386 5 5117 225
brane.ozebek@domel.si
Australia - Australien
Tel.:
+61 3 93 14 3321
Fax:
+61 3 93 14 3329
Hotlines: +61 3 93 14 3321
+61 4 19 369 195
enquires@aimservices.com.au
Tel.:
+61 3 95 80 39 33
Fax:
+61 3 95 80 17 33
mel@rexroth.com.au
Tel.:
+27 11 971 94 00
Fax:
+27 11 971 94 40
Hotline: +27 82 903 29 23
georgv@tectra.co.za
Tel.:
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
PLCopen MotionControl
China
China
China
Tel.:
+86 21 58 66 30 30
Fax:
+86 21 58 66 55 23
brcservice@boschrexroth.com.cn
Tel:
Fax:
+86 21 68 86 15 88
+86 21 68 86 05 99
+86 21 58 40 65 77
y.wu@boschrexroth.com.cn
China
China
China
China
Tel.:
+86 10 82 91 22 29
Fax:
+86 10 82 91 81 09
yan.zhang@boschrexroth.com.cn
Tel.:
+86 20 87 55 00 30
+86 20 87 55 00 11
Fax:
+86 20 87 55 23 87
andrew.wang@boschrexroth.com.cn
Tel.:
+86 411 83 68 26 02
Fax:
+86 411 83 68 27 02
jason.tan@boschrexroth.com.cn
Hongkong
India - Indien
India - Indien
India - Indien
Tel.:
+852 27 86 46 32
Fax:
+852 27 42 60 57
Paul.li@boschrexroth.com.cn
Tel.:
+91 80 41 17 0211
Fax:
+91 80 83 97 374
pradeep.rs@boschrexroth.co.in
Tel.: +91 22 28 56 32 90
+91 22 28 56 33 18
Fax: +91 22 28 56 32 93
singh.op@boschrexroth.co.in
Tel.:
India - Indien
Indonesia - Indonesien
Japan
Japan
Tel.:
+91 11 26 56 65 25
+91 11 26 56 65 27
Fax:
+91 11 26 56 68 87
koul.rp@boschrexroth.co.in
Korea
Korea
Korea
Korea
Tel.+Fax: +86 27 84 23 23 92
Mobile:
+86 139 71 58 89 67
ym.zhu@boschrexroth.com.cn
MICO
Hosur Road Adugodi
560 030 Bangalore Karnataki
+91 80 22 99 28 86
Tel.:
+82 51 26 00 741
Fax:
+82 51 26 00 747
eunkyong.kim@boschrexroth.co.kr
Tel.:
Fax:
Malaysia
Singapore - Singapur
Taiwan
Taiwan
Tel.:
Fax:
Tel.:
+65 68 61 87 33
Fax:
+65 68 61 18 25
lai.ts@boschrexroth.com.sg
+60 3 78 44 80 00
+60 3 78 45 48 00
hhlim@boschrexroth.com.my
rexroth1@tm.net.my
Thailand
NC Advance Technology Co. Ltd.
59/76 Moo 9
Ramintra road 34
Tharang, Bangkhen,
Bangkok 10230
Tel.:
+66 2 943 70 62
+66 2 943 71 21
Fax:
+66 2 509 23 62
Hotline
+66 1 984 61 52
sonkawin@hotmail.com
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
Tel.:
+82 52 256-0734
Fax:
+82 52 256-0738
keonhyun.jeong@boschrexroth.co.kr
Tel :
+886 - 6 253 6565
Fax:
+886 - 6 253 4754
charlie.chen@boschrexroth.com.tw
PLCopen MotionControl
Tel.:
Fax:
Tel.:
Fax:
+1 248 393-3330
+1 248 393-2906
USA SERVICE-HOTLINE
+1 678 957-4050
+1 678 417-6637
Tel.:
Fax:
Tel.:
Fax:
Tel.:
Fax.:
+1 860 844-8377
+1 860 844-8595
+1 925 227-1084
+1 925 227-1081
Tel.:
Fax:
automation.service@boschrexroth.ca
automation.repair@boschrexroth.ca
Mexico
Mexico
Tel.:
Fax:
Tel.:
+52 55 57 54 17 11
+52 55 57 54 50 73
mario.francioli@boschrexroth.com.mx
automation.service@boschrexroth.ca
automation.repair@boschrexroth.ca
Fax:
+52 81 83 49 80 91
+52 81 83 49 80 92
+52 81 83 49 80 93
+52 81 83 65 52 80
Argentina - Argentinien
Brazil - Brasilien
Brazil - Brasilien
NAKASE SRL
Servicio Tecnico CNC
Calle 49, No. 5764/66
B1653AOX Villa Balester
Provincia de Buenos Aires
Tel.:
Tel.:
+54 11 4768 42 42
Fax:
+54 11 4768 42 42 111
Hotline: +54 11 155 307 6781
nakase@usa.net
nakase@nakase.com
gerencia@nakase.com (Service)
Tel.:
Tel./Fax:
Mobil:
+54 11 4756 01 40
+54 11 4756 02 40
+54 11 4756 03 40
+54 11 4756 04 40
Fax:
+54 11 4756 01 36
+54 11 4721 91 53
victor.jabif@boschrexroth.com.ar
+55 47 473 58 33
+55 47 9974 6645
sergio.prochnow@boschrexroth.com.br
Columbia - Kolumbien
Reflutec de Colombia Ltda.
Calle 37 No. 22-31
Santaf de Bogot, D.C.
Colombia
Tel.:
+57 1 208 65 55
Fax:
+57 1 269 97 37
reflutec@etb.net.co
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P
Bosch Rexroth AG
Electric Drives and Controls
P.O. Box 13 57
97803 Lohr, Germany
Bgm.-Dr.-Nebel-Str. 2
97816 Lohr, Germany
Phone +49 (0)93 52-40-50 60
Fax
+49 (0)93 52-40-49 41
service.svc@boschrexroth.de
www.boschrexroth.com
R911315058
Printed in Germany
DOK-CONTRL-PLCOPENFB*D-AW01-EN-P