Professional Documents
Culture Documents
Question
Enviroment
Answer
This application note provides set-up and programming details of the PowerFlex 525 / 523
series drive with the 25-COMM-P Profibus-DPV1 interface using the Siemens S7-300
processor.
All the operations detailed below, assume the user is familiar with the programming of
Siemens PLC's with Step7 software.
To Control a drive on PROFIBUS we need to map the I/O on the Input / Output image of
the PLC. The PowerFlex 520 series drive uses 16 bit logic control words, reference, logic
status and feedback, and 4 off 16 bit datalinks. The Logic Command word from the PLC
contains 2 bytes of data, whereby each bit has a control significance. See Appendix C of
PowerFlex 25-COMM-P Profibus DPV1 Adapter User Manual, Publication 520COM-
UM004_-EN-E.
So we can start or stop the drive by changing the relevant bits in the Logic Command word.
The drive reference is a 15 bit integer with sign, with a value in 0.01Hz increments is sent
to the drive, up to the [max speed] parameter of the drive. The drive adapter supports up to
4 datalinks, which can be initialized by parameters in the 25-COMM-P adapter. Each
datalink passes a parameter to the drive AND a parameter from the drive. Therefore to
configure a datalink, all that needs to be done, is to set which drive parameter you want the
data to go to / come from.
Before you insert the 25-COMM-P adapter into the drive, you need to adjust the DIP
switches on the card.
Set switches on the 25-COMM-P adapter to your Node Address. In this example
address of "04".
Set DIP SW8 to Big-Endian for Siemens controllers. i.e. sw = closed
This setup assumes that the PowerFlex drive is already setup and tuned for the motor
connected.
5. With the PowerFlex 525 tab selected, click on the Parameters button, and scroll
down to change parameters 46 and 47, to select our control and reference to come
from the Network Option card.
6. Change the DataLink settings as shown below for our 25-COMM-P option card.
For Example: The value in parameter C161 is a pointer to parameter P041 [Accel Time1], C162 = P042 [Decel Time], C165 = b003
[Output Current], C166 = b004 [Output Voltage], C167 = b027 [Drive Temp] and C168 = b007 [Fault Code 1].
Once all dataLinks have been configured, then this sets up the communication size in the 25-COMM-P adapter once a reset has been
undertaken (power cycle the drive).
The main control block OB1, is used to call the control program FC1. FC1 contains the run logic, and the speed reference to control the
speed of the drive.
The screens below are shown in monitor mode (solid line means logic = true). The logic shows the drive running in the reverse
direction with a speed reference of 24.35Hz.
See the User Manual Appendix C for the significance of the logic command and status bits. The hardware configuration was setup:
Logic Command Word = bytes 90 to 91 Speed Reference Word = bytes 92 to 93 The control word, reference and DataLinks are
compiled into a database, which can be written (DB7) in one pass with a MOV instruction.