Prodave (US)
Prodave (US)
File: ProdaveDll.dll
Manufacturer: Siemens
Devices: models S7-200, S7-300 and S7-400
Release: Mar 13, 2003
This driver allows communication between Elipse SCADA and all Siemens model S7 PLCs
(model S7-200 has some limitations), it depends on the PRODAVE-S7 software provided by
Siemens.
1) Connecting:
CP 5611 PCI-Card
CP 5511 PCMCIA-Card
CP 5411 ISA-Card
MPI-ISA-Card or MPI-ISA on Board (PG 720/740/760, PC RI45,25,FI25)
COM 1/2 through PC-Adapter
Check the PRODAVE documentation provided by Siemens for more information about
connections (check “PRODAVE S7, Toolbox for PGs and PCs (AT and compatibles) – Operating
Instructions”).
The most common way to connect to the PLC is through a PC-Adapter cable, as follows:
Before using the Elipse driver (ProdaveDll.dll), the PRODAVE Software from Siemens must be
installed on the PC. You can install it by running the “SETUP.EXE” program from the
PRODAVE disk set.
After installing PRODAVE, it must be configured using the system “Control Panel”. You should
click on the “Setting the PG/PC Interface” icon to configure PRODAVE:
Use the “Install” button to install one of the PRODAVE interfaces, the most common one is the
PC-Adapter that uses a standard PC serial port. The interfaces install window is:
In this window you should select the desired interface in the left and press “Install ” to install it.
After this you can “Close” the window to go back to the main configuration window. Then you
should configure the interface you selected, highlight it and press “Properties…”:
You should configure all the PLCs that you are going to communicate with, click the
“Add” button to create a new connection to a PLC, you should define the “Station
Address”, “Segment-ID”, “Slot Number”, “Rack Number” and the PLC model (S7-200
or S7-300/400).
Finally you should define the Data-Block addressing mode. The S5 Method addresses
Words sequentially (DW0, DW1, DW2, DW3,…). The S7 Method addresses words by
the address of the first byte (DW0, DW2, DW4, DW8, …). For more information, see
the PRODAVE manual, page 21.
Table 1:
n2/b2 Read/Write Type Description n3/b3 n4/b4 PLC Models
0 R/W DB signed char (Byte) DB number Byte number S7-300/400 only
1 R/W DB signed short DB number DW number S7-300/400 only
2 R/W DB signed long DB number DW number S7-300/400 only
3 R/W DB unsigned char (Byte) DB number Byte number S7-300/400 only
4 R/W DB unsigned short DB number DW number S7-300/400 only
5 R/W DB unsigned long DB number DW number S7-300/400 only
6 R/W DB float DB number DW number S7-300/400 only
7 R/W Flags signed char - Flag Address S7-300/400 and S7-200
8 R/W Flags signed short - Flag Address S7-300/400 and S7-200
9 R/W Flags signed long - Flag Address S7-300/400 and S7-200
10 R/W Flags unsigned char - Flag Address S7-300/400 and S7-200
11 R/W Flags unsigned short - Flag Address S7-300/400 and S7-200
12 R/W Flags unsigned long - Flag Address S7-300/400 and S7-200
13 R/W Flags float - Flag Address S7-300/400 and S7-200
14 R/W Outputs bytes - Output Port Address S7-300/400 and S7-200
15 Read Only Inputs bytes - Input Port Address S7-300/400 and S7-200
16 Read Only Timers words - Timer Address S7-300/400 and S7-200
17 R/W Counters words - Counter Address S7-300/400 and S7-200
18 R/W Special flags char - Field Address S7-200 only
19 R/W Special flags short - Field Address S7-200 only
20 R/W Special flags long - Field Address S7-200 only
21 R/W Special flags BYTE - Field Address S7-200 only
22 R/W Special flags WORD - Field Address S7-200 only
23 R/W Special flags DWORD - Field Address S7-200 only
24 R/W Special flags float - Field Address S7-200 only
25 R/W Variable memory char - Field Address S7-200 only
26 R/W Variable memory short - Field Address S7-200 only
27 R/W Variable memory long - Field Address S7-200 only
28 R/W Variable memory BYTE - Field Address S7-200 only
29 R/W Variable memory WORD - Field Address S7-200 only
30 R/W Variable memory DWORD - Field Address S7-200 only
31 R/W Variable memory float - Field Address S7-200 only
5) Driver Capabilities:
Read PLC Tags
Write PLC Tags
Read BLOCK Tags
Write BLOCK Tags
Read Block Elements
Write Block Elements
6) LOG File:
In case you have trouble using the driver, a LOG file can be generated. Open the driver
“Extra” dialog and enable the log options. A sample log file is:
drvStopComm(0,0,0,0)
ProdaveUnload: Prodave Unload OK!
In the example above, there was an error reading from a DB, the error code is 0302H
(hexadecimal). You can check the error code in the PRODAVE manual: "0302 : block too
small, DW does not exist". If you examine the PLC program, the cause of the error can be
detected (DB1 doesn’t have DW100 declared).
For to obtain error text, you must to install the ERROR.DAT file in the current directory of
your application.