S7-SoftPLC:Configuring CP343/443 emulation in PLC43.INI

From IBHsoftec Wiki English
Revision as of 09:51, 23 January 2013 by Jonas (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Configuring CP343/443 emulation in PLC43.INI

The basic settings of the CP343/443 emulation are conducted here. S7-SoftPLC expects a section named [CPX43], in which the following keys are being used:

KeyName Default value Description
StartWithPlc 1 Start CP343/443 Emulation with S7-SoftPLC
FB55 0 Use FB55 (IP_CONFIG)
FC5 0 Use FC5 (AG_SEND)
FC6 0 Use FC6 (AG_RECV)
FC7 0 Use FC7 (AG_LOCK)
FC8 0 Use FC8 (AG_UNLOCK)
FC10 0 Use FC10 (AG_CNTRL)
FC50 0 Use FC50 (AG_LSEND)
FC60 0 Use FC60 (AG_LRECV)
FC62 0 Use FC62 (C_CNTRL)
SendAcknowledge 0 Send TCP acknowledges (some CPs)
ModbusPort 502 Port of the Modbus TCP server

If = 0 Modbus TCP server does not start.

ModbusDBIn 501 Data block number of the In-area
ModbusDBOut 502 Data block number of the Out-area

Example:

Starts the emulation with the PLC and uses FC 50, 60 as well as the Modbus TCP Server.

[CPX43]
StartWithPlc=1
SendAcknowledge=0
FB55=0
FC5=0
FC6=0
FC7=0
FC8=0
FC10=0
FC50=1
FC60=1
FC62=0
ModbusPort=502
ModbusDBIn=501
ModbusDBOut=502