© JL

 

 

 

 

 

 


                AI_Org.exe come into existence after several years of development of this "system". It is only part of

package Analog Input Organizer and in its algorithm is hidden power of years of experience.

                AI_Org.exe prepares data for next using in world standard software as

                               STEP 7 © SIEMENS

                               WinCC © SIEMENS

                               InTouch © Wonderware

 

INPUT DATA .

 

                After feeding AI_Org.exe with appropriate informations  ( input data ) three text files are created

 

LIST OF ANALOG INPUTS  is used as input data. List can be fed to AI_Org.exe either as "csv" file

or across clipboard. For analog input treatment a programmer has to be fed with some appropriate information

which usually are given by project designer. These information are :

 

Symbol …( tag name, circuit number …) - unique !!!  identifier of analog input

Comment … description of analog input - it is used as comment field where comment can be used ( STEP 7, InTouch )

Low range …   value in physical unit which is represented by 4 mA input signal of measurement transmitter

High range …   value in physical unit which is represented by 20 mA input signal of measurement transmitter

UNIT …  labeling of physical unit of analog input - kPa, °C, m3/h, bar, %, …  

 

                Input data can be passed to AI_Org.exe  in three ways either by opening "csv"  file where particular data

are separated by comma "," , by copying such table to clipboard in  MS Excel  and pasting in AI_Org.exe to

table for input data or writing this data to Input Data Table by hand.

 

 

For example :        Measurement of pressure in boiler. Measurement transmitter has physical range from 0  -  5.5 Mpa.

Electric range of transmitter is 4 - 20 mA.

                               Measurement of temperature in boiler. Measurement transmitter has physical range from 30  -  330 °C.

Thermocouple is type of PT100 .

 

 

Table of LIST OF ANALOG INPUTS  ( AI_mars.csv ) :

 

Symbol

Comment

LR

HR

Unit

Type

Option

F101

Surface air flow MARS 21: PIW512

0

100000

 m3/h

CURR

PID

P102

Pressure in boiler - MARS 21: PIW514

0

5500

 kPa

CURR

PID

F103

Water addition to boiler - MARS 21: PIW516 

0

3450

 l/min

CURR

PID

P104

Exhaust fan suction - MARS 21: PIW518

-20

12

 kPa

CURR

PID

L105

Sampler position - MARS 21: PIW520

-200

-2

 m

CURR

 

L106

Level in boiler - MARS 21: PIW522

0

100

 %

CURR

 

W107

Daily weight increase - MARS 21: PIW526

0.1

0.4

 kg

CURR

 

T108

Temperature in boiler - MARS 21: PIW524

30

330

 °C

PT100

PID

 

Input "csv" file must contain this structure :

 

F101,Surface air flow MARS 21: PIW512,0,100000, m3/h,CURR,PID

P102,Pressure in boiler - MARS 21: PIW514,0,5500, kPa,CURR,PID

F103,Water addition to boiler - MARS 21: PIW516  ,0,3450, l/min,CURR,PID

P104,Exhaust fan suction - MARS 21: PIW518,-20,12, kPa,CURR,PID

L105,Sampler position - MARS 21: PIW520,-200,-2, m,CURR,,

L106,Level in boiler - MARS 21: PIW522,0,100, %,CURR,,

W107,Daily weight increase - MARS 21: PIW526,0.1,0.4, kg,CURR,,

T108,Temperature in boiler - MARS 21: PIW524,30,330, °C,PT100,PID

 

 

 

 

 

 

 

 

 

 

 

 


Fast STEP7 addressing

 

                On the Input Data page you can simply check and find out appropriate address of any attribute of AI.

Select requested AI in table .In "DB Address " is then displayed immediately address of attribute in DB. By clicking

to edit field is the address copied to clipboard. After this you can paste it to S7 program in LAD,STL,FBD editor.

 

Open input data csv file.

 

                Open file by "OPEN" button    . After successful opening the Input DataTable is filled by your data.

 

 

INTOUCH setting .

 

                On InTouch setting page can be selected which attributes of AI will be inserted to InTouch tag database.

Default setting contains all attributes selected. This selection / deselection is done by checking checkbox at

particular attribute label. If AI is not signed in column “Option” as PID then the variables in setpoint section is not

included for import to InTouch database.

This setting has no relation to generating datablock. Datablock is generated always in full length i.e.

with all attributes.

 
 

 

 

 

 


For application name and topic name see InTouch © Wonderware - x.csv file for DBLOAD tool

 

 

 

 

WinCC setting .

 

On WinCC setting page can be selected which attributes of AI will be inserted to WinCC tag database.

Default setting contains all attributes selected. This selection / deselection is done by checking checkbox at

particular attribute label. If AI is not signed in column “Option” as PID then the variables in setpoint section is not

included for import to WinCCh database.

 

 

If function AS ó OS transfer is selected then datablock source file for STEP7 is created with S7 system attributes

{ S7_m_c = true }. Such variables will appear in WinCC tag database after AS ó OS transfer ( station compilation )

 

This setting has no relation to generating datablock. Datablock is generated always in full length i.e.

with all attributes.

 
 

 

 

 

 


For  connection name see Win CC ©  SIEMENS - x_vex.csv file for VARIABLE IMPORT tool

 

 

 

 

Generation action .

 

                Once an input data are in Input Data Table the button "GENERATE"    can be pressed.

If input data was pasted from clipboard or was typed by hand you are asked to find directory where the

output files are stored.

If input data was opened from "csv" file than output  data are placed to the same directory with using input

file name.

 

For example :        Your input file has name "AI_mars.csv"  and is stored in C:\PLCDATA\MARS\  directory.

                               After generation are created three files:

 

                               1. C:\PLCDATA\MARS\AI_mars.awl                  … text file for Source file Editor STEP 7

                               2. C:\PLCDATA\MARS\AI_mars_InT.csv   …csv file  for InTouch DBLOAD tool

                               3. C:\PLCDATA\MARS\AI_mars_vex.csv       … csv file for WinCC IMPORT tool