![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030464.webp)
424
Increment/Decrement Instructions
Section 3-10
of the specified words is decremented only when the execution condition has
gone from OFF to ON.
The Equals Flag will be turned ON if the result is 0000 0000 and the Carry
Flag will be turned ON when a digit changes from 0 to 9.
Flags
Precautions
The content of Wd+1 and Wd must be BCD. If it is not BCD, an error will occur
and the Error Flag will be turned ON.
Examples
Operation of – –BL(597)
In the following example, the 8-digit BCD content of D00101 and D00100 will
be decremented by 1 every cycle as long as CIO 000000 is ON.
Operation of @– –BL(597)
The up-differentiated variation is used in the following example, so the BCD
content of D00101 and D00100 will be decremented by 1 only when
CIO 000000 has gone from OFF to ON.
Wd+1
Wd
Wd+1
Wd
Name
Label
Operation
Error Flag
ER
ON if the content of Wd+1 and Wd is not BCD.
OFF in all other cases.
Equals Flag
=
ON if the result is 0000 0000 after execution.
OFF in all other cases.
Carry Flag
CY
ON if a digit in Wd+1 or Wd went from 0 to 9 during exe-
cution.
OFF in all other cases.
D00100
D00101
D00100
D00101
Decrement Decrement Decrement Decrement
Wd:
Wd+1:
Wd:
Wd+1:
−
1
Decremented every cycle
while CIO 000000 is ON.
: Execution of
− −
BL(597)
@
− −
BL
−
1
D00100
D00101
D00100
D00101
Decrement
Decrement
Wd:
Wd+1:
Wd:
Wd+1:
: Execution of @
− −
BL(597)
Decremented only
for up-differentiation.
Содержание 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 ...