SoftPLCNet.ini

SUMMARY

The SoftPLCNet.ini file defines communication parameters for the SoftPLC7.

Section [Startup]

Entry Type Description / Example Default
Window integer
Defines whether an Info Window should be opened
  • 0 - do not open window
  • 1 - open window
0
ComDriverCount integer
Number of used CP 341
0

Section [Settings]

Entry Type Description / Example Default
SR-Entrypoint integer
Access point for the connection
LAddr integer
Board identifier according to the settings of the SIMATIC Manager. Value=hex-format
0
AG_Typ integer
AG-Typ i.E. 300, 318, 400, 416 etc
400
SR-Entrypoint<n>
(1 <= n <=4)
integer
4 access points for hardware connections
LAddr<n>
(1 <= n <=4)
integer
4 board identifier for hardware connections according to the settings of the SIMATIC Manager. Value is written in hex-format.

Section [SR-Connections]

Entry Type Description / Example Default
Count integer
Number of connections
99
Conn_<n> string
For the send/rec-Interface (ISO):
(<localConn-Id>;<MAC-Address>;<local TSAP>;<remote TSAP> ;<link connection>;<LAddr-Index>;<ServerConn>)

For the send/rec-Interface (ISO over TCP / RFC 1006):
(<localConn-Id>;<IP-Address>;<local TSAP>;<remote TSAP> ;<link connection>;<LAddr-Index>;<ServerConn>)

For SHM-interface:
(<localConn-Id>;<remoteConn-Id>;AG<local AG-Number>;PLC<remote AG-Number> ;<link connection>;<LAddr-Index>;<remote LAddr>;<fast connection>)

For UDP-interface:
(<localConn-Id>;UDP=[<local IP-Address>:]<remoteIP-Address> ;<local Port>;<remote Port>;<LAddr-Index>)


For TCP/IP-interface:
(<localConn-Id>;TCP=[<local IP-Address>:]<remoteIP-Address> ;<local Port>;<remote Port>;<link connection>;<LAddr-Index>)

Parameter Description
localConn-Id Address of local PLC
remoteConn-Id Address of remote PLC
MAC-Address MAC address of remote PLC
IP-Address IP address of remote PLC
local TSAP Transport Service Access Point of local PLC
remote TSAP Transport Service Access Point of remote PLC
local AG-Number Instance number local PLC
remote AG-Number Instance number remote PLC
local Port Port UDP-packages are send from
remote Port Port UDP-packages are send to
link connection SHM-Interface: 'n'- without acknowledge Send/Recv= and TCP/IP-Interface:
'a' - activ connection
'p' - passive connection
LAddr-Index Defines the hardware connection: LAddr<n>
ServerConn '1' defines a server connection; important for GET, PUT, STATUS, USTATUS
remote LAddr LAddr of target PLC
local IP-Address Address the socket-function 'bind' refers to. The parameter (with colon) may be omitted, 0.0.0.0 (=INADDR_ANY)than is taken as address
remote IP-Address Target address UDP-packages are send to. IP-Address 255.255.255.255 is identified as BROADCAST. For multicast the address area 224.0.1.0 to 239.255.255.255 may be used
fast connection So fare for SHM-connections PLC_(L)SEND and BSEND only:
'f' (fast connection) -used as default-; no rising edge is needed to start sending, value 1 is sufficient. The mission is marked ‘completed’ after 2 cycles.

‘s’ (slow connection) needs a rising edge to start sending, value 1 is not sufficient. The mission is marked ‘completed’ after 3 cycles.

Consequence on PLC_(L)SEND:
<P> setting ‘f’:
An error free action responds with:
(ACT,DONE,STATUS)=(1,0,0x0000).
<P> setting ‘s’:
An error free action responds with:
(ACT,DONE,STATUS)=(1,0,0x8181),(0,0,0x8181),(0,1,0x0000).

Consequence on BSEND:
<P> setting ‘f’:
An error free action responds with:
(REQ,DONE,STATUS)=(1,0,25), (0,1,0x0000).
<P> setting ‘s’:
An error free action responds with:
(REQ,DONE,STATUS)=(1,0,25),(0,0,025),(0,1,0)
UDPMax integer
The maximum of UDP-packages that can be gathered in the buffer (per connection)
1024

Section [Run]

Entry Type Description / Example Default
Trace integer
Archiving of debug information
  • 0 - no archiving
  • 1 - Informations are written to a file named 'SoftPlcNet_<PLC-Number>.log' in the SoftPLC7 working directory
0
InfoMask integer
The mask defines which messages are displayed in the window.
'-1' allows any message to be displayed.
0
ListBox integer
defines whether messages are displayed in the window, '0' - no messages

Section [Interface]

Entry Type Description / Example Default
SendReceive string
Name of a DLL for the Send/Recv-Interface.
The Send/Recv-Interface is used to set up ISO-on-TCP connections between SoftPLC7s.
s7_sr.dll
SharedMemory string
Name of a DLL for the SHM-Interface.
The SHM-Interface is user-specific and not at common disposal.
For any package send a shared-memory-area is allocated that is made available for other SoftPLC7s.
schshm.dll

Section [ComDriver<n>]

<n> for n=1,2,...
A plausibility check of the entries is performed and if necessary modified to a reasonable value.
Entry Type Description / Example Default
ComPort integer
Used COM-Port. Possible values: 1-4 for COM1 – COM4
1
LAddr integer
LAddr on the CP. (value in hex)
0
DelayTime integer
'no data'- gap depends on the baud rate also
4
MaxTeleCount integer
Max. Number of buffered telegrams (1-250)
250
PreventOverwriting integer
Overwrite old telegrams? 0=no; 1=yes ;(for MaxTeleCount=1 only)
1
BaudRate integer
Baud rate: 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 76800
9600
DataBits integer
Number of data bits: 7 or 8
8
StopBits integer
Number of stop bits: 1 or 2
1
Parity string
Parity used: N=no, O=odd, E=even
E