Siemens IM182 - Profibus Slave
The TwinCAT system can be used as a slave in a Profibus with the aid of the Profibus DP - slave fieldbus card.
The DPRAM is 1536 (0x600) bytes. There are no interrupts used.
Context menu
Delete Device... <Del>
Removes the IM182 fieldbus card from the I/O configuration.
Online Reset
Initiates an online reset on the Profibus.
"SPC3 / IM182" tab
Address: Enter the DPRAM card address here. This address is jumped on the card
Port: The card uses one of the ports 0x320 or 0x330
Stations No.: Each Profibus device requires a unique station number.
Input Diagnosis
The Siemens SPC3/IM182 automatically provides one input byte which describes the status of the card and the Profibus:
Flags: The individual bits have the following definitions:
- 0x01 = NEW_OUTPUTS
- 0x02 = CLEAR_MODE
- 0x04 = NO_DATA_EXCH
- 0x08 = BAUD_SEARCHING
- 0x10 = SYNC_MODE
- 0x20 = FREEZE_MODE
Variables can be defined under the inputs and outputs for data exchange with a Profibus master. These variables are exchanged with the Profibus master and can be linked within TwinCAT.
Variables are added as described in ”Additional Tasks” under ”Adding Variables”