Siemens SIMATIC S7 Operating Instructions Manual page 24

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
connection 1 ⇒ new_ss(1) ⇒ adr_table[0];
connection 2 ⇒ new_ss(2) ⇒ adr_table[1];
connection 3 ⇒ new_ss(3) ⇒ adr_table[2];
:
If there were no errors, the function supplies 0 as the return value otherwise an
error message which can be evaluated in accordance with the error table (see
error_message).
See also unload_tool, new_ss
C-Adapter
int
load_tool
(char nr,char* device,char* adr_table);
Example:
This example initialises 3 connections. Connection 1 to PLC with station
address 2, connection 2 to PLC with station address 4 and connection 3 to PLC
with station address 9. For any further program execution following "load_tool"
connection 3 is set to active.
C-Adapter
#include <w95_s7.h>
int
error;
adr_table_type plc_adr_table[3] = { {2,0,2,0},
:
:
res = load_tool(3,"S7ONLINE",plc_adr_table);
:
res = new_ss(1);
:
res = new_ss(2);
:
res = new_ss(3);
:
error = unload_tool();
Toolbox for Data Link PGs/PCs to SIMATIC S7
:
:
{4,0,2,0},
{9,0,2,0},
{0,0,2,0} };
/* PLC No 1
/* PLC No 2
/* PLC No 3
20
address = 2 */
address = 4 */
address = 9 */
PRODAVE S7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents