2 Instruction Descriptions
2-20
NJ-series Instructions Reference Manual (W502)
Out and OutNot
None
z Out
The Out instruction takes the logical result from the previous instruction and outputs it to a specified
BOOL variable.
The operation is as shown below if you do not specify upward or downward differentiation.
You can specify upward or downward differentiation for the Out instruction. If upward or downward dif-
ferentiation is specified, the output value is determined by changes in the result of logic processing from
the previous instruction between the last execution of the instruction and the current execution. The
operation is according to the current logical result from the previous instruction, as shown in the follow-
ing table.
Out: Takes the logical result from the previous instruction and outputs it to a BOOL variable.
OutNot: Takes the inverse of the logical result from the previous instruction and outputs it to a
BOOL variable.
Instruction Name FB/FUN Graphic expression ST expression
Out Output --- Variable:=(Logic expression
up to previous instruction);
OutNot Output NOT --- Variable:=NOT(Logic
expression up to previous
instruction);
Variables
Function
Logic processing result
from previous instruction
Output
TRUE TRUE
FALSE FALSE
Differentiation specification
Results of logic processing from the previous
execution and current execution
Output
Upward differentiation
FALSE at the last execution → Currently TRUE TRUE
Other than the above. FALSE
Downward differentiation
TRUE at the last execution → Currently FALSE TRUE
Other than the above. FALSE
Variable
Variable Variable
Upward
differentiation
Downward
differentiation
Variable