0% found this document useful (0 votes)
28 views3 pages

Totally Integrated Automation Portal: Netw Ork 1

This document contains the main program and various networks for an automation program. The main program monitors sensor inputs like water level and controls outputs like valves. Other networks perform tasks like reading the real-time clock, converting analog sensor values, multiplying values to change units, and setting flags for workday/weekend based on the date and time. The networks and symbols are documented with comments on their functions.

Uploaded by

Mladen Divac
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views3 pages

Totally Integrated Automation Portal: Netw Ork 1

This document contains the main program and various networks for an automation program. The main program monitors sensor inputs like water level and controls outputs like valves. Other networks perform tasks like reading the real-time clock, converting analog sensor values, multiplying values to change units, and setting flags for workday/weekend based on the date and time. The networks and symbols are documented with comments on their functions.

Uploaded by

Mladen Divac
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Totally Integrated

Automation Portal

Main
Main Properties
General
Name Main Number 1 Type OB.ProgramCycle
Language LAD
Information
Title "Main Program Sweep Author Comment Net work 1:
( Cycle)"
Family Version 0.1 User-defined
ID

Name Data type Offset Comment


Temp
AI_POT_OUT Real

Network 1:
KADA JE S1 NA 1 ,TADA JE VENTIL V4 ZATVORE, KAD JE NA 0 , VENTIL JE OTVOREN, AKTIVIRANJE VENTILA SE
MOZE VRSITI I POMOCU PREKIDACA S2, KOJI GA AKTIVIRA KADA JE I SAM PREKIDAC S2 AKTIVAN

%I0.0 %I0.1
" S1" "V4"

%I0.2
"S2 "

Symbol Address Type Comment


"S1" %I0.0 Bool SENZORNIVOA VODE
"V4" %I0.1 Bool VENTIL ZA DOTOK VODE
"S2" %I0.2 Bool RUCNI TASTERZA PALJENJE VENTILA V4

Network 2: FUKCIJA ZA CITANJE TRENUTNOG VREM ENA I DATUM A

RD_SYS_T
DTL
EN ENO
%M W12
RET_VAL "thang_tai_loi"
"REAL_TIME_
OUT CLOCK" .real_time

Symbol Address Type Comment


"REAL_TIME_CLOCK" %DB6 Block_DB
"REAL_TIME_CLOCK".re DTL
al_time
"th ang_tai_loi" %MW12 Int

Network 3: OCITAVANJE POTENCIOM ETRA SA ANALOGNOG ULAZA


POTENCIOMETAR
Totally Integrated
Automation Portal

NORM_X SCALE_X
UInt to Real Real to Real
EN ENO EN ENO
0 MIN %MD0 1.0 MIN %M D4
%IW8 0 OUT "Tag_1" %MD0 OUT "AI_POT_OUT"
" AI_POT_LEVEL" VALUE "Tag_1" VALUE
2 7648 MAX 5.0 MAX

Symbol Address Type Comment


"Tag_1" %MD0 Real
0 0 UInt
"AI_POT_LEVEL" %IW8 0 UInt
276 48 27 648 UInt
"AI_POT_OUT" %MD4 Real
1.0 1.0 LReal
5.0 5.0 LReal

Network 4: MNOZENJE
POSTO SMO DOBILI VREDNOST U MILISEKUDNAMA U OPSEGU OD 1 DO 5 POTREBNO JE POMNOZITI ZA 1000 DA BI
DOBILI VREDNOST U SEKUNDAMA, KOJE CEMO U SLEDECEM KORAKU KONVERTOVATI U TIME

M UL
Real
EN ENO
%MD4 %MD24
"AI_POT_OUT" IN1 " NEW_AI_POT_
100 0.0 IN2 OUT OUT"

Symbol Address Type Comment


"AI_POT_OUT" %MD4 Real
"NEW_AI_POT_OUT" %MD24 Real
100 0.0 10 00.0 LReal

Network 5: KONVERZIJA KAKO BI IZ TIPA REAL DOBILI PROM ENJIVU TIM A TIM E
KONVERZIJA AI_POT_UOT U PROMENJIVU TIME U MILISEKUNDAMA

CONV T_CONV
Real to DInt DInt TO Tim e
EN ENO EN ENO

%MD24 %MD14 %MD14 %MD18


" NEW_AI_POT_ OUT "intVAl" "intVAl" IN OUT "timeVal"
OUT" IN

Symbol Address Type Comment


"int VAl" %MD14 DInt
"ti meVal" %MD18 Time
"NEW_AI_POT_OUT" %MD24 Real

Network 57: RADNI DAN


da bi dobili flag radni dan, aktivirace se fukcija real_time_clock.real_time.weekday = 8, sa tom funcijom mi aktivir
amo aktiviramo sve radne dane od ponedeljka do petka, a sa fukcijom
real_time_clock.real_time.hour mi aktiviramo radni sat u datom terminu
Totally Integrated
Automation Portal

" REAL_TIME_ "REAL_TIM E_ " REAL_TIME_


CLOCK".real_time. CLOCK".real_time. CLOCK".real_time.
%M0.5
WEEKDAY HOUR HOUR
" FLAG_RAD_DAN"
== >= <=
USInt USIn t USInt
8 17 23

Symbol Address Type Comment


"REAL_TIME_CLOCK" %DB6 Block_DB
"REAL_TIME_CLOCK".re USInt
al_time.HOUR
17 17 USInt
23 23 USInt
"FLAG_RAD_DAN" %M0.5 Bool
"REAL_TIME_CLOCK".re USInt
al_time.WEEKDAY
8 8 USInt

Network 58: VIKEND


ako je aktivna fukcija "REAL_TIME_CLOCK".real_time.WEEKDAY == 9 dobijamo vikend , i ako se vremenski interval
narazi u obsegu od 16 do 24 i od 0 do 2 , timemax fukciju sam definisao u network 24,

" REAL_TIME_ "REAL_TIM E_


CLOCK".real_time. CLOCK".real_time.
%M 22.0
WEEKDAY HOUR
"FLAG_VIKEND"
== >=
USInt USIn t
9 16

"REAL_TIM E_ " REAL_TIME_


CLOCK".real_time. CLOCK".real_time.
HOUR HOUR
>= <=
USIn t USInt
0 2

Symbol Address Type Comment


"REAL_TIME_CLOCK" %DB6 Block_DB
"REAL_TIME_CLOCK".re USInt
al_time.HOUR
16 16 USInt
0 0 USInt
2 2 USInt
"FLAG_VIKEND" %M22.0 Bool
"REAL_TIME_CLOCK".re USInt
al_time.WEEKDAY
9 9 USInt

You might also like