Symbol Math Instructions - Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Symbol Math Instructions

0.01
@
3-10 Symbol Math Instructions
336
Operation of @– –BL(597)
The up-differentiated variation is used in the following example, so the BCD
content of D2001 and D2000 will be decremented by 1 only when CIO 0.01
has gone from OFF to ON.
BL
Wd+1:
D2000
CIO 0.01
This section describes the Symbol Math Instructions, which perform arith-
metic operations on BCD or binary data.
Instruction
SIGNED BINARY ADD WITH-
OUT CARRY
DOUBLE SIGNED BINARY
ADD WITHOUT CARRY
SIGNED BINARY ADD WITH
CARRY
DOUBLE SIGNED BINARY
ADD WITH CARRY
BCD ADD WITHOUT CARRY
DOUBLE BCD ADD WITHOUT
CARRY
BCD ADD WITH CARRY
DOUBLE BCD ADD WITH
CARRY
SIGNED BINARY SUBTRACT
WITHOUT CARRY
DOUBLE SIGNED BINARY
SUBTRACT WITHOUT CARRY
SIGNED BINARY SUBTRACT
WITH CARRY
DOUBLE SIGNED BINARY
SUBTRACT WITH CARRY
BCD SUBTRACT WITHOUT
CARRY
DOUBLE BCD SUBTRACT
WITHOUT CARRY
BCD SUBTRACT WITH
CARRY
DOUBLE BCD SUBTRACT
WITH CARRY
SIGNED BINARY MULTIPLY
Decremented only
for up-differentiation.
D2001
Wd:
D2000
1
: Execution of @
Decrement
Mnemonic
+
+L
+C
+CL
+B
+BL
+BC
+BCL
–L
–C
–CL
–B
–BL
–BC
–BCL
*
Section 3-10
Wd+1:
D2001
Wd:
D2000
BL(597)
Decrement
Function code
400
337
401
339
402
341
403
343
404
345
405
346
406
348
407
349
410
351
411
353
412
357
413
359
414
361
415
363
416
366
417
367
420
369
Page

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents