Mitsubishi Electric MELSEC iQ-F Series Training Manual page 92

Fx5u
Hide thumbs Also See for MELSEC iQ-F Series:
Table of Contents

Advertisement

5
BASIC INSTRUCTIONS -PART 2-
5.1
Notation of Values (Data)
• This section describes decimal, binary, and hexadecimal notations.
• This section describes a method of interconversion.
The programmable controller CPU converts all information into on or off signals (logical 1 or 0) to store and process them.
Thus, the programmable controller executes numerical operations using the numerical values stored as logical 1 or 0 (binary
numbers = BIN).
In daily life, decimal values are commonly used. Thus, the decimal-to-binary conversion or the binary-to-decimal conversion
are required when values are read (monitored) or written from/to the programmable controller. The engineering tool and some
instructions have the functions for those conversions.
This section describes how values (data) are expressed in decimal, binary, hexadecimal or binary-coded decimal notation
(BCD), and how to convert values.
Decimal
• A decimal value consists of ten symbols, 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9, which represent the order and size (amount).
After a digit reaches 9, an increment resets it to 0, causing an increment of the next digit to the left.
• The following shows how a decimal value (in this case 153) is represented.
153 = 100 + 50 + 3
"Power of digit" can be expressed as follows.
: Digit number (0, 1, 2 ...)
n
10: Decimal value
• In the MELSEC iQ-R series programmable controller, the symbol "K" is used to represent a value in decimal.
= 1 × 100 + 5 × 10 + 3 × 1
= 1 × 10
+ 5 × 10
+ 3 × 10
2
1
0
Decimal symbol (0 to 9)
"Power of digit"
5 BASIC INSTRUCTIONS -PART 2-
5.1 Notation of Values (Data)
5
5 - 1

Advertisement

Table of Contents
loading

Table of Contents