S7-SoftPLC:CIF 30/50/60 settings of S7-SoftPLC

From IBHsoftec Wiki English
Revision as of 10:31, 17 January 2013 by Jonas (Talk | contribs)

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

In the section [CIF30Dn] the specific settings of the nth CIF-card (ISA, PCI, PCMCIA) are performed.

Key name Value range Default value Description
BoardNumber 0 .. 3 0 Board number reported by the Hilscher "CIF Device Driver Setup"

0 = Board 0, 1 = Board 1, etc.

StatusSFC 100 .. 255 252 Defines the number of the Status SFC.
ControlSFC 100 .. 255 210 Defines the number of the Control SFC.
TypeFC 0/1 0 (SFC) Defines, whether the Status SFC and the Control SFC are shown as SFC or FC in the block directory of the PLC. TypeFC=1 shows the blocks as FC. This has the advantage that empty blocks in the PLC-program can be created and the parameters can be given reasonable names. When creating a block header care must be taken, that the data types and the IN/OUT areas are identical with the PLC blocks. When the blocks (FC) are transferred to the PLC via PU, the PLC keeps the internal blocks.
BitStart 0 .. 511 0 Start address of the process image to be copied
BitEnd 0 .. 511 511 End address of the process image to be copied
BitIn 0 .. maximum dual-port size 0 Offset of the inputs in the dual-port
BitOut 0 .. maximum dual-port size 0 Offset of the outputs in the dual-port
PhStart 0 .. maximum dual-port size BitStart Start address of the peripheral area
PhEnd 0 .. maximum dual-port size maximum dual-port size reported by the driver End address of the peripheral area
PhIn 0 .. maximum dual-port size BitIn Offset of the peripheral inputs in the dual-port
PhOut 0 .. maximum dual-port size BitOut Offset of the peripheral outputs in the dual-port
SFC14 0/1 1 1=Show SFC14 from this driver

diagnostic capabilities = general errors

SFC15 0/1 1 1=Show SFC15 from this driver

diagnostic capabilities = general errors

NoStop 0/1 0 1=Prevents, that the bus is stopped at PLC Stop by the watchdog. The outputs are programmed set to 0.

The Hilscher card is initialized when starting the PLC or changing the system data. At Run/Stop, no further initialization is performed. Must be enabled when using the driver CIFCFG.DLL in its section as well.


Running several cards

If several Hilscher cards are installed in the PC, the according drivers have to be integrated into S7-SoftPLC. Care must be taken, that the areas in the process image of the PLC do not overlap each other. This means, that if multiple CIF-cards are used, the settings for BitStart, BitEnd etc. have to be taken with great care. The SFC 14 and 15 are only allowed to be shown from one driver-DLL as well. No more than 4 Hilscher cards can be integrated.