Data Conversion; Bcd-To-Binary - Bin(23); Double Bcd-To-Double Binary - Binl(58) - Omron SYSMAC C2000H Operation Manual

Hide thumbs Also See for SYSMAC C2000H:
Table of Contents

Advertisement

Data Conversion

5-16

Data Conversion

5-16-1
BCD-TO-BINARY – BIN(23)
Description
Flags
5-16-2
DOUBLE BCD-TO-DOUBLE BINARY – BINL(58)
148
The conversion instructions convert word data that is in one format into an-
other format and output the converted data to specified result word(s). Con-
versions are available to convert between binary (hexadecimal) and BCD, to
7-segment display data, to ASCII, and between multiplexed and non-multi-
plexed data. All of these instructions change only the content of the words to
which converted data is being moved, i.e., the content of source words is the
same before and after execution of any of the conversion instructions.
Ladder Symbols
BIN(23)
@BIN(23)
S
R
When the execution condition is OFF, BIN(23) is not executed . When the
execution condition is ON, BIN(23) converts the BCD content of S into the
numerically equivalent binary bits, and outputs the binary value to R. Only
the content of R is changed; the content of S is left unchanged.
BCD
Binary
BIN(23) can be used to convert BCD to binary so that displays on the Pro-
gramming Console or any other programming device will appear in hexadeci-
mal rather than decimal. It can also be used to convert to binary to perform
binary arithmetic operations rather than BCD arithmetic operations, e.g.,
when BCD and binary values must be added.
ER:
The content of S is not BCD.
Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
EQ:
ON when 0 is placed in R.
Ladder Symbols
BINL(58)
@BINL(58)
S
R
Operand Data Areas
IR, SR, AR, DM, HR, TC, LR
S
R
S
R
Operand Data Areas
S: First source word (BCD)
IR, SR, AR, DM, HR, TC, LR
S
R
Section 5-16
S: Source word (BCD)
R: Result word
IR, AR, DM, HR, LR
R: First result word
IR, AR, DM, HR, LR

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c1000h

Table of Contents