![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268218.webp)
179
Sequence Input Instructions
Section 3-3
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 00200, so AND 000001 and OUT 000201 can be coded without requiring
a TR bit. In instruction block (2), the status of the branching point and that of
output CIO 000202 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).
TR0 to TR15
Considerations
TR bits are used only for retaining (OUT TR0 to TR15) and restoring (LD TR0
to TR15) the ON/OFF status of branching points in programs with many out-
put branches. They are thus different from general bits, and cannot be used
with AND or OR instructions, or with instructions that include NOT.
000000 LD
000000
000001 OUT
TR0
000002 AND
000001
000003 OUT
TR1
000004 AND
000002
000005 OUT
000500
000006 LD
TR1
000007 AND
000003
000008 OUT
000501
000009 LD
TR0
000010 AND
000004
000011 OUT
000502
000012 LD
TR0
000013 AND NOT
000005
000014 OUT
000503
Instruction Operands
Address
(1)
(2)
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...