102
4
4 Instructions4.4.1 Four Arithmetic Operations
Table operations
WSUM Value summation
MEAN Mean value calculation
LIMIT Upper/Lower limit control
BZAND Dead zone control
ZONE Zone control
SCL Coordinate determination (coordinates of different points)
SCL2 Coordinate determination 2 (X and Y coordinates)
Exponent operations
EXP Binary oating-point exponent operation
LOGE Binary oating-point natural logarithm operation
LOG Binary oating-point logarithm operation with a base of 10
ESQR Binary oating-point square root operation
SQR Binary number square root operation
POW Floating-point weight instruction
4.4.1 Four Arithmetic Operations
Four arithmetic operations
ADD Binary number addition
SUB Binary number subtraction
MUL Binary number multiplication
DIV Binary number division
EADD Binary oating point addition
ESUB Binary oating point subtraction
EMUL Binary oating point multiplication
EDIV Binary oating point division
INC Binary number incremented by 1
DEC Binary number decremented by 1
ADD: Binary number addition
◆
Overview
The ADD instruction adds two binary numbers together.
ADD S1 S2 D
Binary number
addition
Applicable model:
H3U
S1
Augend
Data, or address of the word element that stores the data 16-bit instruction
(7 steps)
ADD: Continuous
execution
ADDP
:
Pulse
execution
32-bit instruction
(13 steps)
DADD: Continuous
execution
DADDP: Pulse
execution
S2
Addend
Data, or address of the word element that stores the data
D
Sum
Address of the word element that stores the data