Page 131 - ControlsNews 13 - Lean-Automation

Controls News 13
130
Technical support:
Lean Engineering with Saia®PG5
A large volume of data are written in IL, and
contain mainly FBs and PBs.
The symbols are not generated in PG5, but
imported from Excel
Despite the frequently encountered IL data, there
is also FUPLA and the S-WebEditor.
The project is programmed in PG5 1.4.
The «doc» folder contains the FTPCONFIG.TXT
data:
The data are written locally to a data system and
read as data over the integrated FTP server.
Company standards
There are good reasons why things look compli-
cated at first glance. In discussions with the project
leader you arrive at explanations for individual
points that help to make the project as efficient as
possible:
For recurring functions, appropriate program
blocks (FBs and PBs) that can be reused have
been being generated for years. These blocks are
generated once and tested and can be used again
in all projects (similar to FBoxes). For this project,
a new block was created that is suitable for cycli-
cal writing of energy data on the Flash of the PCD.
The structure of FBs and PBs allows the required
program blocks to be processed for specific pur-
poses using the appropriate calls.
A notable aspect of PBs and FBs is that the sym-
bols of PG5 and an external tool can be prepared
that can be imported into PG5 using the Excel
import.
This procedure ensures even more efficient pro-
gramming.
If a function does not already exist, but exists in
the form of Fupla FBoxes, these can be integrated
easily into the existing structure. Thus, for exam-
ple the M-Bus connection was created for this
project with up to 80 M-Bus devices per PCD for
data collection.
For on-site operation, an S-WebEditor project is
used.
FTPCONFIG.TXT configures the FTP server of the
PCD. This prevents access using the standard
password «rootpasswd» and ensures that the FTP
connections can «run».
 
Configuration of the FTP
server is saved directly in
the project
 
IL blocks are programmed once and can then be called
several times.
 
Overview of calling functions