Iec 61131-3 Second edition 2003-01 Programmable controllers – Part 3: Programming languages
Table 20 - Use of EN input and ENO output
Download 1.35 Mb. Pdf ko'rish
|
ourdev 569653
- Bu sahifa navigatsiya:
- 2.5.1.3 Declaration
Table 20 - Use of EN input and ENO output
No. Feature Example a 1 Use of EN and ENO Shown in LD (Ladder Diagram) language; see 4.2 +-------+ | | ADD_EN | + | ADD_OK | +---||---|EN ENO|---( )---+ | | | | | A---| |---C | | B---| | | +-------+ | 2 Usage without EN and ENO Shown in FBD (Function Block Diagram) language; see 4.3 +-----+ A---| + |---C B---| | +-----+ 3 Usage with EN and without ENO Shown in FBD (Function Block Diagram) language; see 4.3 +-----+ ADD_EN---|EN | A---| + |---C B---| | +-----+ 4 Usage without EN and with ENO Shown in FBD (Function Block Diagram) language; see 4.3 +-----+ | ENO|---ADD_OK A---| + |---C B---| | +-----+ a The graphical languages chosen for demonstrating the features above are given only as exemples. Features, if chosen by a vendor, shall be in effect for all languages supported by the vendor (IL, ST, LD, FBD). 2.5.1.3 Declaration Features for the textual and graphical declaration of functions are listed in table 20 a). As illustrated in figure 6, the textual declaration of a function shall consist of the following elements: 1) The keyword FUNCTION, followed by an identifier specifying the name of the function being declared, a colon (:), and the data type of the value to be returned by the function; 2) A VAR_INPUT...END_VAR construct as defined in 2.4.3, specifying the names and types of the function's input variables; 3) VAR_IN_OUT...END_VAR and VAR_OUTPUT...END_VAR constructs (see F.11 for an example of the use of the latter construct) as defined in 2.4.3, if required, specifying the names and types of the function's in-out and output variables; 4) A VAR...END_VAR construct, if required, specifying the names and types of the function's internal variables; Copyright International Electrotechnical Commission Provided by IHS under license with IEC Not for Resale No reproduction or networking permitted without license from IHS --``````-`-`,,`,,`,`,,`--- 61131-3 IEC:2003(E) – 51 – 5) A function body, written in one of the languages defined in this standard, or another programming language as defined in 1.4.3, which specifies the operations to be performed upon the variable(s) in order to assign values dependent on the function's semantics to a variable with the same name as the function, which represents the function result to be returned by the function (function result), as well as to in-out or output variables; 6) The terminating keyword END_FUNCTION. If the generic data types given in table 11 are used in the declaration of standard function variables, then the rules for inferring the actual types of the arguments of such functions shall be part of the function definition. The variable initialization constructs defined in 2.4.3.2 can be used for the declaration of default values of function inputs and initial values of their internal and output variables. The values of variables which are passed to the function via a VAR_IN_OUT construct can be modified from within the function. As illustrated in figure 6, the graphic declaration of a function shall consist of the following elements: 1) The bracketing keywords FUNCTION...END_FUNCTION or a graphical equivalent. 2) A graphic specification of the function name and the names, types and possibly initial values of the function's result and variables (input, output and in-out). 3) A specification of the names, types and possibly initial values of the internal variables used in the function, for example, using the VAR...END_VAR construct. 4) A function body as defined above. The maximum number of function specifications allowed in a particular resource is an Download 1.35 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling