Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 582

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Conversion Instructions
Description
Restrictions
Flags
542
Area
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
NUM4(604) converts the 4 characters of ASCII data in S and S+1 to numeri-
cal data (4-digit hexadecimal) and writes the result to D.
The Error Flag will be turned ON if the ASCII data in S and S+1 contains any
characters that are not hexadecimal digits. In this case, the instruction will not
be executed.
15
S
31
33
S+1
ASCII
Hexadecimal
15
12
D
1
Note If the numerical data is 0, the Equals Flag will turn ON.
If the leftmost bit of the numerical data is 1, the Negative Flag will turn ON.
The following restrictions apply to NUM4(604).
■ Restrictions on the CPU Unit
NUM4(604) can be used in CPU Units with unit version 4.0 or later only.
■ Restrictions on the CX-Programmer
NUM4(604) can be used in CX-Programmer version 7 or higher only.
Name
Error Flag
ER
Equals Flag
=
Negative Flag
N
S
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
---
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
8
7
0
32
34
11
8
7
4
3
0
2
3
4
Label
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.
ON if the result is 0.
OFF in all other cases.
ON when the leftmost bit of the source data is 1.
OFF in all other cases.
Section 3-12
D
---
---
Operation

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents