Applicable Program Areas: Instruction Mnemonic Variations Function Code Function
Applicable Program Areas: Instruction Mnemonic Variations Function Code Function
+ +/+ +L
Function
Instruction Mnemonic Variations Function
code
Increments the 4-digit hexadecimal content of
INCREMENT BINARY + + @+ + 590
the specified word by 1.
DOUBLE INCREMENT Increments the 8-digit hexadecimal content of
BINARY + +L @+ +L 591
the specified words by 1.
+ + + +L
Symbol
Operands
Data type Size
Operand Description
++ ++L ++ ++L
++: Word
Wd UINT UDINT 1 2
++L: First word
Operand Specifications
Indirect DM/EM
Word addresses Registers Flags
addresses Con- Pulse TR
Area
@DM *DM stants Indirect bits bits
CIO WR HR AR T C DM EM DR IR TK CF
@EM *EM using IR
+ + Wd OK ---
OK OK OK OK OK OK OK OK OK OK --- OK --- --- --- ---
+ +L Wd --- OK
Flags
Name Label Operation
Error Flag ER OFF
• ON if the result is 0000/0000 0000 after execution.
Equals Flag =
• OFF in all other cases.
• ON if a digit in Wd/Wd+1 or Wd went from F to 0 during execution.
Carry Flag CY
• OFF in all other cases.
• ON if bit 15 of Wd/Wd+1 is ON after execution.
Negative Flag N
• OFF in all other cases.
Function
+ +
The + +(590) instruction adds 1 to the binary content
of Wd. The specified word will be incremented by 1
every cycle as long as the execution condition of + +
(590) is ON. When the up-differentiated variation of this
instruction (@+ +(590)) is used, the specified word is
incremented only when the execution condition has
gone from OFF to ON.
+ +L
The + +L(591) instruction adds 1 to the 8-digit
hexadecimal content of Wd+1 and Wd. The content of
the specified words will be incremented by 1 every
mk:@MSITStore:C:\Program%20Files%20(x86)\OMRON\CX-One\CX-Programmer\PLC... 5/7/2018
+ +/+ +L Page 2 of 3
Sample program
Operation of + +(590)/+ +L(591)
In the following example, the content of D100 will be incremented by 1 every cycle as long as CIO
0.00 is ON.
In the following example, the content of D100 will be incremented by 1 every cycle as long as CIO
0.00 is ON.
The up-differentiated variation is used in the following example, so the content of D101 and D100 will
be incremented by 1 only when CIO 0.00 has gone from OFF to ON.
Availability:
mk:@MSITStore:C:\Program%20Files%20(x86)\OMRON\CX-One\CX-Programmer\PLC... 5/7/2018
+ +/+ +L Page 3 of 3
Supported PLCs
mk:@MSITStore:C:\Program%20Files%20(x86)\OMRON\CX-One\CX-Programmer\PLC... 5/7/2018