Danfoss VLT Series Programming Manual page 174

Integrated servo drive isd 510 system
Hide thumbs Also See for VLT Series:
Table of Contents

Advertisement

Programming
6.4.1.3 Connecting to the PLC
Information on how to connect to the PLC can be found in
detail in the Automation Studio™ Help. Open the B&R Help
Explorer and go to [Automation Software → Getting Started
→ Creating programs with Automation Studio → First
project with X20 CPU → Configure online connection].
6.5 Function Block Descriptions
6.5.1 Overview PLCopen
®
PLCopen
is a vendor- and product-independent
worldwide association. Its mission is to be the leading
association resolving topics related to control
6
6
programming to support the use of international standards
in this field. Function blocks of the PLC library or package
are compliant with the following standard version:
Technical Specification Function blocks for motion control
(Formerly Part 1 and Part 2), Version 2.0, March 17, 2011.
6.5.1.1 Naming Conventions
Function blocks
The naming of the function blocks consist of a prefix, the
function-specific name, and a postfix, which is described in
®
PLCopen
as Supplier ID. For function blocks defined by
®
PLCopen
, the prefix MC_ is used. For ISD-specific function
blocks, the prefix DD_ is used. For function blocks for a
servo drive, _ISD51x is used as Supplier ID and for SAB,
_SAB is used.
Example:
MC_Power_ISD51x = Function block defined by
PLCopen, targeting the servo drive.
DD_ReadVersion_SAB = Function block defined
by Danfoss, targeting the SAB.
Enumerations
For enumerations defined by PLCopen
used. For enumerations defined by Danfoss, the prefix DD_
is used.
_ISD51x is used as Supplier ID for enumerations.
Internal
The library needs some POUs that are used internally,
however they cannot be used in an application program.
All internal POUs, enumerations, and constants start with a
leading underscore _ and are sorted into the Intern_51x
folder, and/or into the Intern_51x library inside the
package.
6.5.1.2 Structure of Library/Package
All elements, such as function blocks, data types, and
enumerations, are sorted into folders in the library, and/or
into libraries inside the package, depending on the
capabilities of the development environment.
172
®
VLT
Integrated Servo Drive ISD
®
®
, the prefix MC_ is
Danfoss A/S © 01/2017 All rights reserved.
®
510 System
®
See chapter 6.3 TwinCAT
and chapter 6.4 Automation
™ for further information.
Studio
The constants are structured in lists of constants:
AxisErrorCodes/SabErrorCodes: Constants for all
the alarms and warnings of the servo drive (see
chapter 9.2.2 Error Codes) and SAB (see
chapter 9.3.2 Warnings and Alarms).
AxisTraceSignals/SabTraceSignals: Constants for
trace signals of the servo drive and SAB (see
chapter 2.7.2 Trace).
FB_ErrorConstants: Constants for all the function
block errors. Value provided in the function block
output ErrorInfo.ErrorID.
CamParsingErrors: Constants for specifying an
error after the CAM parsing (see
chapter 2.4.5 CAM Mode).
6.5.1.3 PLCopen
®
State Machine
The state diagram in Illustration 6.18 defines the behavior
of the axis at a high level when multiple motion control
function blocks are activated simultaneously. This
combination of motion profiles is useful in building a more
complicated profile, or to handle exceptions within a
program.
The basic rule is that motion commands are always taken
sequentially, even if the PLC is capable of real parallel
processing. These commands act on the axis state diagram.
The axis is always in 1 of the defined states. Any motion
command that causes a transition changes the state of the
axis and, as a result of that, modifies the way the current
motion is computed.
The state diagram is an abstraction layer of what the real
state of the axis is, compared to the image of the I/O
points within a cyclic (PLC) program.
A change of state is reflected immediately when issuing
the corresponding motion command. The response time
depends on the specific functionality.
The diagram is focused on a single axis. The multiple axis
function blocks, for example MC_CamIn_ISD51x or
MC_GearIn_ISD51x, can be looked at, from a state diagram
point of view, as multiple single-axes all in specific states.
For example, the CAM-master can be in the state Continu-
ousMotion. The corresponding slave is in the state
SynchronizedMotion. Connecting a slave axis to a master
axis has no influence on the master axis.
Arrows within the state diagram show the possible state
transitions between the states. State transitions due to an
issued command are shown as full arrows. Dashed arrows
show state transitions, which occur when a command of
an axis has terminated, and system-related transitions (for
example, error-related). The motion commands that transit
the axis to the corresponding motion state are listed above
MG36D102

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents