Introduction to Industrial Automation


Figure 7.2  Programming elements of FBD language



Download 43,9 Mb.
Pdf ko'rish
bet282/440
Sana01.01.2022
Hajmi43,9 Mb.
#294756
1   ...   278   279   280   281   282   283   284   285   ...   440
Bog'liq
Introduction to Industrial Automation by Stamatios Manesis, George

Figure 7.2  Programming elements of FBD language.


Basic Programming Principles of PLCs 



 



275

instructions are written one after the other as a list, hence the language received the IL name 

from IEC 61131-3. An example of a small Boolean program is as follows:

LD

I0.0



A

I0.1


=

Q0.0


LD

I0.4


O

I0.5


=

Q0.1


  4. Structured Text (ST)—Language Based on Text.

    ST is a high-level language whose syntax resembles that of Pascal language. For program-

mers that are already familiar with programming in a high-level language, such as Basic or 

C, it will be very easy to program in the ST language. In general ST supports complex and 

embedded instructions such as:

–  Repeat-until, while-do

–  Execution under conditions (IF-THEN-ELSE, case)

–  Functions (SQRT (•), SIN (•))

    Any of these programs starts with the declaration of the variables and then follows the main 

text of instructions, separated by a semicolon. Variables can be clearly defined as numeric 

values (e.g., integer, real, etc.), internally stored variables, or inputs and outputs. Empty spaces 

can divide the instructions from the variables, and it is allowed to parse and insert comments 

to increase the readability of the program. An example of the ST language is:

FR D(bcd_input, delay_time);

t.PRE :=delay_time;

IF (test_input)  THEN

t.EnableTimer:=1;

EL SE


t.EnableTimer:=0;

EN D_IF;


TO NR(t);

Set:=t.DN;

    This program reads the “bcd_input” in a form of a BCD code format and is used to change 

the delay time of the TON timer. When the “test_input” input is activated, the timer starts 

counting and after a specific amount of time the “set” is activated. An important difference 

AND          INPUT 1

A      I1

Operand or

variable name

Operation

or function

Operation

Operand

AND          INPUT 1

Writing abbreviation

A          I1




Download 43,9 Mb.

Do'stlaringiz bilan baham:
1   ...   278   279   280   281   282   283   284   285   ...   440




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish