![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030224.webp)
184
Sequence Input Instructions
Section 3-3
Description
LD TST(350), AND TST(350), and OR TST(350) can be used in the program
like LD, AND, and OR; the execution condition is ON when the specified bit in
the specified word is ON and OFF when the bit is OFF. Unlike LD, AND, and
OR, bits in the DM and EM areas can be used as operands in TST(350).
LD TSTN(351), AND TSTN(351), and OR TSTN(351) can be used in the pro-
gram like LD NOT, AND NOT, and OR NOT; the execution condition is OFF
when the specified bit in the specified word is ON and ON when the bit is OFF.
Unlike LD NOT, AND NOT, and OR NOT, bits in the DM and EM areas can be
used as operands in TSTN(351).
Flags
Note In CS1 and CJ1 CPU Units, these are turned OFF.
In CS1-H, CJ1-H, CJ1M, and CS1D CPU Units, these Flags are left
unchanged.
Precautions
TST(350) and TSTN(351) are intermediate instructions, i.e., they cannot be
used as right-hand instructions. Be sure to program a right-hand instruction
after TST(350) or TSTN(351).
Examples
LD TST(350) and LD TSTN(351)
In the following example, CIO 000001 is turned ON when bit 3 of D00010 is
ON.
In the following example, CIO 000001 is turned ON when bit 3 of D00010 is
OFF.
AND TST(350) and AND TSTN(351)
In the following example, CIO 000001 is turned ON when CIO 000000 and bit
3 of D00010 are both ON.
Index Registers
---
Indirect addressing using
Index Registers
,IR0 to ,IR15
–2048 to +2047 , IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area
S
N
Name
Label
Operation
Error Flag
ER
OFF or unchanged (See note.)
Equals Flag
=
OFF or unchanged (See note.)
Negative Flag
N
OFF or unchanged (See note.)
&3
&3
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...