Conversion Instructions - Omron SYSMAC CS Series Programming Manual

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

Conversion Instructions

Instruction
Symbol/Operand
Mnemonic
Code
DOUBLE
/UL(433)
UNSIGNED
BINARY DIVIDE
/UL
@/UL
433
Dd: 1st dividend
word
Dr: 1st divisor
word
R: 1st result word
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
Divides 8-digit (double-word) unsigned hexadecimal data and/or
constants.
Dd
Dr
÷
R
R + 3
Remainder
Divides 4-digit (single-word) BCD data and/or constants.
Dd
Dr
R
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
Function
Dd + 1
Dd
Dr + 1
Dr
R + 2
R + 1
R
Quotient
Dd
÷
Dr
R +1
R
Quotient
Dd + 1
Dr + 1
R + 2
R + 1
Quotient
Function
R
(BIN)
(BCD)
R
(BCD)
R+1
Section 3-10
(Unsigned binary)
(Unsigned binary)
(Unsigned binary)
(BCD)
(BCD)
(BCD)
Dd
(BCD)
Dr
(BCD)
R
(BCD)
(BIN)
(BIN)
Location
Execution
condition
Output
Required
Output
Required
Output
Required
Location
Execution
condition
Output
Required
Output
Required
93

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1g/h-cpu-ev1 seriesCj1g-cpu seriesSysmac cj series

Table of Contents