EasyManua.ls Logo

Inovance H3U Series - Page 114

Inovance H3U Series
737 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
Loading...
113
4
4 Instructions 4.4.1 Four Arithmetic Operations
DEC: Binary number decremented by 1
Overview
The DEC instruction decrements a binary number by 1.
DEC D
Binary number
decremented by 1
Applicable model:
H3U
D ive result
Address of the word element that stores the regressive
result
16-bit instruction
(3 steps)
DEC: Continuous
execution
DECP: Pulse
execution
32-bit instruction
(5 steps)
DDEC:
Continuous
execution
DDECP: Pulse
execution
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
Function
On every execution of the DEC instruction, D has its current value decremented by a value of 1.
In 16-bit operation, 32,767 is reached after –32,768 is decremented by a value of 1. In 32-bit operation,
2,147,483,647 is reached after –2,147,483,648 is decremented by a value of 1.
This instruction does not refresh the zero ag, carry ag, and borrow ag.
In 32-bit operation, the D variable address in this instruction contains the lower 16 bits, and the adjacent
high-numbered address unit contains the higher 16 bits. Avoid repeated or overlapping addresses during
programming.
Example:
M5
ǒDECP D10Ǔ
The value in D10 is decremented
by 1 each time M5 is set.

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals