Omron NJ-series User Manual page 301

Machine automation controller cpu unit software
Hide thumbs Also See for NJ-series:
Table of Contents

Advertisement

6 Programming
FUN Instructions
 Execution Conditions
All FUN instructions have EN inputs as execution conditions. The FUN instruction is executed each
task period as long as EN is TRUE.
 Instruction Options
In a ladder diagram, you can add the following instruction options to specify a change to TRUE or a
change to FALSE as the execution condition for that instruction. ST statements do not have options.
Instruction Options
Differentiation
option
To add an instruction option, add one of the option symbols listed in the table above before the
instruction.
Example:
@ MAX
EN
In1
In2
Information That Applies to Both FB Instructions and FUN
Instructions
 Condition Flags
System-defined variables that are assigned values that represent the result of instruction processing
are called Condition Flags. The only Condition Flag for an NJ-series Controller is the Carry Flag
(P_CY).
The Carry Flag serves the following purposes.
• It shows whether the result of processing an instruction exceeds the range that can be expressed
by the data type of the output variable.
• It shows whether an overflow occurred in a bit shift instruction for bit string data. For details, refer
to the NJ-series Instructions Reference Manual (Cat. No. W502).
6-114
Symbol
Change to
@
TRUE
ENO
Out
This option creates an upwardly differentiated instruc-
tion.
The instruction is executed only once when EN
changes to TRUE.
NJ-series CPU Unit Software User's Manual (W501)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents