PROFIBUS


PROFIBUS

1. SETUP PROFIBUS

1.1. Slave Setup

Table 1. Number of Slave Input/Output Bytes

ITEM Description
Output Bytes Output byte number to DP Slave from the controller.
Input Bytes Input byte number from DP Slave to the controller.
Station Address The controller station address.
Consistency Flag This specifies whether to set consistency flag(configuration data) in the DP Master that communicates with the Slave.
Max Digital Port Num The maximum point which can be displayed on the digital I/O screen.

The number of input/output bytes can be changed by using

Procedure 1. Displaying the DP Slave SETUP Screen

Steps

  1. Press MENU.

  2. Select SETUP.

  3. Press F1, [TYPE].

  4. Select PROFIBUS.

  5. If the DP Slave SETUP screen is not displayed, press F3, [OTHER], and select SLAVE. If F3, [OTHER], is not displayed, press F2, LIST, or NEXT, >, or PREV.

    SETUP PROFIBUS-DP
      DP SLAVE SETUP
    1 OUTPUT BYTES           :   8
    2 INPUT BYTES            :  10
    3 STATION ADDRESS        :   3
    4 CONSISTENCY FLAG       : OFF
    5 MAX DIGITAL PORT NUM   : 256
    
  6. To change the setting, set the cursor to the item to be set, and enter a value by using the numeric keys or function keys.

  7. To clear the I/O assignment,

    1. Press NEXT, >.

    2. Press F1,CLR_ASG, then the following message is displayed. "Clear all assignments ?"

    3. Press F4, YES to clear all I/O assignments.

  8. To save all the PROFIBUS-DP setup data to a file,

    1. Press FCTN.

    2. Select SAVE. This will save all the PROFIBUS-DP setup data to the file PROFIBUS.SV, on the default device.

1.2. Master Setup

Table 2. DP MASTER SETUP Screen

Item Description
Output Bytes Output byte number to DP Slave from the controller.
Input Bytes Input byte number from DP Slave to the controller.
Slave Parameter Init The following procedure initializes the slave parameter sets.

Caution

Initialization sets all slave parameters to standard values, canceling all user-set data. If previously set data must be preserved, make a note of it before performing initialization.

Max Digital Port Num The maximum point which can be displayed on the digital I/O screen.

Procedure 2. Displaying the DP Master SETUP Screen

Steps

  1. Press MENU.

  2. Select SETUP.

  3. Press F1, [TYPE].

  4. Select PROFIBUS.

  5. If the DP Master SETUP screen is not displayed, press F3,[OTHER], and select MASTER. If F3,[OTHER], is not displayed, press F2,LIST or PREV or NEXT,>. You can see the following screen.

    SETUP PROFIBUS-DP
      DP MASTER SETUP
    1 OUTPUT BYTES           :  22
    2 INPUT BYTES            :  24
    3 SLAVE PARAMETER INIT   : OFF
    4 MAX DIGITAL PORT NUM   : 256
    

  6. To change the setting, set the cursor to the item to be set, and enter a value by using the numeric keys or function keys.

  7. To clear the I/O assignment,

    1. Press NEXT, >.

    2. Press F1,CLR_ASG, then the following message is displayed. "Clear all assignments ?"

    3. Press F4, YES to clear all I/O assignments.

  8. To save all the PROFIBUS-DP setup data to a file,

    1. Press FCTN.

    2. Select SAVE. This will save all the PROFIBUS-DP setup data to the file PROFIBUS.SV, on the default device.

1.3. Bus Parameters Setup

Table 3. Master Bus Parameter Screen

ITEM DESCRIPTION
FDL Add Fieldbus Data Link Address of this station (Master)
Baudrate Baudrate
T SL Slot Time
min T DSR Minimum Station Delay Time
max T DSR Maximum Station Delay Time
T QUI Transmitter fall/Repeater switch Time
T SET Setup Time
Target Rotation Time Target Rotation Time
G Gap Update Time
HSA Highest Station Address
Max retry limit Maximum Number of retries
BP Flag User Interface Flag(Error Action Flag)
Error Action Flag If OFF, no change of the operation mode in case of an error.
Min slave interval Minimum slave interval for between two slave poll cycles
Poll Timeout Poll Timeout for the master-master communication
Data control Time Data control time for sending own operation mode
Master user data length The byte length of master user data
Master Class2 Name master who created this parameter sets
Master user data This field contains specific data from the manufacturer which necessary for the bus parameter set.

Procedure 3. Displaying the DP Master Bus Parameter Screen

  1. Press MENU.

  2. Select SETUP.

  3. Press F1, [TYPE].

  4. Select PROFIBUS.

  5. If the DP Master Bus Parameter screen is not displayed, press F3, [OTHER], and select BUS MASTER. If F3, [OTHER], is not displayed, press F2,LIST or PREV or NEXT, >. You can see the following screen.

    SETUP PROFIBUS-DP
      DP MASTER BUS PARAMETER
    1 FDL Add                  :       1
    2 Baudrate         : [12.0  Mbit/s ]
    3 T SL                     :    1000
    4 min T DSR                :      11
    5 max T DSR                :     800
    6 T QUI                    :       9
    7 T SET                    :      16
    8 Target Rotation Time     :   65000
    9 G                        :      10
    10 HSA                     :     126
    11 Max retry limit         :       4
    12 BP Flag                 : 0 ( 0h)
    13 Error Action Flag       :     OFF
    14 Min slave interval      :       1
    15 Poll Timeout            :    1000
    16 Data control Time       :     100
    17 Master user data length :      34
       Master Class2 Name      :
    18 [                               ]
    19 Master user data        :<*DETAIL*>
    

  6. To change the setting, set the cursor to the item to be set, and enter a value by using the numeric keys or function keys.

  7. To change the baudrate:

    1. Move the cursor to Baudrate item.

    2. Enter the appropriate baudrate using F4, [CHOICE].

  8. To change Master Class 2 Name:

    1. Move the cursor to the Master Class 2 Name item and press ENTER.

    2. Select a method of naming this item.

    3. Press the appropriate function keys to enter this item.

    4. When you have finished, press ENTER.

  9. To change Master user data:

    1. Move the cursor to the Master user data item.

    2. Press ENTER. The following is the screen for setting this item. Press PREV on this screen returns to the screen shown above. Each data must be set using a decimal number. The setting data which is represented by hexadecimal number is displayed on the right position.

      SETUP PROFIBUS-DP
       DP MASTER BUS PARAMETER
       USER DATA         DEC    HEX
       1                 0    (  0h)
       2                 0    (  0h)
       3                 0    (  0h)
       4                 0    (  0h)
       5                 0    (  0h)
       6                 0    (  0h)
       7                 0    (  0h)
       8                 0    (  0h)
       9                 0    (  0h)
      
  10. To clear the I/O assignment,

    1. Press NEXT, >.

    2. Press F1,CLR_ASG, then the following message is displayed. "Clear all assignments ?"

    3. Press F4, YES to clear all I/O assignments.

  11. To save all the PROFIBUS-DP setup data to a file,

    1. Press FCTN.

    2. Select SAVE. This will save all the PROFIBUS-DP setup data to the file PROFIBUS.SV, on the default device.

1.4. Master Slave Parameters

Table 4.  DP Master Slave Parameter Screen

ITEM DESCRIPTION
SLAVE ENABLE/DISABLE (ENB/DIS) This data specifies whether this slave parameter set is effective. When the slave parameter set is effective, switching the controller power off then on again causes communication with the slave to start, using the slave parameter settings. If the slave parameter set is ineffective, switching the controller power off then on again causes communication with the slave to be disabled.
  • ENABLE : This slave parameter set is effective.

  • DISABLE: This slave parameter set is not effective.

STATION ADDRESS (Address) This data is set to the station address of the slave that communicates with the Master using this slave parameter set. When you set the slave parameters, specifying n as the number of slave parameter set causes a value of n+2 to be set. For the slave parameters for slave address 6, for example, use the slave parameter set 4, where the number is 4, obtained by subtracting 2 from 6. This item can be set to any value between 3 and 34. Communication is disabled if a value that falls outside this range is specified.
Comment Comment for this slave parameter.
INPUT OFFSET ADDRESS This data is the offset in bytes from the beginning of the master input data area (DI data area). The number of input data area (DI data area) bytes is set to the value obtained by INPUT BYTES on DP MASTER SETUP Screen
OUTPUT OFFSET ADDRESS This data is the offset in bytes from the beginning of the master output data area (DO data area). The number of output data area (DO data area) bytes is set to the value obtained by OUTPUT BYTES on DP MASTER SETUP Screen
INPUT BYTES This data is the number of data bytes input from this slave.
OUTPUT BYTES This data is the number of data bytes output to this slave.
SLAVE FLAG This data contains slave specific flags.
  • ACTIVE : The Active flag of slave flag

  • NEW PRM : The NEW_Prm flag of slave flag

Slave Type This data contains a manufacturer specific type. - 0:DP-Slave
STATION STATUS This data contains the Station_status of parameter data. This data contains the following bits:
  • LOCK REQ : If LOCK_REQ=ON and UNLOCK_REQ=OFF, this slave is locked for other masters.

  • UNLOCK REQ : If UNLOCK_REQ=ON and LOCK_REQ=OFF, this slave is unlocked for other masters.

  • SYNC REQ : If ON, this slave accepts the sync control command.

  • FREEZE REQ : If ON, this slave accepts the freeze control command.

  • WD REQ : If ON, the watchdog control activated at this slave.

WD FACT1,2 The watchdog time=10ms * WD_FACT1 *WD_FACT2
MIN TSDR This data is the minimum waiting time for a DP-Slave until it is allowed to send the response frame to the DP-Master.
IDENT NUMBER The ident number of this slave.
GROUP IDENT This data determines which group(s) shall be addressed. Each bit represents a group, where for GROUP 1 to 8 - ON : addressed - OFF : Not addressed
USER PRM DATA BYTES The byte length of user parameter data.
USER PRM DATA The user parameter data.
CONFIG DATA BYTES The byte length of configuration data.
CONFIG DATA The configuration data.
DPRAM INPUT OFFSET To set this data by using the following format. (STATION ADDRESS - 3) * 32
DPRAM OUTPUT OFFSET To set this data by using the following format. (STATION ADDRESS - 3) * 32 + 1024
SLAVE USER DATA BYTES The byte length of slave user data.
SLAVE USER DATA The slave user data.

Procedure 4. DIsplaying the DP Master Slave Parameter Screen

Steps

  1. Press MENU.

  2. Select SETUP.

  3. Press F1, [TYPE].

  4. Select PROFIBUS.

  5. If the DP MASTER SLAVE PARAMETER screen is not displayed, press F3, [OTHER], and select SLAVE PARAM. If F3, [OTHER], is not displayed, press F2,LIST or PREV or NEXT, >. You can see the following screen.

    SETUP PROFIBUS-DP
      DP MASTER SLAVE PARAMETER
    1 DISABLE   3 [                 ]
    2 DISABLE   4 [                 ]
    3 DISABLE   5 [                 ]
    4 DISABLE   6 [                 ]
    5 DISABLE   7 [                 ]
    6 DISABLE   8 [                 ]
    7 DISABLE   9 [                 ]
    8 DISABLE  10 [                 ]
    9 DISABLE  11 [                 ]
    

  6. To change the setting, set the cursor to the item to be set, and enter a value by using the numeric keys or function keys.

  7. Move the cursor to the slave parameter you want to set up and Press F2, DETAIL. You will see the following screen. When you finished setting up the slave parameter, press F2,LIST or PREV.

    SETUP PROFIBUS-DP
      DP MASTER SLAVE PARAMETER
     1 SLAVE ENABLE/DISABLE     : DISABLE
     2 STATION ADDRESS          :       3
       COMMENT                  :
     3 [                       ]
     4 INPUT OFFSET ADDRESS     :       0
     5 OUTPUT OFFSET ADDRESS    :       0
     6 INPUT BYTES              :       3
     7 OUTPUT BYTES             :       1
     8 SLAVE FLAG             :192 ( C0h)
     9 ACTIVE                   :      ON
    10 NEW PRM                  :      ON
    11 SLAVE TYPE               :       0
    12 STATION STATUS        : 184 ( B8h)
    13 LOCK REQ                 :      ON
    14 UNLOCK REQ               :     OFF
    15 SYNC REQ                 :      ON
    16 FREEZE REQ               :      ON
    17 WD REQ                   :      ON
    18 WD FACT1                 :       10
    19 WD FACT2                 :       10
    20 MIN TSDR                 :       55
    21 IDENT NUMBER           :  14  ( Eh)
    22 GROUP IDENT            :   0  ( 0h)
    23  GROUP 1                 :      OFF
    24  GROUP 2                 :      OFF
    25  GROUP 3                 :      OFF
    26  GROUP 4                 :      OFF
    27  GROUP 5                 :      OFF
    28  GROUP 6                 :      OFF
    29  GROUP 7                 :      OFF
    30  GROUP 8                 :      OFF
    31 USER PRM DATA BYTES      :        5
    32 USER PRM DATA            :<*DETAIL*>
    33 CONFIG DATA BYTES        :        2
    34 CONFIG DATA              :<*DETAIL*>
    35 DPRAM INPUT OFFSET  :      0  (  0h)
    36 DPRAM OUTPUT OFFSET :    1024 (400h)
    37 SLAVE USER DATA BYTES    :         0
    38 SLAVE USER DATA          :<*DETAIL*>
    
  8. To change a Comment:

    1. Move the cursor to Comment item and press the ENTER key.

    2. Select a method of naming this item.

    3. Press the appropriate function keys to enter this item.

    4. When you finished, press ENTER.

  9. To change USER PRM DATA or CONFIG DATA or SLAVE USER DATA:

    1. Move the cursor to the item.

    2. Press ENTER. You will see a following screen for setting each data. See the following screen for an example. Press PREV on this screen returns to the screen shown above. Each data must be set using a decimal number. The setting data which is represented by hexadecimal number is displayed on the right position.

      SETUP PROFIBUS-DP
        DP MASTER SLAVE PARAMETER 1
      USER PARAM DATA   DEC    HEX
        1                0    (  0h)
        2                0    (  0h)
        3                0    (  0h)
        4                0    (  0h)
        5                0    (  0h)
        6                0    (  0h)
        7                0    (  0h)
        8                0    (  0h)
        9                0    (  0h)
      
  10. To clear the I/O assignment,

    1. Press NEXT, >.

    2. Press F1,CLR_ASG, then the following message is displayed. "Clear all assignments ?"

    3. Press F4, YES to clear all I/O assignments.

  11. To display the next or before slave parameter,

    1. Press NEXT, >.

    2. Press F2, PREV, then the slave parameter of the previous number is displayed.

    3. Press F3, NEXT, then the slave parameter of the next number is displayed.

  12. To save all the PROFIBUS-DP setup data to a file,

    1. Press FCTN.

    2. Select SAVE. This will save all the PROFIBUS-DP setup data to the file PROFIBUS.SV, on the default device.

2.  STATUS PROFIBUS

Table 5. DP Master Diagnostic Data Screen

ITEM DESCRIPTION
VALID (DIAGNOSTIC DATA VALID) This data indicates whether the diagnostic data is valid or invalid. - TRUE: This diagnostic data is valid. - FALSE: This diagnostic data is invalid.
Address (SLAVE STATION ADDRESS) Slave station address that has output each diagnostic data.
Station Status 1 The first data of diagnostic data. The detail of this data is as follows.
  • Master — Lock This slave has been parameterized from another master

  • Prm Fault— The received parameter data from the Master are different from those which the DP-Slave has determined.

  • Inval id Slave Response The received frame from a slave is not plausible response.

  • Not Supported A function which this slave does not support is requested.

  • Ext Diag A diagnostic entry exists in the slave specific diagnostic area(Ext_diag_Data).

  • Cfg Fault The received configuration data from the Master are different from those which the DP-Slave has determined.

  • Stati on Not Ready The DP-Slave is not yet ready for data transfer.

  • Stati on Non Existent The DP-Slave can not be reached over the line.

Station Status 2 The second data of diagnostic data. The detail of this data is as follows.
  • Deactivated— The DP-Slave has been marked inactive.

  • Sync Mode— The DP-Slave has received the Sync control command.

  • Freeze Mode— The DP-Slave has received the Freeze control command.

  • WD on — The watchdog control of DP-Slave has been activated.

  • Stat Diag— The DP-Slave is not able to provide valid user data.

  • Prm Req — The DP-Slave should be reparameterized and reconfigured.

Station Status 3 The third data of diagnostic data. The detail of this data is as follows:
  • Ext Diag Overflow These exists more diagnostic information than specified in Ext_Diag_Data.

Master Address The address of DP Master is entered which has parameterized this slave.
Ident Number The manufacturer identifier is given for this slave.
Ext Diag Data BYTES The byte length of Ext_Diag_Data.
Ext Diag Data 1 - 26 In this area the DP-Slave can enter its specific diagnostic.

Note

For details, refer to PROFIBUS STANDARD DIN 19245 Part 1 and Draft Standard DIN 19245 Part 3.

Procedure 5. Displaying the DP Master Diagnostic Data

Steps

  1. Press MENU.

  2. Select STATUS.

  3. Press F1, [TYPE].

  4. Select PROFIBUS. The DP Master diagnostic data will be displayed. See the following screen for an example.

    STATUS PROFIBUS-DP
      DP MASTER DIAGNOSTIC DATA
      NO  VALID   Address    Station Status 1
       1   TRUE       4         00000000
       2   TRUE       4         00000010
       3   TRUE       4         00000001
       4  FALSE       0         00000000
       5  FALSE       0         00000000
       6  FALSE       0         00000000
       7  FALSE       0         00000000
       8  FALSE       0         00000000
       9  FALSE       0         00000000
    

    Note

    The most recently received diagnostic data from a slave is number 1.

  5. To display more information about a diagnostic data, press F2,DETAIL. The detailed diagnostic data screen displays information specific to the diagnostic data you selected. When you finished viewing the detailed diagnostic data, press F2,LIST or PREV.

    STATUS PROFIBUS-DP
     DP MASTER DIAGNOSTIC DATA 1 :     TRUE
    1 DIAGNOSTIC DATA VALID      :         4
    2 SLAVE STATION ADDRESS      :  00000000
    3 Station Status 1           :       OFF
    4 Master Lock                :       OFF
    5 Prm Fault                  :       OFF
    6 Invalid Slave Response     :       OFF
    7 Not Supported              :       OFF
    8 Ext Diag                   :       OFF
    9 Cfg Fault                  :       OFF
    10 Station Not Read          :       OFF
    11 Station Non Existent      :       OFF
    12 Station Status 2          :  00000000
    13 Deactivated               :       OFF
    14 Sync Mode                 :       OFF
    15 Freeze Mode               :       OFF
    16 WD on                     :        ON
    17 Stat Diag                 :       OFF
    18 Prm Req                   :       OFF
    19 Station Status 3          :  00000000
    20 Ext Diag Overflow         :       OFF
    21 Master Address            :         1
    22 Ident Number              :        9FH
    23 Ext Diag Data BYTES       :         0
    24 Ext Diag Data  1          :        0h
    25 Ext Diag Data  2          :        0h
    26 Ext Diag Data  3          :        0h
    27 Ext Diag Data  4          :        0h
    28 Ext Diag Data  5          :        0h
    29 Ext Diag Data  6          :        0h
    30 Ext Diag Data  7          :        0h
    31 Ext Diag Data  8          :        0h
    32 Ext Diag Data  9          :        0h
    33 Ext Diag Data 10          :        0h
    34 Ext Diag Data 11          :        0h
    35 Ext Diag Data 12          :        0h
    36 Ext Diag Data 13          :        0h
    37 Ext Diag Data 14          :        0h
    38 Ext Diag Data 15          :        0h
    39 Ext Diag Data 16          :        0h
    40 Ext Diag Data 17          :        0h
    41 Ext Diag Data 18          :        0h
    42 Ext Diag Data 19          :        0h
    43 Ext Diag Data 20          :        0h
    44 Ext Diag Data 21          :        0h
    45 Ext Diag Data 22          :        0h
    46 Ext Diag Data 23          :        0h
    47 Ext Diag Data 24          :        0h
    48 Ext Diag Data 25          :        0h
    49 Ext Diag Data 26          :        0h
    
  6. To display the diagnostic data newer or older than the displayed data:

    1. Press F4,NEW, then the diagnostic newer than the displayed data is displayed.

    2. Press F5,OLD, then the diagnostic older than the displayed data is displayed.