Download - Fc300profibustraining 140917065840 Phpapp01 Ok

Transcript
Page 1: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 1Drives Division2004-25-05

Flemming Huusmann/DD-SPMP

PROFIBUS trainingPROFIBUS training

Page 2: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 2Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Your trainer:

Flemming Huusmann Global Product Management, Fieldbus Danfoss Drives A/S DG-596 DK-6300 Graasten, Denmark mailto:[email protected] Tel.: +45 74 88 43 62 (Direct)

Page 3: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 3Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Danfoss Drives Fieldbusses Sales

Modbus Plus0%

ASI bus0%

LON3%

Interbus0%

DeviceNet5%

PROFIBUS92%Sales 2007:

Total number of fieldbus options: 86,000PROFIbus options: 78,000

Page 4: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 4Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

FC 300 PROFIBUS

• Operating instructions• MG.33.C4.02• New ”Concept”• Standardized design

Page 5: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 5Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

PROFIBUS Terms

PROFibus L2 (Non-norm PROFIbus)• About 1700 VLT 3000 produced with L2, 1992 -1994 (up to ver. 3.0)• About 16,000 VLT 3000 produced with PROFIbus DP 1994-1998

PROFIBUS-FMS (Fieldbus Message Specification)• Predecessor for PROFIBUS DP (VLT 3000 and 5000)

PROFIBUS-PA (Process Automation)• Non RS-485, bus powered, ”Safe environment”

PROFIBUS-DP (Dezentrale Preipherie)• DP-V0: Cyclic Data Exchange• DP-V1: Acyclic Data Exchange• DP-V2: Broadcast Data exchange (peer-to-peer)• DP-V3: PROFInet...

Page 6: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 6Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

PROFIBUS Profiles

PROFIdrive• Application profile developed for drives (AC, servos, etc.)• To ensure capability between different drive manufactures• Applications: Motion Control• Synchronisation• A-cyclical parameterization• High dynamic applications• DD introduced the first PROFIdrive product to the market in 1994

Page 7: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 7Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

RS-485 basics

• 2-wire balanced communication• Simple robust installation• Up to 12 Mbits/s transmission speed (only if installation guidelines has been followed)

• Up to 32 stations per segment, up to 1 km per segment

Note: Always use suitable screened cable !Impedance: 135 to 165 ohm @ 3 to 20MHz

Resistance: <110 ohm/km

Capacitance: <30pF/m

Damping: max. 9dB over whole wire length

Cross Section: 0.34 mm2, AWG 24

Cable type: Screened twisted pair 1x2, 2x2 or 1x4 wires

Screening: braided screen and foil screen

Page 8: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 8Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

RS-485 basics

The two wires in the twisted-pair cable carry the “Data line plus”(B-line) and “Data line minus”(A-line) signals.PROFIBUS cables usually come colour coded. Normally red and green are used.When red and green wires are being used the following recommendations apply:

• Red–B-line (RxD/TxD-P) (Remember: “B-red”)• Green–A-line (RxD/TxD-N)

It is essential that the colour scheme for A and B be used consistently throughout the network to avoid improper operation.

This is a common wiring error in the field!

Page 9: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 9Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

RS-485 basics

62 = red wire (Siemens B)63 = green wire (Siemens A)CS = not used

Page 10: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 10Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

RS-485 basics

The cable shield must be connected to the shield connection of the connector at both ends of the cable.Poor shielding or earthings are probably the most common wiring error!

Page 11: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 11Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

RS-485 basics

When electrical signals travel down a cable, any electrical discontinuity like a change in resistance, capacitance or the end of the wire, will cause reflections to occur.Just like an echo, the reflected signal can cause multiple signals to appear on the line. Reflections are a real problem in high-speed communications because signals are corrupted or distorted.

Low data rate

High data rate

- low risk of failure

- high risk of failure

1 bit

1 bit

Page 12: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 12Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

RS-485 basics

To minimise reflections the cable must be terminated at both ends with a specially chosen resistance that matches the cable properties.The resistance absorbs the energy of the signal and significantly reduces the reflection (theoretically to zero).PROFIBUS DP uses an active termination network that must be biased with 5V.

Page 13: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 13Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

RS-485 basics

Network terminated at one end only…

Network terminated at both ends…

PROFIBUS cable must be terminated at both ends !

Page 14: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 14Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Topology

A maximum of 32 nodes can be connected to each segment.By using repeaters more segments can be interconnected.A maximum of 128 nodes can be connected to a network.

Note: A repeater count as a node in each segment.Each segment must be terminated at both ends.

Page 15: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 15Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Topology

• By “Topology” means the physical layout of the bus.• In PROFIbus are only “Bus/Line” topology permitted. Normally as Daisy-Chain:

• Or with drops/T-connections:

Page 16: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 16Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Topology

Nodes

Bit rate

1 segment:32 nodes(31 slave)

2 segments:64 nodes

(1 repeater 61 slaves)

3 segments:96 nodes

(2 repeaters 91 slaves)

4 segments:128 nodes

(3 repeaters121 slaves)

9,6 – 187,5 Kbps 1000 2000 3000 4000

500 kbps 400 800 1200 1600

1,5 Mbps 200 400 600 800

3-12 Mbps 100 200 300 400

Bit-rate vs. cable lengths

Accumulated total cable length

Page 17: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 17Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Topology

Drop cables:A drop cable is a connection from the main bus cable to a node, in form of a T-connection

Bit rate Max. drop cable length per segment

9,6–93,75 Kbps 96

187,5 Kbps 75

500 Kbps 30

1,5 Mbps 10

3-12 Mbps None

Page 18: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 18Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

EMC Precautions

In order to ensure interference-free PROFIbus communication, always:

• Use correct PROFIbus cable.• Use same cable throughout entire network.• Connect cable-screen to ground at all nodes.• Ensure all nodes have same ground potential.• Keep min. 200 mm distance to motor and brake-resistor cable. Cross only in 90° angel.• ALWAYS use screened motor cable !

Page 19: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 19Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

FC-platform Profibus option: 130B1100

• New concept for fieldbus options.• Easy installation.• Uniform design.• 180° turnable• LED’s visible from front (IP 20)

Page 20: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 20Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Installing option in A1 and A2 enclosures

Page 21: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 21Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Installing option in Bx enclosures

Page 22: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 22Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Setting up the FC 300 with PROFIbus

• After an initial (first-time) power-up, the drive will detect if there has been a change (added an option) in slot A.• If an option has been added: par. 8-02 Control Word Source will be set to ”Option A”.

• If there is a change in slot A on an already commissioned drive, par. 8-02 will NOT change, but the drive will enter Trip-mode displaying:

Alarm 67 ”Option Change”

Page 23: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 23Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

FC-platform Profibus option: 130B1100

Hardware block diagram:

Page 24: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 24Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Address setting

PROFIbus node address can be set via:• Hardware switches.• Parameter 9-18 ”Node address.*• PROFIbus SSA-command.*•*= only possible if switch-setting is 127 (all-on = default).

Address changes will come into effect at next power cycle.Valid range: 0 – 126.

Page 25: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 25Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Bus termination

Active termination of bus.• Only terminate in both ends.• Shipped on ”OFF”-position.

Page 26: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 26Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Setting up the FC 300 with PROFIbus

• After installing the option you should check:

• Par. 0-40 [Hand on] key on LCP. If the Hand button on the FC 300 is activated, control of the drive via the PROFIBUS interface is disabled.• Par. 8-01 Control Site is NOT set to: ”Digital Only”. • Par. 8-02 Control Word Source is set to: ”Option A”.• Par. 8-10 Control Word Profile. Choose between FC or PROFIdrive-profile.• Par. 8-50 to 8-56. Selection on how to gate PROFIbus control commands with digital inputs. Only active if par. 8-01 is set to: ”Digital and Controlword”• Par. 8-03 to 8-05. Setting of reaction in case of a controlword timeout.• Par. 9-18 Node Address.• Par. 8-07 Diagnosis Trigger.

Note:Baudrate and PPO-type are set by the master and auto-detected by the drive !

Page 27: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 27Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

The PROFIBUS master

The role of the PROFIBUS master:

The PROFIBUS-DP master controls all communication on the bus.• The master starts and stops the bus-communication• A slave can only talk if being asked (token passing)• The salve-comm. are configured by the master PPO-type etc.• The master builds and maintains a list of active salves (life-list)• The master monitors the token.• There can only one master of class 1 on the bus, but several masters of class 2• The master-class 1 controls the token-handling between masters.

Page 28: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 28Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Setting up the master (PLC).

In order to configure a PROFIBUS Master, the configuration tool needs a GSD file for each type of slave on the network. The GSD file is a “standard” text file containing the necessary communications setup data for a slave. Download the GSD file da02040A.GSD for the FC 300 Drive at:http://www.danfoss.com/BusinessAreas/DrivesSolutions/Softwaredownload/DDFieldbus_Setup_Files.htm

GDS-file is not shipped with drive…

Page 29: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 29Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Setting up the master (PLC).

The downloaded ZIP-file contains GSD’s for all DD products:

The GSD-file is a text-file containing information about:• Communication parameters• Diagnosis

Page 30: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 30Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Setting up the master (PLC).

• Import the GSD file in the hardware configuration tool. • For each drive series, a GSD file is imported once only.

• Use the browser for the GSD file, choose to install both the GSD file and the bitmap for the device.• The files will be imported into the Hardware catalogue.

Page 31: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 31Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Setting up the master (PLC).

• The FC 300 GSD file is now imported and will be accessible via the following path in the Hardware catalogue:

Page 32: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 32Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Setting up the master (PLC).

• Open a Project, set up the Hardware and add a PROFIBUS Master system. • Select FC 300 then drag and drop it onto the PROFIBUS in the Hardware diagram.• A window for the address of the FC 300 now appears. Select the address from the scroll-down list. • Note that this address setting must match the previous address setting in par. 9-18 Node address.

• All PPO types can be set up as word consistent or module consistent. For FC 300, the process data area can be word or module consistent, whereas the parameter channel must always be module consistent.

Page 33: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 33Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Setting up the master (PLC).

• The next step is to set up the peripheral input and output data. • Data set up in the peripheral area is transmitted cyclically via PPO types. • In this example, a PPO type 6 Word consistent is dragged and dropped to the first slot.

• The configuration tool automatically assigns addresses in the peripheral address area. • In this example the input and output area have the following configuration:

Page 34: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 34Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Setting up the master (PLC).

Auto-configuration of Process DataFor Profibus SW version 2.x and on, Auto-configuration of process data is supported.This feature makes it is possible to configure the process data (par. 9-15 and 9-16) from the PLC/Master.To use Autoconfig, make sure to enable the feature under: DP slave Properties.

Page 35: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 35Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

PPO types

PCV: Parameter Characteristics Value PCD: Process DataPCA: Parameter Characteristics (Bytes 1, 2) IND: Sub index (Byte 3. Byte 4 is not used) PVA: Parameter value (Bytes 5 to 8)

CTW: Control wordSTW: Status wordMRV: Main reference valueMAV: Main actual value (Actual output frequency)

Page 36: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 36Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Hexadecimal base

• All data are handled in hexadecimal format.• This makes is easier to convert from binary in byte-format.

Decimal Hex0 01 12 23 34 45 56 67 78 89 910 A11 B12 C13 D14 E15 F

Binary Decimal Hex0

12 C0111

7 7110

One byte conversion:

Page 37: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 37Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

PCV Parameter access

PCV: Parameter Characteristics Value PCD: Process DataPCA: Parameter Characteristics (Bytes 1, 2) IND: Sub index (Byte 3. Byte 4 is not used) PVA: Parameter value (Bytes 5 to 8)

- Parameter access via cyclical DPV0 data exchange

Page 38: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 38Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

PCV Parameter access- Parameter access via cyclical DPV0 data exchange

(Not used)

Parameter number

Page 39: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 39Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

PCV Parameter access- Example: Change ramp-up time (par. 3-41) to 10 sec.- Set Start-command and 50% reference.

Change par. Value (Long word)Par. 3-41 = 32 bits

FC Profile

Par. 3-41 conv. Ind.: -210=>1000=3E8hex

Page 40: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 40Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Process data

• PCD write (master -> slave)PCD 1: 16 bit controlword (CTW)PCD 2: 16 bit speed set point (MRV)PCD 3-10: Process data write (Par. 9-15)

• PCD read (slave -> master)PCD 1: 16 bit statusword (STW)PCD 2: 16 bit actual speed (MAV)PCD 3-10: Process data read (Par. 9-16)

Page 41: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 41Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Control word, PROFIdrive profile

• In par. 8-10 Control word Profile the INTERPRETATION of the CTW• FC Profile• PROFIdrive Profile

Control word (PROFIdrive) Status word (PROFIdrive)

Page 42: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 42Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Control word, PROFIdrive profile

Control word (FC Profile) Status word (FC Profile)

Page 43: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 43Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Controlword, FC profile

Control word according to FC Profile- 047C will start the drive with the transmitted reference…

Page 44: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 44Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Control word, FC profile

Control word according to FC Profile- 047C will start the drive with the transmitted reference…

Page 45: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 45Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Control word, FC profile

Control Word

Bits 00/01 Bits 00 and 01 are used to choose between the four reference values, which are pre-programmed in par. 3-10 Preset reference according to the following table:

Control Word

Bits 13 and 14 are used to choose from the four menu set-ups according to the following table:

Page 46: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 46Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Status word, FC profile

Status word according to FC Profile

Page 47: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 47Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Reference

• PCD 2 contains a 16-bit speed set point in percentage format. • The value is transmitted in integers (0-32767). • The value 16384 (4000 Hex) corresponds to 100%. • Negative numbers are formed with the aid of the twos complement.

-100% (C000hex)

0% (0hex)

100% (4000hex)

0par. 3-03

Max reference

par. 3-03 Max

reference

0% (0hex)

100% (4000hex)

par. 3-03 Max

reference

par. 3-02 Min

reference

Forward

ForwardReversePar. 3-00 set to [1] -Max - +Max

Par. 3-00 set to [0] Min - Max

Page 48: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 48Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Negative numbers:

Each bit of the number is inverted (zeros are replaced with ones and vice versa), but then one (000...0001) is added…

Negative numbers, Two’s complement

Page 49: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 49Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

PCD’s, Process Data Write

Fixed

FixedMaster -> slave

Par. 9-15 selections:

Page 50: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 50Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

PCD’s, Process Data Read

Slave -> master

Par. 9-16 selections:

Fixed

Fixed

Fixed

Page 51: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 51Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

A few words on PROFIdrive

Par. 8-10 Control word Profile = PROFIdrive Profile (State-machine)

ONSTW bit 0=true

OFFSTW bit 0=false

S1: Switching On InhibitedSTW bit 6=true; 0,1,2=false

OFFAND No Coast StopAND No Quick Stop

STW bit 0=falseAND bit 1=true AND bit 2=true

Coast stopOR Quick StopSTW bit 1=falseOR bit 2=false

S3: Switched On STW bit 0,1=true; 2,6 =false

S2: Ready for Switching onSTW bit 0=true; 1,2,6=false

S4: OperationSTW bit 0,1,2=true; 6=false

Enable Operation

STW bit 3=true

Disable Operation

STW bit 3=false

Coast StopSTW bit 1=false

Coast StopOR Quick StopSTW bit 1=falseOR bit 2=false

Coast StopSTW bit 1=false

Pulsesdisabled

ONSTW bit 0=true

OFFSTW bit 0=fase

Quick StopSTW bit 2=false

S5: Switching OffSTW bit 0,1=trueBit 2,6=false

Ramp stop

Quick StopSTW bit 2=false

Quick stop

Pulsesdisabled

= 1st priority= 2nd priority= 3th priority

Power-up:“Auto Remote Start Inhibit”

CTW 047E:“Auto Remote Control Ready”

CTW 047F:“Ramping”

- toggling bit 0....

Page 52: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 52Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

PROFIbus Test-tool

• The PROFIbus Test-tool is a PC-tool internally developed for DD, that is able to simulate a PROFIbus DP Master.• It supports only point-to-point connections (one PC and one drive).• A RS-485 interface/converter is needed.

Page 53: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 53Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

PROFIbus Test-tool COM settingsProfileLanguage

Scan Networkfor available devices

SelectDrive type

Slave node address

SelectTelegram type

StartPROFIbus master

Wizard for CTW and reference

Enter CTW and REF

Send data

Received data

Page 54: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 54Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Old common ”500” Group

”800” Group

Comm. & options

”900” Group

PROFIbus

”1000” Group

DeviceNet

FC 300

VLT 5000

New Parameter groups

Page 55: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 55Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Parameter Group 8-** ”Comm & options”

FC RS485

FC USB

Option A(Fieldbus)

Option B(I/O, feedback)

Option C(FPF, MCO) M

Par. 8-02 ”Control Word Source”

Motor

controller

Par. 8-10 ”Controlword profile”

Par. 8-00 ”Enabled options”

(Postponed)

Par. 8-03 ”Controlword timeout Time”

Par. 8-04 ”Controlword timeout function”

Par. 8-05 ”End of timeout function”

Par. 8-01 ”Control Site”

Digital inputs

Par. 8-50 ”Coastng Select”

Par. 8-51 ”Quick Stop Select”

Par. 8-52 ”DC Brake Select”

Par. 8-53 ”Start Select”

Par. 8-54 ”Reversing Select”

Par. 8-55 ”Set-up Select”

Par. 8-56 ”Preset reference Select”

Page 56: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 56Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Par. 8-03 ”Controlword timeout Time”

Par. 8-04 ”Controlword timeout function”

Par. 8-05 ”End of timeout function”

Bus controlword time-out

(8-03) Control word timeout time0.1 - 18000.0 sec. Default=1.0 s

(8-04) Control word timeout functionOff (default) [0] Freeze Output [1] Stop [2] Jogging [3] Max. Speed [4] Stop and trip [5] Select set-up 1 [7] Select set-up 2 [8] Select set-up 3 [9]Select set-up 4 [10]

(8-05) End-of-timeout functionHold set-up [0] Resume to original set-up (default) [1]

Note:In certain cases the timeout function is activated immediately, e.g. upon loss of communication.

Page 57: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 57Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Bus controlword time-out

What can trigger a Control-word timeout ?• A timeout can first be triggered after reception of the first valid control-word.

• If the bus-cable is broken, not data is received => timeout.

• If the PLC enters fail-safe-mode (e.g. put in ”Stop”), it will send empty telegrams, i.e. telegrams with no data-payload (Siemens S7 systems) => timeout.

• In older Siemens systems (S5) the master sends telegrams with zero’s i.e. not empty telegrams. This will normally not trigger a timeout !- that’s why VLT 5000 have option 3 in par. 805: ”Bit 10 = 0 => timeout”

Page 58: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 58Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Bus controlword timeout

(8-05) End-of-timeout functionHold set-up [0] Resume to original set-up (default) [1]

(8-06) Reset control word timeoutDo not reset (default) [0] Do reset [1]

Set-up selected i par. 8-04

- Resumes to original set-up

- After selecting [1] par. 8-06 returns to [0]

Page 59: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 59Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Par. Group 9-** ”Profibus”

9-15 PCD write configuration 9-16 PCD read configuration9-18 Node address9-22 Telegram selection9-23 Parameter for signals9-27 Parameter edit9-28 Process control9-53 Profibus Warning word9-63 Actual baud rate9-64 Device identification9-65 Profile number9-67 Control word 1

9-68 Status word 19-70 Edit Set-up9-71 Save data values9-72 Drive reset No action9-80 Defined parameters (1)9-81 Defined parameters (2)9-82 Defined parameters (3)9-83 Defined parameters (4)9-90 Changed parameters (1) 9-91 Changed parameters (2) 9-92 Changed parameters (3) 9-93 Changed parameters (4)

Page 60: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 60Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Par. Group 9-** ”PROFIbus”

Parameter 9-15 PCD Write ConfigurationOptions:

None3-02 Minimum Reference3-03 Maximum Reference3-12 Catch Up/Slow Down Value3-41 Ramp 1 Ramp Up Time3-42 Ramp 1 Ramp Down Time3-51 Ramp 2 Ramp Up Time3-52 Ramp 2 Ramp Down Time3-80 Jog Ramp Time3-81 Quick Stop Ramp Time4-11 Motor Speed Low Limi4-13 Motor Speed High Limit4-16 Torque Limit Motor Mode4-17 Torque Limit Generator Mode8-90 Bus Jog 1 Speed8-91 Bus Jog 2 Speed16-80 Fieldbus CTW 116-82 Fieldbus REF 1

Function:Assigns different parameters to PCD 3 to 10 of the PPO’s (the number of PCD’s depends on the PPO type). The values in PCD 3 to 10 are written to the selected parameters as data values.

Page 61: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 61Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Par. Group 9-** ”PROFIbus”

Parameter 9-16 PCD Read ConfigurationOptions:

None 16-00 Control Word 16-01 Reference [Unit]16-02 Reference % 16-03 Status Word16-05 Main Actual Value [%] 16-10 Power [kW] 16-11 Power [hp] 16-12 Motor Voltage 16-13 Frequency 16-14 Motor Current 16-16 Torque 16-17 Speed [RPM]16-18 Motor Thermal 16-19 KTY Sensor Temperature 16-20 Phase Angle 16-30 DC Link Voltage 16-32 Brake Energy / s 16-33 Brake Energy / 2 min 16-34 Heatsink Temp. 16-35 Inverter Thermal 16-38 SL Controller State 16-39 Controlcard Temp.

Function:Assigns different parameters to PCD 3 to 10 of the PPO’s (the number of PCD’s depends on the PPO type). PCD 3 to 10 holds the actual data value of the selected parameters.

16-50 External Reference 16-51 Pulse Reference 16-52 Feedback [Unit] 16-53 Digi Pot Reference 16-60 Digital Input 16-61 Terminal 53 Switch Setting 16-62 Analog Input 53 16-63 Terminal 54 Switch Setting 16-64 Analog Input 54 16-65 Analog Output 42 [mA] 16-66 Digital Output [bin] 16-67 Freq. Input #29 [Hz] 16-68 Freq. Input #33 [Hz] 16-69 Pulse Output #27 [Hz] 16-70 Pulse Output #29 [Hz] 16-84 Comm Option STW [Binary] 16-85 FC port CTW 1 Signal 16-90 Alarm Word 16-91 Alarm Word 2 16-92 Warning Word 16-93 Warning Word 2 16-94 Extended Status Word 16-95 Extended Status Word 2

Page 62: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 62Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Par. Group 9-** ”Profibus”

Parameter 9-18 Node AddressRange:0-126

Function:Sets the station address. It can also be set on the hardware switch. It is possible to set the address in par. 9-18 only if the hardware switch is set to 126 or 127. The parameter displays the actual setting of the switch when setting the hardware switch to >0 and <126 .

Page 63: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 63Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Par. Group 9-** ”Profibus”

Parameter 9-22 Telegram SelectionOptions:*Standard telegram 1 [1]PRO 1 [101]PRO 2 [102]PRO 3 [103]PRO 4 [104]PRO 5 [105]PRO 6 [106]PRO 7 [107]PRO 8 [108]

Function:Standard Telegram 1 equals to PPO type 3. This parameter is read only and automatically set to the according value (PPO type) when the drive is configured by a master.

Page 64: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 64Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Par. Group 9-** ”PROFIbus”

Parameter 9-28 Process ControlOptions:Disable [0]*Enable Cyclic Master [1]

Function:Process control (setting of Control Word, speed reference, and process data) is possible via either Profibus or the standard RS485 Interface but not both at the same time. Local control is always possible via the LCP. Control via process control is possible with either terminals or bus depending on the setting of par. 8-50 to 8-56.- Disable: Disables process control via Profibus, and enables process control via standard RS485.- Enable cyclic master: Enables process control via Profibus Master Class 1, and disables process control via standard RS485 bus or Master class 2.

Page 65: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 65Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Par. Group 9-** ”Profibus”

Parameter 9-70 Edit setupOptions:Factory setup [0]Setup 1 [1]Setup 2 [2]Setup 3 [3]Setup 4 [4]*Active setup [9]

Function:Choose the set-up in which programming (change of data) will be performing during operation.It is possible to programme the 4 set-ups independently of the set-up selected as active.Parameter access from each master will be directed to the set-up which has been selected by the individual master (cyclic, a-cyclic MCL1, first acyclic MCL2, second a-cyclic MCL2, third acyclic MCL2).

Page 66: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 66Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Par. Group 9-** ”PROFIbus”

Parameter 9-70 Edit setup

• Parameters can be accessed either from the process controller (i.e. PLC), or from various kinds of HMI equipment, at the same time. • For PROFIbus, parameter access in the drive is performed via several separated parameter channels (MCL 1 cyclic and a-cyclical, 3 MCL 2 a-cyclical channels) in total 5 channels.• For each channel it is possible to select at desired setup via par. 9-70.• Using this mechanism it is possible to Read or Write to and from parameters in a certain set-up from a MCL 1, (e.g. a PLC), and simultaneously access parameters in a different set-up from a MCL 2, (e.g. a PC tool), without interfering with the set-up selection for the programming sources.

Page 67: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 67Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Par. Group 9-** ”Profibus”

Parameter 9-71 Profibus Save data valuesOptions:*Off [0]Store edit set-up [1]Store all set-ups [2]

Function:Parameter values changed via Profibus are not automatically stored into non-volatile memory. Use this parameter to activate a function that stores allparameter values in the EEPROM. Thus, you retain changed parameter values at power-down.- [0] Off: The store function is inactive.- [1] Store edit set-up: All parameter values in the set-up selected in par. 9-70 are stored in the EEPROM. The value returns to [0] Off when all values are stored.-[2] Store all set-ups: All parameter values for all set-ups are stored in the EEPROM. The value returns to [0] Off when all parameter values are stored.

Page 68: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 68Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Profibus DP diagnosis

Profibus master

S

S

S

S

= diagnosis data available.(807) Diagnosis triggerDisable (default) [0]Trigger on alarms [1]Trigger alarm/warn. [2]

Note:Enabling diagnosis may cause increased bus traffic.

Page 69: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 69Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Profibus DP diagnosis

Profibus master

S

S

S

S

Diag. req.Diag. resp.

Standard diag.

Vendor spec. diag.

Page 70: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 70Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Profibus DP diagnosis

Alarm word Warning word

Page 71: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 71Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Profibus DP diagnosis

Profibus warning word

Page 72: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 72Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Profibus DP diagnosis

GSD-file is used to translate diagnosis-bits into real-text messages…

Page 73: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 73Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Troubleshooting

• Check the cabling…• Is the correct GSD-file installed ?

• Check bus termination…

• Check that the PLC is in run mode.If the PLC is in stop mode Warning 34 will appear. • Is the Control word valid?If bit 10=0 in the Control word, then the drive will not accept the Control word.

Page 74: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 74Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Troubleshooting

Page 75: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 75Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

Troubleshooting

Par. 8-50 ”Coastng Select”

Par. 8-02 ”Control Word Source”

Par. 8-01 ”Control Site”

Digital inputs

Par. 8-51 ”Quick Stop Select”

Par. 8-52 ”DC Brake Select”

Par. 8-53 ”Start Select”

Par. 8-54 ”Reversing Select”

Par. 8-55 ”Set-up Select”

Par. 8-56 ”Preset reference Select”

• Check relation between CTW bits and I/O’s

Page 76: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 76Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

DP V1 acylical parameter access

The Profibus DP extension DPV1 offers additional to the cyclical data communication of DP V0, an a-cyclical communication.

This a-cyclical communication is possible by a DP master class1 (e.g. PLC), as well as a DP master class 2 (e.g. MCT-10).

Cyclical communication means that data transfer takes place all the time with a certain update rate. This is the known DP V0 function normally used for quick update of I/O Process Data.

A-cyclical communication means a one-time-event, mainly used for Read/ Write of parameters from Process controllers, PC based tools or monitoring systems.

Page 77: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 77Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

DP V1 acylical parameter access

• Multiple masters• Cylical data exhange• Acylical parameter access• Dynamically established connections (MCL2)

Page 78: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 78Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

DP V1 acylical parameter access

A DP-V1 request does not have a predictable response-time…

Processing time

Page 79: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 79Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

DP V1 acylical parameter access

PROFIBUS telegram header

Data unitPROFIBUSTelegram

trailerDP-V1command/response

Profidrive V3 parameter channel

DU0

DU1

DU2

DU3

Req. /resp.Header Data

How the DP-V1 telegram is build…

Page 80: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 80Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

DP V1 acylical parameter access

For more detailed instructions in use of the DP V1 function, please refer to the Operating Instructions MG.90.E1.02 Information about the features supported by the PROFIBUS DP V1 functions.

Page 81: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 81Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

PROFIBUS in detail

7-layer OSI-model

RS-485 / FO

Fieldbus Data LinkFDL

Not used

DP functionsDP-V0

DP-V1

DP Profile

Layer 1, physical

Layer 2, Data link

Layer 3 to 6

Layer 7, application

User-layer

Page 82: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 82Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

PROFIBUS in detail

States of a DP-slave

Parameterization:The slave receives the bus-parameters, watchdog parameters and salve-specific data from the master.

Configuration:The master compares the requested configuration with the

actual configuration of the slave.

Data exchange:After a successful parameterization and configuration the master enters the data-exchange-mode with the salve.

Page 83: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 83Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

PROFIBUS in detail

Power On

WAIT_PRM Parameterization not o.k.

Parameterization o.k.

The master sends diagnosis-message to verify the pressents of the slave

Initialize

WAIT_CFG

DATA_EXCH

The master sends a parameter-telegram

Configuration o.k.

The master sends a ”check-configuration” telegram

Configuration o.k.Parameterization o.k

Configuration not o.k.

UnlockParm. not o.k.Wachdog

Statemachine for DP-slave

Page 84: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 84Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

PROFIBUS in detail

PROFIBUS analyzers

www.profitrace.com www.softing.com

Page 85: Fc300profibustraining 140917065840 Phpapp01 Ok

Confidential / Property of Danfoss Drives A/S 85Drives Division2005-10-02

Flemming Huusmann/DD-SPMP

PROFIBUS in detail

PROFIBUS analyzers, example