![Omron CVM1D Скачать руководство пользователя страница 218](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532218.webp)
(106)
SIGN
D00500 D01000
0000
00
213
5-17-7 SIGN: SIGN(106)
(106)
SIGN
S
R
R: 1
st
result word
CIO, G, A, DM
S: Source word
CIO, G, A, T, C, #, DM, DR, IR
Operand Data Areas
Ladder Symbol
Variations
j
SIGN(106)
When the execution condition is OFF, SIGN(106) is not executed. When the
execution condition is ON, SIGN(106) copies the 4-digit signed binary source
word (S) to R, extracts the sign from bit 15 of S, and outputs the result to R+1. If
bit 15 of S is ON, $FFFF is output to R+1, and if bit 15 of S is OFF, $0000 is output
to R+1. Refer to 3-2 Data Area Structure for details on signed data.
In the following example, the content of S is 8000, so 8000 is transferred to R and
FFFF is transferred to R+1 because bit 15 of S is ON.
Source word (S)
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
The content of S is
transferred “as is” to R.
1
st
result word (R)
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
2
nd
result word (R+1)
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
If bit 15 of S is 1, FFFF is transferred to R+1.
If bit 15 of S is 0, 0000 is transferred to R+1.
Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
Content of
*
DM word is not BCD when set for BCD.
EQ (A50006):
Content of R and R+1 is 0 after execution
N (A50008):
Content of R+1 is FFFF after execution.
Example
When the CIO 000000 is ON in the following example, the 4-digit signed content
of D00500 is copied to D01000 and the sign from bit 15 of D00500 is output to bit
15 of D01001.
Address
Instruction
Operands
00000
LD
000000
00001
SIGN(106)
D00500
D01000
8
0
0
0
8
0
0
0
F
F
F
F
1
0
0
0
8
“1”
MSB
#FFFF
S: D00500
R: D01000
R+1: D01001
Description
Precautions
Conversion Instructions
Section 5-17
Содержание CVM1D
Страница 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Страница 463: ...iv...
Страница 465: ...vi...