Conversion Instructions; Bin/Binl - Omron SYSMAC CP Series Instruction & Reference Manual

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

Conversion Instructions

BIN/BINL

Instruction
BCD TO BINARY
DOUBLE BCD TO DOUBLE
BINARY
Symbol
Applicable Program Areas
Area
Step program areas
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,R
OK
OK
OK
Flags
Name
Error Flag
Equals Flag
Negative Flag
CP1E CPU Unit Instructions Reference Manual(W483)
Mnemonic
Variations
BIN
@BIN
BINL
@BINL
BIN
BIN(023)
S
S: Source word
R: Result word
R
Description
AR
T
C
DM
OK
OK
OK
OK
Label
P_ER
• ON if the content of S is not BCD.
• OFF in all other cases.
P_EQ
• ON if the result is 0000.
• OFF in all other cases.
P_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
BINL
WORD
DWORD
UINT
UDINT
Indirect DM addresses
Constants
@DM
*DM
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
2 Instructions
Function
BINL
BINL(058)
S
S: First source word
R
R: First result word
Interrupt tasks
OK
Size
BIN
BINL
1
2
1
2
CF
Pulse bits
TR bits
---
---
---
BINL
2-185
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents