Commissioning
6.4.2.4 Connecting to the PLC
Information on how to connect to the PLC can be found in
detail in the Beckhoff Information System (http://
infosys.beckhoff.com). Open the information system and go
to [TwinCAT 2 → TwinCAT System Manager → Operation →
Controls → Choose Target System].
6.4.3 Programming Guidelines
Recommendations for implementation:
•
Initialize parameters that usually do not change
only once at the beginning of the program. In
Automation Studio™, use the _INIT section.
•
Call up function blocks that provide status or
error information with Enable input at the
beginning of the program.
•
It is recommended to have 1 instance of the
function block MC_Power_ISD51x for every axis in
order to control its power stage. Call up this
function block in every PLC cycle.
•
It is recommended to have 1 instance of the
function block DD_Power_SAB for every SAB to
control the DC-link voltage on the output lines.
Call up this function block in every PLC cycle.
•
Call up function blocks that execute (motion)
commands at the end of the program.
•
Do not use any POUs of the library (folder)
Intern_51x.
•
Do not change the reference to the axis on a
function block while it is busy.
Illustration 6.18 shows sample code for TwinCAT
MG75K102
Operating Instructions
®
.
Illustration 6.18 Sample Code for TwinCAT
NOTICE
The full parameter list can be found in the VLT
Integrated Servo Drive ISD
Guide.
Danfoss A/S © 12/2015 All rights reserved.
®
®
®
510 System Programming
6
6
55