EasyManua.ls Logo

Siemens SIMATIC S7 - Page 24

Siemens SIMATIC S7
82 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SIEMENS AG PRODAVE S7
Toolbox for Data Link PGs/PCs to SIMATIC S7
20
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},
{4,0,2,0},
{9,0,2,0},
{0,0,2,0} };
:
:
res = load_tool(3,"S7ONLINE",plc_adr_table);
:
res = new_ss(1); /* PLC No 1 address=2*/
:
res = new_ss(2); /* PLC No 2 address=4*/
:
res = new_ss(3); /* PLC No 3 address=9*/
:
error = unload_tool();

Table of Contents

Other manuals for Siemens SIMATIC S7

Related product manuals