

============================================================

S7Simulator.exe may be used for training & testing purposes with PROSCADA IO drivers

============================================================


Usage:

run from the commandline or explorer there are no parameters.

The program simply listens for Driver connections.

When run on the same PC as the SCADA you can use the IP address 127.0.0.1(local loop back) in the driver

You can connect upto 2 SCADA nodes to the same simulator.

The Simulator emmulates 1000 byte datablocks 1-512, the datablocks are initialised to zero & retain any data written - like a PLC with no program running.


the following data is changing



DB15 is in S5 format, 
DB15:0 increments up infinitely every 10msec
DB15:1 increments to pi * 1000 
DB15:2 is sin(DB15:1)
 

DB1 is in S7 format
DB1,2 increments upto 100 every 10msec
DB1,0 increments everytime DB1,2 gets to 100 aprox every second
 
STRING SDB1,128[32] contains "Hello there"
 
 
code for S7
 
IF DB1,4.0=1 THEN 
     DB1,5.6 =1 
ELSE
     DB1,5.6 =0 
END
 
IF DB1,4.1 AND DB1,4.2 THEN
     DB1,5.7 =1
ELSE
     DB1,5.7 =0 
END
 
DB1,4.3 blink every 1 sec.
 
Code for S5
 
IF DB15,4.0=1 THEN 
     DB15,4.14 =1 
ELSE
     DB15,4.14 =0 
END
 
IF DB15,4.1 AND DB1,4.2 THEN
     DB15,4.15 =1
ELSE
     DB15,4.15 =0 
END
 
DB15,4.3 blink every 1 sec.


