EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #473 background imageLoading...
Page #473 background image
435
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Conversion Instructions
3
NUM4/NUM8/NUM16
NUM4/NUM8/NUM16
Applicable Program Areas
Operands
z Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
ASCII TO FOUR-DIGIT
NUMBER
NUM4 @NUM4 604
Converts 4 characters of ASCII data to
a 4-digit hexadecimal number.
ASCII TO EIGHT-DIGIT
NUMBER
NUM8 @NUM8 605
Converts 8 characters of ASCII data to
an 8-digit hexadecimal number.
ASCII TO SIXTEEN-DIGIT
NUMBER
NUM16 @NUM16 606
Converts 16 characters of ASCII data to
an 16-digit hexadecimal number.
Symbol
NUM4 NUM8 NUM16
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or transition
programs
Usage OK OK OK OK OK OK
Operand Description
Data type Size
NUM4 NUM8 NUM16 NUM4 NUM8 NUM16
S ASCII text WORD WORD WORD 2 4 8
D Number UINT UDINT ULINT 1 2 4
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
S
OK OK OK OK OK OK OK OK OK OK --- --- --- OK --- --- --- ---
D
Name Label Operation
Error Flag P_ER • ON if the source words contain any ASCII characters that are not hexadecimal equivalents (0 to 9, a
to f, or A to F).
• OFF in all other cases.
Equal Flag P_EQ • ON if the result is 0.
• OFF in all other cases.
Negative Flag P_N • ON when the leftmost bit of the source data is 1.
• OFF in all other cases.
S:
ASCII text
D:
Number
NUM4
S
D
S:
ASCII text
D:
Number
NUM8
S
D
S:
ASCII text
D:
Number
NUM16
S
D

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals