5-15 Data Conversion; Bcd To Binary - Bin(23) - Omron SYSMAC C20P Operation Manual

Sysmac programmable controllers
Hide thumbs Also See for SYSMAC C20P:
Table of Contents

Advertisement

Data Conversion
5–15 Data Conversion
5–15–1 BCD to Binary – BIN(23)
Description
84
0000
1907
0200
1907
0201
1907
TIM 10
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
and between multiplexed and non-multiplexed 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 execu-
tion of any of the conversion instructions.
Ladder Symbol
BIN(23)
S
R
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.
Section 5–15
TIM 10
0500 s.
CMP(20)
TIM 10
#4000
Output at
0200
100 s.
CMP(20)
TIM 10
#3000
Output at
0201
200 s.
CMP(20)
TIM 10
#2000
Output at
0202
300 s.
Output at
0204
500 s.
Operand Data Areas
S : Source word (BCD)
IR, SR, DM, HR, TC
R : Result word
IR, DM, HR

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c28pSysmac c40pSysmac c60p

Table of Contents