Up/Down - Omron SYSMAC CP Series Instruction & Reference Manual

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

UP/DOWN

Instruction
CONDITION ON
CONDITION OFF
Symbol
Applicable Program Areas
Area
Step program areas
Usage
OK
Flags
There are no flags affected by UP(521) and DOWN(522).
Function
UP
UP(521) is placed between an execution condition and another instruction to turn the execution condi-
tion into an up-differentiated condition. UP(521) causes the connecting instruction to be executed just
once when the execution condition goes from OFF to ON.
DOWN
DOWN(522) is placed between an execution condition and another instruction to turn the execution
condition into a down-differentiated condition. DOWN(522) causes the connecting instruction to be exe-
cuted just once when the execution condition goes from ON to OFF.
Precautions
• The operation of UP(521) and DOWN(522) depends on the execution condition for the instruction as
well as the execution condition for the program section when it is programmed in an interlocked pro-
gram section, a jumped program section, or a subroutine.
• The operation of UP(521) and DOWN(522) will not be consistent if the same subroutine is executed
more than once in the same cycle.
• An subroutine will not be executed while the input condition for the subroutine is OFF. Caution is thus
required when using UP(521) and DOWN(522) in a function block definition. For details, refer to infor-
mation on SBS(091).
Sample program
UP
0.00
CP1E CPU Unit Instructions Reference Manual(W483)
Mnemonic
Variations
UP
---
DOWN
---
UP
UP(521)
When CIO 0.00 goes from OFF to ON, CIO
100.01
100.01 is turned ON for just one cycle.
UP
0.00
100.01
Function
code
UP(521) turns ON the execution condition for the
521
next instruction for one cycle when the execution
condition it receives goes from OFF to ON.
DOWN(522) turns ON the execution condition for
522
the next instruction for one cycle when the execu-
tion condition it receives goes from ON to OFF.
Subroutines
OK
i
Cycle
time
2 Instructions
Function
DOWN
DOWN(522)
Interrupt tasks
OK
2-17
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents