EasyManua.ls Logo

Inovance H3U Series - Page 118

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...
117
4
4 Instructions 4.4.2 Logical Operations
Application
WXOR D 20
S1 .
D 22 D 24
S2 . D .
0 10110100 0 1 0 0 0 1 1
0 11110010 1 0 1 0 0 1 0
0 01000110 1 1 1 0 0 0 1
D20
D22
D24
Logical XOR
M20
NEG: Binary number negation
Overview
When driving conditions are met, the NEG instruction inverts the bit pattern of D, adds 1 to the bit pattern,
and then writes the result to D.
NEG D
Binary number
negation
Applicable model:
H3U
D
Operation
result
Address of the word element that stores the operation
result
16-bit instruction
(3 steps)
NEC: Continuous
execution
NECP: Pulse
execution
32-bit instruction
(5 steps)
DNEC:
Continuous
execution
DNECP: 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
The NEG instruction requires contact driving and has one operand. It inverts the bit pattern of D, adds 1 to
the bit pattern, and then writes the result to D.
The pulse execution type is generally used.
This gets the absolute value of a negative BIN number.

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals