2 Instruction Descriptions
2-2
NJ-series Instructions Reference Manual (W502)
Using this Section
The notation used to describe instructions in this section is explained below.
The following items are provided.
Items
Item Description
Instruction The instruction word is given.
Example: MoveBit
Name The name of the instruction is given.
Example: Move Bit
FB/FUN Whether the instruction is a function block (FB) instruction or a function (FUN) instruction is given.
You can call FB instructions only from programs and function blocks.
You can call FUN instructions from programs, function blocks, and functions.
Graphic expression The figure that represents the instruction in a ladder diagram is given.
Example for a FUN Instruction Example for a FB Instruction
The instruction option, upward differentiation specification, and instance specification are
described below.
Instruction option:
Support for the instruction option is indicated by “(@)” before the FUN instruction. If support for
the instruction option is indicated, you can place “@” before the instruction word to specify
upward differentiation. Also, you can place “%” before the instruction word to specify downward
differentiation. An instruction for which upward differentiation is specified is executed when the
value of the EN input variable was FALSE in the previous task period and is TRUE in the current
task period. An instruction for which downward differentiation is specified is executed when the
value of the EN input variable was TRUE in the previous task period and is FALSE in the current
task period.
Upward differentiation specification:
This is indicated by the arrow pointing into the instruction at the entry point of the input variable.
Instructions with this specification operate as upwardly differentiated instructions.
Instance specification:
An instance of an instruction is indicated by “XX_instance” above an FB instruction. You must
assign an instance name to any instance of an instruction that you specify.
Instruction word
Instruction option
Input variable name
Output variable
name
In-out variable
name
(@)MoveBit
EN ENO
In
InPos
InOut
InOutPos
AryShiftReg
AryShiftReg_instance
Shift ENO
Reset
In
InOut
Size
Instance specification
Upward differentiation
specification