Conversion Instructions - Omron SYSMAC CS/CJ Series Programming Manual

Table of Contents

Advertisement

Conversion Instructions

Instruction
Symbol/Operand
Mnemonic
Code
BCD DIVIDE
/B(434)
/B
@/B
434
Dd: Dividend
word
Dr: Divisor word
R: Result word
DOUBLE BCD
/BL(435)
DIVIDE
/BL
@/BL
435
Dd: 1st dividend
word
Dr: 1st divisor
word
R: 1st result word
3-10 Conversion Instructions
Instruction
Symbol/Operand
Mnemonic
Code
BCD-TO-BINARY
BIN(023)
BIN
@BIN
023
S: Source word
R: Result word
DOUBLE BCD-
BINL(058)
TO-DOUBLE
BINARY
BINL
@BINL
058
S: 1st source
word
R: 1st result word
BINARY-TO-BCD
BCD(024)
BCD
@BCD
024
S: Source word
R: Result word
DOUBLE
BCDL(059)
BINARY-TO-
DOUBLE BCD
BCDL
@BCDL
059
S: 1st source
word
R: 1st result word
Divides 4-digit (single-word) BCD data and/or constants.
Dd
Dr
R
R +1
Remainder
Divides 8-digit (double-word) BCD data and/or constants.
Dd
Dr
÷
R
R + 3
Remainder
Converts BCD data to binary data.
S
(BCD)
R
Converts 8-digit BCD data to 8-digit hexadecimal (32-bit binary) data.
S
R
Converts a word of binary data to a word of BCD data.
S
(BIN)
R
Converts 8-digit hexadecimal (32-bit binary) data to 8-digit BCD data.
S
R
Function
Dd
(BCD)
÷
(BCD)
Dr
R
(BCD)
Quotient
Dd + 1
Dd
Dr + 1
Dr
R + 2
R + 1
R
Quotient
Function
R
(BIN)
(BCD)
(BIN)
R
(BCD)
(BIN)
R+1
R
(BCD)
(BIN)
(BCD)
R
(BIN)
R+1
(BCD)
Section 3-10
Location
Execution
condition
Output
Required
Output
Required
(BCD)
(BCD)
(BCD)
Location
Execution
condition
Output
Required
Output
Required
Output
Required
Output
Required
99

Advertisement

Table of Contents
loading

Table of Contents