Double 2'S Complement: Negl(105) - Omron SYSMAC CV Series Operation Manual

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Conversion Instructions

5-17-6 DOUBLE 2'S COMPLEMENT: NEGL(105)

Ladder Symbol
(105)
NEGL
Variations
j NEGL(105)
Description
Precautions
Flags
Example
0000
00
224
Operand Data Areas
S: 1
S
R
R: 1
When the execution condition is OFF, NEGL(105) is not executed. When the
execution condition is ON, NEGL(105) converts the 8-digit hexadecimal content
of the source words (S and S+1) to its 2's complement and outputs the result to
the result words (R and R+1). This operation is effectively the same as subtract-
ing the 8-digit content S and S+1 from $0000 0000 and outputting the result to R
and R+1.
Refer to page 115 for general precautions on operand data areas.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
EQ (A50006):
Content of S and S+1 is 0 (the content of R and R+1 will also
be 0 after execution)
N (A50008):
Shows the status of bit 15 of R+1 after execution.
When CIO 000000 is ON in the following example, the 8-digit hexadecimal con-
tent of CIO 0000 and CIO 0001 is converted to its 2's complement equivalent
and stored in D01100 and D01101.
(105)
NEGL
0800 D01100
0
0
0
0
0
S+1: CIO 0801
F
F
F
F
F
7
6
5
4
x10
x10
x10
x10
x10
R+1: D01101
0
0
0
0
0
st
source word CIO, G, A, T, C, #, DM
st
result word
CIO, G, A, DM
0
0
0
#00000000
S: CIO 0800
F
F
F
3
2
1
0
x10
x10
x10
R: D00100
0
0
1
Section 5-17
Address Instruction
Operands
00000
LD
000000
00001
NEGL(105)
D01100
0800

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents