In order to exchange input / output data between the Profibus DP slave PCI expansion module and the Profibus master in a cyclic way, define the variables in the Profibus-Modules I/O Mapping tab.
The %IW addresses of the controller are the output values supplied by the Profibus DP master.
The %QW addresses of the controller are applied to the input of the Profibus DP master.
Create Your I/O Mapping Table for the TM5PCDPS PCI Module
To create your I/O mapping table for the TM5PCDPS, select the Profibus I/O module you want in the Hardware Catalog, drag it to the Devices tree, and drop it on the TM5PCDPS node of the Devices tree.
For more information on adding a device to your project, refer to:
• Using the Drag-and-drop Method
• Using the Contextual Menu or Plus Button
The variables for the exchange are automatically created in the %IWx and %QWx of the Profibus-Module I/O Mapping tab. Double-click the I/O device you added to access this screen.
Configure a Virtual I/O Device Added to the TM5PCDPS PCI Module
The tabs of the configuration window are described in the table below:
The configuration window contains the following tabs:
Tab Name |
Description |
---|---|
Profibus-Modules I/O Mapping |
This tab contains the variables for data exchange. |
Status |
This tab provides diagnostic information. |
Information |
This tab provides further information on the selected input or output module. |
The following table describes the status of the Profibus I/O depending on:
othe Controller status
othe Profibus communication state (value of PROFIBUS_R.i_CommState of PLCSystem )
Controller State |
Controller Profibus I/O State |
---|---|
STOPPED |
The %QW addresses are managed as it is configured in PLC Settings (refer to the chapter Controller States and Behaviors) The %IW addresses are managed as it is configured in PLC Settings (refer to the chapter Controller States and Behaviors) |
RUNNING |
The %IW addresses are updated by the master The %QW addresses are sent to the master |
HALT |
The %QW addresses are managed as it is configured in PLC Settings (refer to the chapter Controller States and Behaviors) The %IW addresses keep the last correct value sent by the master |
Communication Status |
Value of PROFIBUS_R.i_CommState |
Controller Profibus I/O State |
---|---|---|
Profibus Master is stopped |
4 (Operate mode) |
The %IW addresses are set to 0 by the master The %QW addresses are sent to the master |
Watchdog is detected |
2 (Stop) |
The %QW addresses are not sent to the master The %IW addresses keep the last correct value sent by the master |