A-1-3 Sequence Control Instructions - Omron CJ2 - 02-2010 User Manual

Cj2 cpu unit software
Table of Contents

Advertisement

Appendices
Instruction
Mnemonic
MULTIPLE BIT
RSTA
531
RESET
@RSTA
SINGLE BIT
SETB
532
SET
@SETB
!SETB
!@SETB
SINGLE BIT
RSTB
533
RESET
@RSTB
!RSTB
!@RSTB
SINGLE BIT
OUTB
534
OUTPUT
@OUTB
!OUTB
A-1-3
Sequence Control Instructions
Instruction
Mnemonic
END
END
001
NO OPERA-
NOP
000
TION
A-6
Code
Symbol/Operand
RSTA(531)
D
N1
N2
D: Beginning word
N1: Beginning bit
N2: Number of bits
SETB(532)
D
N
D: Word address
N: Bit number
RSTB(533)
D
N
D: Word address
N: Bit number
OUTB(534)
D
N
D: Word address
N: Bit number
Code
Symbol/Operand
END(001)
---
Function
RSTA(531) turns OFF the specified number of consecutive bits.
SETB(532) turns ON the specified bit in the specified
word when the execution condition is ON.
Unlike the SET instruction, SETB(532) can be used to
set a bit in a DM or EM word.
RSTB(533) turns OFF the specified bit in the specified
word when the execution condition is ON.
Unlike the RSET instruction, RSTB(533) can be used to
reset a bit in a DM or EM word.
OUTB(534) outputs the result (execution condition) of
the logical processing to the specified bit.
Unlike the OUT instruction, OUTB(534) can be used to
control a bit in a DM or EM word.
Function
Indicates the end of a program.
END(001) completes the execution of a program for
that cycle. No instructions written after END(001)
will be executed. Execution proceeds to the
program with the next task number. When the
program being executed has the highest task
number in the program, END(001) marks the end of
the overall main program.
Task 1
Program A
Task 2
Program B
Task n
Program Z
I/O refreshing
This instruction has no function. (No processing is per-
formed for NOP(000).)
Location
Output
Required
N2 bits are
reset to 0
(OFF).
SINGLE
SETB
BIT SET
Output
Required
Output
Required
Location
Output
Not
required
To the next task
number
To the next task
number
End of the main
program
Output
Not
required
CJ2 CPU Unit Software User's Manual
Execution
condition
Execution
condition

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents