EasyManuals Logo

Omron NJ501-1500 User Manual

Omron NJ501-1500
990 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 #267 background imageLoading...
Page #267 background image
2-219
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
BCD Conversion Instructions
2
BCD_TO_**
The following table shows the valid ranges for In and Out according to their data types.
• To convert a specific BCD bit string to an integer, use a **_BCD_TO_*** instruction (page 2-212).
• To convert an integer to a BCD bit string, use a **_TO_BCD_*** instruction (page 2-215).
• Always use the correct instruction name for the data type of Out.
• If the data size of Out is larger than the data size of In, the upper digits of Out will contain 0.
• An error occurs in the following cases. ENO will be FALSE, and Out will not change.
Data type
of In
Data type
of Out
Valid range for In Valid range for Out
BYTE
USINT
16#00 to 16#99 (BCD) 0 to 99
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
WORD
USINT 16#0000 to 16#0255 (BCD) 0 to 255
UINT
16#0000 to 16#9999 (BCD) 0 to 9999UDINT
ULINT
SINT 16#0000 to 16#0127 (BCD) 0 to 127
INT
16#0000 to 16#9999 (BCD) 0 to 9999DINT
LINT
DWORD
USINT 16#0000_0000 to 16#0000_0255 (BCD) 0 to 255
UINT 16#0000_0000 to 16#0006_5535 (BCD) 0 to 65535
UDINT
16#0000_0000 to 16#9999_9999 (BCD) 0 to 99999999
ULINT
SINT 16#0000_0000 to 16#0000_0127 (BCD) 0 to 127
INT 16#0000_0000 to 16#0003_2767 (BCD) 0 to 32767
DINT
16#0000_0000 to 16#9999_9999 (BCD) 0 to 99999999
LINT
LWORD
USINT 16#0000_0000_0000_0000 to
16#0000_0000_0000_0255 (BCD)
0 to 255
UINT 16#0000_0000_0000_0000 to
16#0000_0000_0006_5535 (BCD)
0 to 65535
UDINT 16#0000_0000_0000_0000 to
16#0000_0042_9496_7295 (BCD)
0 to 4294967295
ULINT 16#0000_0000_0000_0000 to
16#9999_9999_9999_9999 (BCD)
0 to 9999999999999999
SINT 16#0000_0000_0000_0000 to
16#0000_0000_0000_0127 (BCD)
0 to 127
INT 16#0000_0000_0000_0000 to
16#0000_0000_0003_2767 (BCD)
0 to 32767
DINT 16#0000_0000_0000_0000 to
16#0000_0021_4748_3647 (BCD)
0 to 2147483647
LINT 16#0000_0000_0000_0000 to
16#9999_9999_9999_9999 (BCD)
0 to 9999999999999999
Additional Information
Precautions for Correct Use

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals