Basic Functions; Load_Tool - Siemens SIMATIC S7 Operating Instructions Manual

Prodave s7 v5.5 toolbox for windows 95/98/nt/me/2000 applications for a data link of pgs/pcs to simatic s7 via mpi interface and pc/mpi cable
Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

SIEMENS AG

4.1 Basic Functions

load_tool

This function initialises the adaptor, checks if the driver is loaded, initialises the
parameterised addresses and switches the selected interface to active. Under
under Windows 95/98/NT/ME/2000 it is possible to parameterise a maximum of
32 connections.
The following 3 parameters are transferred to this function:
no
device
e.g. "S7ONLINE" for the MPI driver or ZERO (default).
adr_table
Structure Address List:
#pragma pack(1)
struct {
unsigned char adr;
unsigned char segmentid;
unsigned char slotno;
unsigned char rackno;
} adr_table[5];
#pragma pack()
Each party is identified by means of an entry in the address list:
adr
station address of party
segmentid
segment ID of party = 0 (reserved for later expansions)
slotno
slot number of party
rackno
rack number of party = 0
A connected party is selected by means of the "no" parameter of function
load_tool and via the new_ss function:
Toolbox for Data Link PGs/PCs to SIMATIC S7
number of active connection (1..32).
device name (zero terminated) of the used driver
pointer to address list of the connected party.
In this instance "adr" = 0 is interpreted as the end identifier of
the list.
19
/* station address
/* segment id
/* slot no
/* rack no
PRODAVE S7
default 2 */
default 0 */
default 2 */
default 0 */

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents