Profibus Quick Reference
Profibus Quick Reference
1
Reference Sources
Profibus Documentation
Manual – “Profibus S300/S400/S600/S700 Communication Profile”
Examples – “S600 Profibus – Example Communication Commands”
FAQ – “Profibus FAQs_eng”
FB10 function block instruction for Siemens S7 PLC – “Description of S7 Handling Function FB10 for
Servostar 400/600”
http://www.profibus.com
Contacts
Primary Application Engineer (North America): Jimmy Coleman
Primary Application Engineer (Germany): Jochen Karnatz
2
S300 Communication Settings
Set drive address in the drive (ADDR). The controller will reference this drive address. The baud rate is set in
the controller. The HMS Master Simulator is fixed at 19.2 kBaud. Set the PPO Type to 2.
3
S600 Communication Settings
Set drive address in the drive (ADDR). The controller will reference this drive address. The baud rate is set in
the controller. The HMS Master Simulator is fixed at 19.2 kBaud. Set the PPO Type to 2.
4
Starting the HMS Master Simulator
5
Check Communication Status
6
Overview of Profibus Telegram
• Greater than 1600, IND = 0100 hex The Input data is the data input to the Master Controller
from the drive. This consists of parameter values
The PWE contains the data that is read or the data to be that are read, write confirmation, status, and
written. feedback.
7
7
Telegram Transmission
The telegram is sent from one device to another by setting the differential voltage high or low at specific timing
to emulate the bits of the telegram.
All signals are sent as differential signals using (connector X12A/B pins 8 and 3). So there are not designated
Tx and Rx lines, but the two lines are always used together for a differential signal.
The Profibus master has a special master chip and the slaves have slave chips. A slave can never be a master.
The master is mastering the complete communication. It will send a telegram to a specific slave and ask the
slave to send its answer within a certain time. Then it addresses the next slave and waits for the answer.
The slaves all listen to all telegrams but will find their specific telegrams from the address.
If you look at the telegrams with a Profibus monitor you will see from the addresses what device is sending the
data.
8
Reading a Parameter
The PKE specifies whether you want to read a parameter or write a parameter. The first hex digit (nibble) must be
transitioned to a 1 to read or to a 3 to write (PKE bits 12 and 13). The read or write occurs on the transition.
The following three hex digits are for the PNU number of the parameter.
The response of 2641 indicates a successful read. A response of 7641 would indicate unsuccessful.
The value is in bytes 5 – 8, and in this case equals 00 00 00 0Ah (10 dec).
9
Writing to a Parameter
The response of 2641 indicates a successful write. A response of 7641 would indicate unsuccessful.
The response also includes the value that was written, 00 00 00 32h (50 dec).
10
10
Changing the Operating Mode
The operating mode of Profibus is different from the drive parameter OPMODE. Profibus has similar operating modes,
but they must be set through Profibus by the master controller.
To set the operating mode, use PNU 930 (3A2h).
Bit 10 of the Control Word must be set to zero prior to writing to PNU 930 and bit 10 must be set to 1 before the new
operating mode becomes active. This must be done before any motion commands can be sent from the
controller to the drive.
The Profibus Operating mode determines what data corresponds to PZD2 – PZD6 and certain functions of the Control
Word.
11
PZD – Process Data Channel
The Process Data Channel is used for high speed, continuously updated command setpoints and status/feedback.
The PZD section of the Profibus telegram is divided into PZD1, PZD2, PZD3, PZD4, PZD5, and PZD6. Each of
these contain one word (16 bits). The data in each PZD is dependant on the operating mode and certain bits of
the Control Word (PZD1/STW).
PZD1 Output is called STW, otherwise known as the Control Word.
PZD1 Input is called ZSW, otherwise known as the Status Word.
PZD2 is also called HSW (Output) and HIW (Input).
12
12
Drive Command Parameters
To issue a command, such as MH, EN, DIS, etc., enter it as if you are reading a parameter.
These commands do not have values associated with them, so you can’t write a value.
13
13
Enable Sequence – Control Word Bits
Enable Sequence
Bringing the drive to an enabled state requires a specific sequence. In the Control Word, set the following bits in the
following order:
Follow the state diagram and state transition table in the manual for more details.
14
14
Enable Sequence – State Diagram
the Control Word bits, the operating state of the drive, and the Status Word bits.
15
15
Enable Sequence – Drive States
Operation Enabled:
16
Required before motion
commands can be set
to the drive.
16
Run a Motion Task
While the motor is moving, set Bit 2 = 0 (Fast Stop with disable) to stop/terminate the task and disable the drive.
While the motor is moving, set Bit 4 = 0 (Fast Stop) to stop/terminate the motion task.
While the motor is moving, set Bit 5 = 0 (Pause) to stop/pause the motion task. Setting Bit 5 =1 again will continue the
motion task from where it stopped.
17
17
HMS Master Simulator
This simulator does not have the capability of running programs or sequences. Data must be manually entered.
The rows in the Output Data list are the bytes of the 20 byte Profibus telegram. Click on a row and set the bits (or hex
number) in the Edit section. As soon as the bits are set, those bits are sent to the drive. The Input Data list is the
bytes that are returned from the drive to the simulator.
Each row is a byte, so rows 1 and 2 make up the first word (PKE) of the Profibus telegram.
18
18
HMS Master Simulator
19
20
20