Applies To:
  • CitectSCADA 1.00 1.01 1.10 1.11 1.20 2.00 2.01 3.00

Summary:
How do I use the Citect PROFI driver to connect my Siemens S5 controller to Citect using the Profibus FMS communication standard? 

Solution:
To use the PROFI protocol you need the following:

From Softing:

  • PROFI-CMI-DLL Software interface library to the CP5412
  • PROFI-DMK Firmware for the CP5412

From Siemens:

  • CP 5431 FMS Communications Proccessor for the S5
  • COM 5431 FMS Configuration software for the CP 5431 FMS

From Siemens or Softing:

  • CP5412 Communications Prosseccor to go in your Citect computer.

The following information describes a simple example of a Profibus connection to a Siemens S5 controller.

Boards form
Board name: B1 or user supplied unique name
Board type: PROFI
Address: 0xD000
I/O Port: not used
Interrupt: not used
Special Opt: not used
Ports form
Port name: P1 or user supplied unique name
Port number: not used
Board name: Use the "Board name" from the Boards form
Baud rate: 1500000
Data bits: not used
Stop bits: not used
Parity: not used
Special Opt: not used
I/O Devices form
Name: IO1 or user supplied unique name
Number: 1
Address: 10 2 255 10 S5
Variable Tags form
Variable Tag Name: I1
Data Type: INT
IO Device Name: IO1 or the "Name" from the I/O Devices form
Address: 100/1

Citect INI Settings:

[PROFI]
Window=1
LOCAL_ADDRESS=3
POLL_SAP=62

TSL=3000
MIN_TSDR=150
MAX_TSDR=980
TQUI=0
TSET=80
G=50
HSA=126
TTR=288000
MAX_RETRY_LIMIT=1
[S5]
Ci=500
TestIndex=40
Conn_Type="MMAZ"
Max_pdu_snd_high=0
Max_pdu_snd_low=241
Max_pdu_rcv_high=24
Max_pdu_rcv_low=241

S5 setup using COM 5431 FMS:

CP Init:
   L2 Address: 2
   Active/Passive: ACT
   Base SSNR: 0
   No of Interfaces : 1

Local Network Parameters:
   HSA: 126
   Bus Parameters:
      Data Rate: 1500 000bps
      Default SAP: 57
      Maximum no. retries 1
      Medium redundancy no redundancy
   Bus Parameter Data:
      Slot Time (TSL): 3000 bit times
      Setup Time(TSET): 80 bit times
      Minimun Station Delay (min TSDR): 150 bit times
      Maximun Station Delay (max TSDR): 980 bit times
      Target Rotation Time (TTR): 288000 bit times
      Gap Update Time: 50
Links:
   Application Association:
      Communication Reference: 2
      Job Configuration:
         SSNR: 0
         ANR: 38
         ANZW: .
         Unconfirmed jobs: .
      Local Appl Assoc Configuration:
         Local SAP: 10
         Max PDU Length: 241
      Remote Appl Assoc Configuration:
         Remote SAP: 10
         Remote L2 Address: 3
         Password: .

VFD Variables:
INDEX   TYPE   ACC PASSW   S5 ADDRESS   ANZW SSNR
100   AR 100   DB 40 0     DB 40 104     0
      IN 16

NOTES:

  1. The information set in the Local Network Parameters should match those in the CITECT INI. In fact all stations on the Profibus network should have matching bus parameters.
  2. In the Job Configuration the ANR must be even. Siemens use even job numbers for server links and odd numbers for client links. In the case of Citect the PLC is a server and the SCADA is a client.
 

Keywords:
 

Attachments