Project-Converting

SUMMARY

This document describes how to convert an existing S7-Project for use on a SoftPLC7 und how to perform some basic checks on the result.

CONTENTS

  1. Introduction
  2. Converting
  3. SoftPLC7.ini
  4. Consistence check
  5. Analysis of calling
  6. Runtime check

Introduction

Steps to convert a STEP7-Program

Converting

After starting the program 'SoftPLC.exe' the item 'Convert' in the pull-down menu 'File' opens the following dialog:


Source folder
You may input or browse for the folder location of the files to be converted. (OFFLINE DIRECTORY of the STEP7 Project)


Button labeled ‘S7-Program..’
Opens a dialog to input or browse for the location of the STEP7 project to be converted.


Destination folder
You may input or browse for the folder the converted files should be written to.


Button labeled ‘Convert’
Starts converting the S7-Project to SoftPLC7-Project.

Note:
Conversion may also be done via Command line. see: 'Call-up syntax for SoftPLC7' in System_Overview.

SoftPLC7.ini

The 'SoftPLC7.ini' file holds parameters needed for the runtime.


Structure of SoftPLC7.ini
The file is structured in sections; a section may have arbitrary entries.
Some of the section entries are written by the system itself according to user input.

I.E. see Converting above
“Source =” and “Destination folder” are written to section [Convert] entry “From” and “To”.
Next time 'Converting' is called up these entries are presented as pre select.

Very little of the entries need adaptation to a specified project, these are marked in the following.


Sections to be taken care of:
(Depending on functionality and used hardware not all of the sections may exist)
For detailed Syntax of any of the following see: 'SoftPLC7.ini'

[HLL-Functions] ! has to be checked !
All Modules modules having a corresponding DLL must be listed here.


[OBx] ! only when deviate from default !
If OBs differ from default, the deviations has to be defined here.
(OBs without deviation needn’t be listed at all)

[OB1] ! only when deviate from default !
Like OBx, but has the additional parameter “Cycle Monitoring”

[Run]
The last active SoftPLC7-Program is listed here.

[Convert] ! information only !
The source / destination of last converted S7-Program is listed here.

[StartUp]
For possible StartUp-Parameters.

[ACI] ! only needed for connection to ALPHA-VISION®-VISU !
Defines the DataObject file of the visualisation.

[AciConnect]
Needed for connection to ALPHA-VISION®-VISU.

[PG]
Defines parameter to connect to debug interface.

[Watch]
Defines how often debug informations are checked.

[Retentive]
Defines the number of remanent flag-bytes, timers and counters.

[Exit]
Defines whether on closing down SoftPLC7 persistent data should be saved in the persistent directory.

Consistence check

After starting SoftPLC7.exe a consistence check should be performed.
(Pull-down menu ‘File’ item ‘Consistence’)
The completeness of modules is checked; missing ones are listed.


Note:
In S7 environment, modules of the library needn’t be available in the project folder in addition; on converting to SoftPLC7 only modules out of the Offline-folder will be converted. That means, under SIMATIC-Manager at least those library-modules, that be needed in the project, must be copied to the S7-Program environment.

Analysis of calling

Select 'analysis of calling' in pull-down menu 'File' for that check.

All modules are listed in a tree.


Note:
System-Modules must appear in bold font – if necessary enlist them.
Non-System-Modules in bold font should be checked.
Generally anyS7-Module may be substituted by DLLs, but its rather rarely at the moment, exceptions are “FC5, FC6, FC8, FC50, FC60” (send-recv) nevertheless check!
A module in brackets (not called) should be look at with care, as a module called indirectly (i.E. UC FC[MW03] can not be identified by ‘analysis of calling’ and therefore will be marked as 'not called'.

Runtime check

If the program enters STOP-condition unexpected, an S7-Error occurred.

For further investigation the SIMATIC-Manager or “Test mode” via pull-down menu “VIEW” may be used.