SYF.dll

SUMMARY

The SoftPLC7_SYF.dll replaces modules operating internally of a PLC.

CONTENTS

  1. Introduction
  2. Supported System Functions (PLC – PLC communication excluded)
  3. SoftPLC7.ini

Introduction

The internally used FCs, FBs, SFCs, SFBs are replaced by functions out of the SoftPLC7_SYF. The information for redirecting is taken from the SoftPLC7.ini file. For any missing entry a default is created. If only standard functions are used no entries need to be made.

Supported System Functions (PLC – PLC communication excluded)

Module Function Name
SFC0 SET_CLK
SFC1 READ_CLK
SFC2 SET_RTM
SFC3 CTRL_RTM
SFC4 READ_RTM
SFC6 RD_SINFO
SFC14 DPRD_DAT
SFC15 DPWR-DAT
SFC20 BLKMOV
SFC21 FILL
SFC22 CREAT_DB
SFC23 DEL_DB
SFC24 TEST_DB
SFC25 COMPRESS
SFC26 UPDATE_PI
SFC27 UPDATE_PO
SFC28 SET_TINT
SFC29 CAN_TINT
SFC30 ACT_TINT
SFC31 QRY_TINT
SFC32 SRT_DINT
SFC33 CAN_DINT
SFC34 QRY_DINT
SFC36 MSK_FLT
SFC37 DMSK_FLT
SFC38 READ_ERR
SFC39 DIS_IRT (only envelope)
SFC40 EN_IRT (only envelope)
SFC41 DIS_AIRT
SFC42 EN_AIRT
SFC43 RE_TRIGR
SFC44 REPL_VAL
SFC46 STP
SFC47 WAIT
SFC48 SNC_RTCB
SFC51 RDSYSST(only SZL_ID 0014, 0092, 0292, 0692)
SFC58 WR_REC (only envelope)
SFC59 RD_REC (only envelope)
SFC64 TIME_TCK
SFC79 SET
SFC80 RSET
SFC81 UBLKMOV
SFC101 RTM
SFB0 CTU
SFB1 CTD
SFB2 CTUD
SFB3 TP
SFB4 TON
SFB5 TOF
FC8 DT_TOD

INI-FILES

SoftPLC7.ini

Section [HLL-Functions]

Entry Type Description / Example Default
(FB |FC |SFB |SFC )<num> string
Defines the DLL-Function that replaces the Program-Module with the following syntax: <dll, function>
Example
FC13=MyDll, MyFunction
				

[HLL-Function]
FB15=SoftPlc7_SYF, NOP
FC16=SoftPlc7_SYF,S7TRUE
FC17=SoftPlc7_SYF,S7FALSE
			        
NOP
The execution of a FB or FC may be omitted by defining ‘NOP’ (no operation) for that function; in such a case only the BIE-Flag is set.

TRUE/FALSE
The defined function is replaced and the constant value TRUE or FALSE is returned instead and the BIE-Flag set.
(It may be used to distinguish between a Hard= and a SoftPLC7)