Omron CS1G/H-CPUxxH Instructions Manual page 451

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Conversion Instructions
Description
Flags
Example
3-12-2 DOUBLE BCD-TO-DOUBLE BINARY: BINL(058)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
430
Area
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
BIN(023) converts the BCD data in S to binary data and writes the result to R.
Name
Label
Error Flag
ER
Equals Flag
=
Negative Flag
N
The following diagram shows an example BCD-to-binary conversion.
×10
3
Converts 8-digit BCD data to 8-digit hexadecimal (32-bit binary) data.
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
OK
S
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
---
DR0 to DR15
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
(BCD)
R
Operation
ON if the content of S is not BCD.
OFF in all other cases.
ON if the result is 0000.
OFF in all other cases.
OFF
R
×10
×10
×10
×16
×16
2
1
0
3
BINL(058)
S: First source word
S
R: First result word
R
Step program areas
Subroutines
OK
Section 3-12
R
(BIN)
×16
×16
2
1
0
BINL(058)
@BINL(058)
Not supported
Interrupt tasks
OK

Advertisement

Table of Contents
loading

Table of Contents