EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #198 background imageLoading...
Page #198 background image
3. Instructions
160
CS/CJ/NSJ Series Instructions Reference Manual (W474)
TR
Function
TR bits are used to temporarily retain the ON/OFF status of execution conditions in a program when
programming in mnemonic code. They are not used when programming directly in ladder program form
because the processing is automatically executed by the Peripheral Device. The following diagram
shows a simple application using two TR bits.
Instruction Mnemonic Variations
Function
code
Function
TR Bits TR --- ---
TR bits are used to temporarily retain the ON/OFF
status of execution conditions in a program when
programming in mnemonic code.
z Using TR0 to TR15
• TR0 to TR15 are used only with LOAD and
OUTPUT instructions.
• There are no restrictions on the order in
which the bit addresses are used.
• Sometimes it is possible to simplify a
program by rewriting it so that TR bits are
not required. The following diagram shows
one case in which a TR bit is unnecessary
and one in which a TR bit is required.
In instruction block (1), the ON/OFF status at
point A is the same as for output CIO 2.00, so
AND 0.01 and OUT 2.01 can be coded
without requiring a TR bit. In instruction block
(2), the status of the branching point and that
of output CIO 2.02 are not necessarily the
same, so a TR bit must be used. In this case,
the number of steps in the program could be
reduced by using instruction block (1) in place
of instruction block (2).
LD 0.00
OUT
Coding
TR0
AND 0.01
OUT TR1
AND 0.02
OUT 5.00
LD TR1
AND 0.03
OUT 5.01
LD TR0
AND 0.04
OUT 5.02
LD TR0
AND NOT
5.00
OUT 5.03
0.00
0.01
0.02
0.03
5.00
5.01
5.02
5.03
0.05
0.04
Relay Address
TR0 to TR15
Temporary Relay
Instruction Operands
(1)
(2)
0.00
0.02 0.03
0.01
2.00
2.01
2.02
2.03

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals