3 PROGRAM ORGANIZATION UNIT (POU)
3.1 Function (FUN)
13
3
EN/ENO
An EN (enable input) and ENO (enable output) can be appended to a function to control its execution.
• A Boolean variable used as an executing condition of a function is set to an EN.
• A function with an EN is executed only when the executing condition of the EN is TRUE.
• A Boolean variable used as an output of function execution result is set to an ENO.
For the Boolean variable, refer to the following.
Page 23 Data Type
The table below shows the "ENO" status corresponding to the "EN" status and the operation result.
• Setting an output label to an ENO is not required.
• When an EN or ENO is used for standard functions, functions with an EN are shown as "Function name_E".
Creating programs
The program of a function can be created by using the engineering tool.
Navigation window "FB/FUN" Right-click "Add New Data"
The created program is stored in the FB/FUN file.
[CPU Parameter] "Program Setting" "FB/FUN File Setting"
Up to 64 programs can be stored in one FB/FUN file.
For details on program creation, refer to the following.
■Applicable devices and labels
The following table lists the devices and labels that can be used in function programs.
: Applicable, : Applicable only by instructions (Not applicable as a label indicating a program step), : Not applicable
*1 The timer, retentive timer, counter and long counter types cannot be used.
EN ENO Operation result
TRUE (Executes operation) TRUE Operation output value
FALSE (Stops operation) FALSE Indefinite value
Item Reference
How to create function programs GX Works3 Operating Manual
Number of FB/FUN files that can be written to a CPU module User's manual (Startup)
Type of device/label Availability
Label (other than pointer type) Global label
Local label
*1
Label (pointer type) Pointer type global label
Pointer type local label
Device Global device
Pointer Global pointer