PROFIBUS FMS-OLE-DDE S5 CP5431 and PC FMS-CP5412
PROFIBUS FMS-OLE-DDE S5 CP5431 and PC FMS-CP5412
PROFIBUS FMS-OLE-DDE S5 CP5431 and PC FMS-CP5412
HARDWARE I USED
115u 944 6ES5 944-7UA22
Power Supply 6ES5 951-7LD12
Central Rack 2 6ES5 700-2LA11
CP5431 FMS 6GK1 543-1AA01
RAM submodule 6ES5 377-0AA32
CP5412 (A2) 6GK1 541-2BA00
Compaq Deskpro XE 560, Windows 95 with below software installed
S5 active cable 6ES5 966-0AA22
Profibus cable 6XV1 830-0AH10
(2) Profibus connectors 6ES7 972-0BA10-0XA0
SOFTWARE I USED
Step5 v7.01 6ES5 894-0MA24T
COM5431 6ES5 745-1AD01-0EA0
OLE/DDE Manager v1.3 6GK1 705-0AW13-3AA0
FMS-5412 v4.1 6GK1 702-5FH41-3AA0 (includes COM Profibus)
HARDWARE CONFIGURATION
115u Compaq PC
OBJECT
Set up an FMS variable in the CP5431 and have the OLE/DDE Manager read and write
to this variable through the proper configuration of the CP5412.
Page 1 of 24
PROCEDURE
1. Configure CP5431
Page 2 of 24
i) Press <F7 OK> key.
j) Select EDITàLINKSàAPPLICATION ASSOCIATIONS and configure as shown
below:
Page 3 of 24
k) Press <F7 OK>.
l) Select EDITàVFD VARIABLES EDITOR and configure as shown below:
Page 4 of 24
o) Press the <F7 OK> key.
p) Exit the COM 5431 software back to Step5 v7.01 by selecting INITàQUIT and
then <ESC>.
Page 5 of 24
2. Program 115u 944cpu
OB 1 FMSGLKST.S5D LEN=34
Page 1
Segment 1
:C DB 10
:L DW 0
:L KF +1
:+F
:T DW 0
:***
Segment 2
:JU FB 244
Name :SEND
SSNR : KY 0,0
A-NR : KY 0,0
ANZW : FW 60
QTYP : KS
DBNR : KY 0,0
QANF : KF +0
QLAE : KF +0
PAFE : FY 70
:
:JU FB 245
Name :RECEIVE
SSNR : KY 0,0
A-NR : KY 0,0
ANZW : FW 64
ZTYP : KS
DBNR : KY 0,0
ZANF : KF +0
ZLAE : KF +0
PAFE : FY 71
:BE
OB 21 C:FMSGLKST.S5D LEN=11
Page 1
Segment 1
!
! FB 249
! +--------------+
! ! SYNCHRON !
! 0,0 --!SSNR PAFE!-- FY 50
! 0,5 --!BLGR ! :BE
! +--------------+
Page 6 of 24
OB 22 C:FMSGLKST.S5D LEN=11
Page 1
Segment 1
!
! FB 249
! +--------------+
! ! SYNCHRON !
! 0,0 --!SSNR PAFE!-- FY 50
! 0,5 --!BLGR ! :BE
! +--------------+
Page 7 of 24
3. Configure CP5412
d) Make a “slave” station (not really a slave in this case), by picking the “SIMATIC”
under the “Station” window at the right. Pick the address as “2”.
e) Pick the CP5431 from the window as shown:
Page 8 of 24
f) Now you should have the following screen:
g) Double-click on the CP5431 station icon. This will pull up the “Edit FMS
Connections” window. Select the “New” button and configure the connection as
shown in the following:
Page 9 of 24
h) Press the “Parameters…” button and select the LSAPs as shown below:
Page 10 of 24
i) Click “OK” here and then “OK” on the next window.
j) From the “Configure” menu pick “Bus parameters…” and make sure they are set
to the values shown on the next screen:
Page 11 of 24
k) After making sure the baud rate is “187.5” then press the “Set Parameters…”
button. Make sure that the parameters are set like the following:
Page 12 of 24
l) If you will recall, the CP5431 was set to these values in the procedure above.
Click “OK” in this window and “OK” in the next.
m) This completes the configuration in COM Profibus. Now the configuration must
be exported to an NCM file. Do this by selecting the “File” menu, then “Export…”
then “NCM File” as shown:
Page 13 of 24
n) After exporting to a *.ldb file, you must now associate this file with the CP5412
(A2) card. First, exit COM Profibus by picking “Exit” from the “File” menu.
o) Make sure that you have properly installed the CP5412 (A2) card according to
the installation instructions.
p) Select the “Set PG/PC Interface” as shown below:
Page 14 of 24
q) This will pull up the following “Access Point”. Make sure that yours complies:
Page 15 of 24
r) Select the “Properties…” button. Make sure the “PROFIBUS Network” tab
complies with the following screen.
Page 16 of 24
s) Select the “FMS/DP-Protocol” tab.
Page 17 of 24
t) Click on the “Activate FMS”. Then use the “Search…” button to pick the FMS
database that you generated with COM Profibus. Then select the “S7-Protocol”
tab.
Page 18 of 24
u) Make sure that the “Activate S7” is not selected. Now select the “Mode” tab.
Page 19 of 24
v) After pressing the “Reset” button you should get the above message. In sequence
press the “Restart”, and then the “Test”. The screen should now look like the
following:
Page 20 of 24
w) Now the CP5412 card is successfully configured.
x) Plug up the Profibus cable from the CP5412 to the CP5431 card.
Page 21 of 24
4. Test
a) To test the function of the FMS connection. Execute the OLE/DDE Manager.
The FMS Navigator should find the connection as shown below. The STATE
should be UP. Double-click on the VARIABLE and you should see the index 100
that we defined in the COM 5431 software. The value should be changing
because the 115u 944cpu is incrementing this variable in DB10 DW0 every
scan.
b) Double-click on the value that is changing. This will pull up a Write menu as
shown below:
Page 22 of 24
c) Make sure you can change this variable to 0 and have it start counting up
from there. This proves you are writing to this variable.
d) Use Step5 Force Variables screen to confirm also as shown below:
Page 23 of 24
Page 24 of 24