376
SECTION
3
PLC
Programming
Industrial Text & Video Company 1-800-752-8398
www.industrialtext.com
CHAPTER
10
The IEC 1131 Standard and
Programming Language
addition, etc.). Function blocks are sets of data function instructions that
work on blocks of data. Moreover, variable scope refers to the extent that a
variable can be used in an application. For example, global variables can be
used by any program in an application, while local variables can only be used
by one particular program. Note that, in addition to the standard types of
variables, functions, and blocks, the IEC 1131-3 allows for other types of
vendor- and user-defined PLC programming elements. Thus, the IEC 1131-3
does not specify a set number of programming features, but rather establishes
the groundwork for standard and additional functions.
Table 10-1. Data variable types, functions, and blocks.
The IEC 1131 standard’s data type and function flexibility allows
programmable controller manufacturers to provide instructions they
consider necessary, but that are not defined within the standard. Such
instructions may include specific application instructions, such as a servo
positioning instruction used with a particular vendor’s intelligent servo
control module. While this instruction may fall within the programmability
parameters of the standard, it may not be available in other PLCs that comply
with the standard. Thus, the IEC 1131 standard lets vendors enhance their
IEC 1131-3 instruction sets by adding more powerful, customized
instructions. It also allows users to create their own instructions, in block
form, to perform a specific task.
selbairaVnoitpircseD
sepytelbairavataD)drow,etyb,tibronaelooB(sgnirtsdesab-tiB•
)dengisnudnadengis(sregetnI•
laeR•
)yaD_fO_emiT,.g.e—etad,emit(emiT•
sgnirtsretcarahcIICSA•
)syarradnaelgnis(denifed-resudna-rodneV•
snoitcnufataD).cte,TON,RO,DNA:naelooB(desab-tiB•
,RQS,VID,LUM,BUS,DDA(citemhtira/laciremuN•
).cte,NAT,SOC,NIS,NL,GOL
snoisrevnocnoitcnufataD•
).cte,NIM,XAM,TIMIL(snoitcnuftceleS•
)><,<=,=>,=,<,>(snosirapmoC•
,THGIR,TFEL,htgNEL(snoitcnufgnirtsIICSA•
).cte,ETELED,ECALPER,TRESNI
snoitcnufdenifed-resudna-rodneV•
skcolbnoitcnuFhctalnu/hctal—elbatsib—teser/teS•
(noitcetedreggirtegdE•π,≠,↓)
)nwod/pu,nwod,pu(sretnuoC•
)FOT,NOT(sremiT•
skcolbdenifed-resudna-rodneV•
epocselbairaVlabolG•
lacoL•
(=, , )