Hardware Configuration
|
135U (with
CP5431)
|
|
PC (with
CP5412(A2))
|
|
L2 Address = 2
|
|
L2 Address = 1
|
- SINEC CP 5431 FMS/DP 6GK1
543-1AA01
- Memory Submodule ...EPROM/RAM
- Active Cable for connecting the PC to the 5431
6ES5-966-0AA22
(OR refer to Application-Note 2)
- SINEC CP5412(A2) 6GK1
541-2BA00
Software Configuration
Required Software:
- SINEC FMS-5412/MS-DOS, Windows
6GK1 702-5FA00-0EA0
or
SINEC FMS-5412 Windows 95
6GK1 702-5FH00-0EA0
- SINEC COM 5431 FMS/DP system software
6GK1 745-1AD01-0EA0
- SIEMENS STEP5
- Citect V3.4 with ProfiB driver
- FMS Token Profi-FMS-SW
- Application Program Interface Profi-DMK
You can get (4,5) from "ICT" company...Tel : 508-5575882.
Contact : Don Lemenager.
Note: The following are the protocols which are
supported by Citect.
Protocol
|
5412(A2)
|
5412(A1)
|
FMS
|
Ö
*
|
Ö
|
SINECTF
|
´
|
Ö
* <
|
SINECFDL
|
´
|
Ö
|
* Driver is available [from
Citect] only in 16Bit version. < SINEC
is the CITECT driver for the SINECTF protocol.
If the customer wants to use two different cards (A1 & A2),
he should use the FMS protocol [ ProfiB for A2 card, and Profi for
A1 card ]
Setting up the PLC
- Synchronize the CP with the CPU (FB125). You should call FB125
in OB21, OB22, and OB23.
: JU FB125
Name : SYNCHRON
SSNR : KY 0,4
BLGR : KY 0,200
PAFE : FY 200
- SEND ALL. It should be called cyclically
: JU FB 120
Name : SEND
SSNR : KY 0,4
A-NR : KY 0,0
ANZW : FW 250
QTYP : KS NN
DBNR : KY 0,0
QANF : KF +0
QLAE : KF +0
PAFE : FY 248
- RECEIVE ALL. It should be called cyclically
: JU FB 121
Name : RECEIVE
SSNR : KY 0,4
A-NR : KY 0,0
ANZW : FW 250
QTYP : KS NN
DBNR : KY 0,0
QANF : KF +0
QLAE : KF +0
PAFE : FY 249
Setting Up the 5431 Card
From the main menu of the COM5431 configuration Software
SELECT:
- INIT-EDIT:
CP Type : CP 5431
Status : OFFLine FD
database File : C: Q<name>
- Edit -CP-Init :
L2-Address : 2
Active/Passive : Act.
Base - SSNR : 4 (It could be 0-4)
No. Of Interfaces : 1
- Edit - Global Network Parameters :
No. of active stations : 2
HAS : 31
Data Rate : 500 000 BPS
Default SAP : 61
Max. no. of interfaces : 1
Medium redundancy : No Redundancy
BUS PARAMETER DATA
Slot time data (TSL) : 1000 Bit times
Setup Time (TSET) : 80
Min TSDR : 80
Max TSDR : 360
TTR : 15000
GAP (G) : 30
- Edit - Links - Application Association:
Type of application Association : MMAC {Acyclic
master-master}
Monitoring Interval : 500
JOB CONFIGURATION
SSNR : 0
ANR : 10 {It has to be even number}
Local LSAP : 10
Max PDU length : 241
Remote LSAP : 10
Remote L2 Address : 1
- Edit - VFD
Index
|
Type
|
ACC
|
Passw
|
S5 Address
|
ANZW
|
SSNR
|
100
|
VS
|
2
|
|
|
DB 5 11
|
FW 250
|
0
|
101
|
VS
|
2
|
|
|
DB 5 12
|
FW 250
|
0
|
102
|
IN
|
16
|
|
|
DB 5 13
|
FW 250
|
0
|
…
|
…
|
…
|
|
|
…
|
…
|
…
|
…
|
…
|
…
|
|
|
…
|
…
|
…
|
Setting Up the 5412 (A2) Card
- Run "SINEC Setup"
- Select Edit - Configure New CP
Device : CP_L2_1:
I/O Port : 0x240
Interrupt : 10
Dual-port RAM : 0xD000 - 64K
L2-address : 1
Highest Station Address : 31
Transmission Rate : 500 000
Protocol : FMS-5412
SELECTION : startup.ldb {C:\SINEC\DATA}
- Select Edit - FMS configuration
- Select File - New DB
VFD Number : 1
Vendor Name : SIEMENS AG
VFD Name : 135U
- Select Edit - CRL
CR Name : <name>
Local LSAP : 10
Remote Address : 2
Remote LSAP : 10
- Save, close the application, and restart windows.
Setting Up Citect
- Copy the ProfiB driver files to C:\Citect\Bin
PROFIB DBF
946 09-03-96 05:25p
PROFIB DLL 100, 132 10-04-96 11 :32a
PROTDIR DBF 8,708 10-04-96 10:44a
PBUP26E DOC 37,376 07-25-96 08:54a
PB_FASTE DOC 99,328 06-18-96 02:51p
README DOC 49,664 10-04-96 11:55a
- Install the FMS Token as follows:
I. Insert the PROFI-IF Disk into Drive A:
II. Type INSTALL, and follow the instructions
III. It will ask for the FMS-TOKEN Disk
(Note that : the FMS-TOKEN is KEY PROTECTED, so do not
defragment the hard drive. It is the same concept as S5 KEY
PROTECTION.)
- From the directory where you installed the PROFIBUS, copy the
following files to C:\CITECT\BIN
PAPI_L DLL 70,343 07-14-96
05:02a
LOAD_A2 BIN 1,392 07-14-96 05:02a
PBFW_A2 LAD 233,396 07-14-96 05:02a
- Add the following section in CITECT.INI
[PROFIB] {Note that the following parameters
should match those in the 5431 card}
Window=1
Local_address=1
POLL_SAP=61
TSL=1000
MIN_TSDR=80
MAX_TSDR=360
TQUI=0
TSET=80
G=30
HSA=31
TTR=15000
MAX_RETRY_LIMIT=1
[S5]
Ci=500
TestIndex=40
CONN_TYPE="MMAC" {Should be the same as in 5431 card}
Max_pdu_snd_high=0
Max_pdu_snd_low=241
Max_pdu_rcv_high=24
Max_pdu_rcv_low=241
- Run "Project Editor", and select Communication-IO Devices:
Server
form
|
|
Server name: |
P-Line |
Boards
form
|
|
Server name: |
P-Line |
Board name: |
B1 |
Board type: |
PROFIB |
Address: |
0xD000 |
I/O Port: |
0x240 (should match
the setting on the CP 5412(A2) Card using the Dip
Switches) |
Interrupt: |
not used
|
Special Opt: |
not used
|
Ports
form
|
|
Port name: |
P1 |
Board name: |
B1 |
Baud rate: |
500 000 |
I/O Devices
form
|
|
Name: |
IO1 |
Number: |
1 |
Address: |
10 2 255 10 S5
The address format is:
<local SAP><remote address><destination
segment><remote SAP><Name of Citect.INI section for
other parameters> |
Protocol: |
PROFIB |
Port name: |
P1 |
- Select Tags - Variable Tags, add the following tags:
Variable Tag
|
Type
|
IO Device Name
|
Address
|
Tag1
|
STRING
|
IO1
|
100
|
Tag2
|
STRING
|
IO1
|
101
|
Tag3
|
INTEGER
|
IO1
|
102
|
- Close the "Project Editor", and run "Citect Node Setup"
- Select "Stand Alone Computer"
Project : <Name>
I/O Server : P-Line {Or whatever the name you have configured}
- Go to "Project Editor" Compile & Run
|