![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030097.webp)
57
Instruction Functions
Section 2-2
BINARY TO BCD
BCD
@BCD
024
Output
Required
487
DOUBLE
BINARY TO DOU-
BLE BCD
BCDL
@BCDL
059
Output
Required
489
2’S COMPLE-
MENT
NEG
@NEG
160
Output
Required
491
DOUBLE 2’S
COMPLEMENT
NEGL
@NEGL
161
Output
Required
493
16-BIT TO 32-BIT
SIGNED BINARY
SIGN
@SIGN
600
Output
Required
494
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
Page
BCD(024)
S
R
S
: Source word
R
: Result word
(BCD)
(BIN)
R
Converts a word of binary data to a word of BCD data.
BCDL(059)
S
R
S
: 1st source
word
R
: 1st result word
(BIN)
(BCD)
(BIN)
(BCD)
R
R+1
Converts 8-digit hexadecimal (32-bit binary) data to 8-digit BCD data.
NEG(160)
S
R
S
: Source word
R
: Result word
(S)
(R)
Calculates the 2's complement of a word of hexadecimal data.
2's complement
(Comp 1)
NEGL(161)
S
R
S
: 1st source
word
R
: 1st result word
(S+1, S)
(R+1, R)
Calculates the 2's complement of two words of hexadecimal data.
2's complement
(Comp 1)
SIGN(600)
S
R
S
: Source word
R
: 1st result word
D+1
D
S
MSB
MSB = 1:
FFFF Hex
MSB = 0:
0000 Hex
D = Contents of S
Expands a 16-bit signed binary value to its 32-bit equivalent.
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...