Conversion Instructions; Bin/Binl - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

3. Instructions

Conversion Instructions

BIN/BINL

Instruction
BCD TO BINARY
DOUBLE BCD TO DOUBLE
BINARY
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
BIN: Source word
S
BINL: First source word
BIN: Results word
R
BINL: First result word
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
BIN
OK
OK
OK
R
S
BINL
OK
OK
OK
R
Flags
Name
Error Flag
Equals Flag
Negative Flag
380
Mnemonic
Variations
BIN
@BIN
BINL
@BINL
BIN
BIN(023)
S: Source word
S
R: Result word
R
Block program areas
Step program areas
OK
OK
Description
Indirect DM/EM
@DM
AR
T
C
DM
EM
@EM
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
Label
ER
• 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.
N
OFF
Function
code
023
Converts BCD data to binary data.
Converts 8-digit BCD data to 8-digit hexadecimal
058
(32-bit binary) data.
Subroutines
OK
Data type
BIN
WORD
DWORD
UINT
Registers
addresses
Con-
stants
*DM
DR
*EM
OK
---
OK
OK
---
---
Operation
BIN
• ON if the contents of S+1, S are not BCD.
• OFF in all other cases.
• ON if the result is 0.
• OFF in all other cases.
OFF
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
BINL
BINL(058)
S: First source word
S
R: First result word
R
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
BINL
BIN
1
UDINT
1
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
---
---
OK
---
---
---
BINL
BINL
2
2
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents