Mitsubishi PLC floating point operation instructions

Publisher:脑力舞者Latest update time:2022-04-14 Source: eefocusKeywords:Mitsubishi Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Floating point operation instructions (FNC110-FNC1320) are used for floating point number processing. Floating point numbers are 32-bit numbers, including 13 instructions such as floating point comparison, transformation, four arithmetic operations, square root operations and trigonometric functions. All floating point processing instructions are 32-bit instructions. When used, the mnemonics of most instructions must be preceded by the 32-bit operation identifier "D". They are distributed in the instruction numbers FNC110~FNC119, FNC120~FNC129, FNC130~FNC139.

Binary floating point comparison instruction ECMP


(1) Binary floating point comparison instruction ECMP (FNC110) The use of the DECMP (P) instruction is shown in Figure 1. It compares two source operands and reflects the comparison result in the destination operand. If the operand is a constant, it is automatically converted into a binary floating point value for processing. The source operand of this instruction can be K, H and D, and the destination operand can be Y, M and S. It is a 32-bit operation instruction and occupies 17 program steps.

o4YBAGBZh5uAAOS-AACWC1xURgM033.png

Figure 1 Use of binary floating point comparison instructions

Binary floating point interval comparison instruction EZCP

(2) Binary floating point range comparison instruction EZCP (FNC111) The function of the EZCP (P) instruction is to compare the content of the source operand with the range of upper and lower points specified by the binary floating point value, and the corresponding result is reflected on the target operand with ON/OFF, as shown in Figure 2. This instruction is a 32-bit operation instruction and occupies 17 program steps. The source operand can be K, H and D; the target operand is Y, M and S. [S1.] should be less than [S2.], and when the operand is a constant, it will be automatically converted into a binary floating point value for processing.

pIYBAGBZh6WAeUmQAACAMPucd6s545.png

Figure 2 Use of binary floating point interval comparison instructions

Addition instruction E AD D

Subtraction instruction ESUB

Multiplication instruction EMVL

Division instruction EDIV

(3) Binary floating-point arithmetic instructions There are four floating-point arithmetic instructions: addition instruction EADD (FNC120), subtraction instruction ESUB (FNC121), multiplication instruction EMVL (FNC122) and division instruction EDIV (FNC123). The instructions for the four arithmetic instructions are shown in Figure 3. They all operate the floating-point numbers in the two source operands and send them to the target operand. When the divisor is 0, an operation error occurs and the instruction is not executed. This type of instruction only has 32-bit operations and occupies 13 program steps. The operation result affects the flags M8020 (zero flag), M8021 (borrow flag), and M8022 (carry flag). The source operand can be K, H, and D, and the target operand is D. If a constant is involved in the operation, it is automatically converted to a floating-point number.

o4YBAGBZh7KATSDfAADR0H4tPoU902.png

Figure 3 Use of binary floating point arithmetic instructions

Binary floating-point operations also include instructions such as square root and trigonometric function operations, which are not explained here one by one.


Keywords:Mitsubishi Reference address:Mitsubishi PLC floating point operation instructions

Previous article:Methods for PID controller parameter tuning
Next article:Judging the abnormality and treatment of Mitsubishi PLC through LED indicator

Recommended ReadingLatest update time:2024-11-16 11:53

Design and implementation of PLC flashing circuit counting stop
PLC flashing circuit counting stop Press the start button I0.1, relay M0.1 is turned on and self-locked M0.1 is turned on, its normally open point closes and turns on coil Q0.1, and starts timer DB1 When the counter DB1 reaches the set time, the timer output turns on rela
[Embedded]
Design and implementation of PLC flashing circuit counting stop
Detailed explanation of Siemens series PLC installation and wiring
This article introduces the detailed installation and wiring of Siemens PLC, including PLC models: Smart200, S7-300, S7-1200, S7-1500, etc. Siemens 200 module common PLC wiring diagram CPU SR20+EMDR32 Siemens S7-300 common module wiring diagram CPU315+PS307 (power module)+SM321 (DI mo
[Embedded]
Detailed explanation of Siemens series PLC installation and wiring
PLC project debugging signal interference case analysis
During the debugging of a PLC project, you may encounter all kinds of strange problems, signal interference is one of them, and it is difficult to find the cause of the problem. Today I will share two cases, hoping to help you. Example A 1. Description of the phenomenon: The AO point in the Sie
[Embedded]
PLC project debugging signal interference case analysis
TIA Portal PLC Example: A brief analysis of the example of indirect addressing
Program Example In the following example, three variables from different memory areas can be accessed using subscripts. Overview of the three variables assigned to the corresponding indices: Subscript Accessing variables Storage Area 1 Input_WORD_0
[Embedded]
TIA Portal PLC Example: A brief analysis of the example of indirect addressing
What are the PLC industrial control configuration software?
01 Configuration software: There are generally three English abbreviations: HMI/MMI/SCADA, which are the corresponding full names of Human and Machine Interface, Man and Machine Interface, Supervisory Control and Data Acquisition, and the Chinese translation is: human-machine interface, supervisory control and
[Embedded]
What are the PLC industrial control configuration software?
9 classic Siemens PLC introductory programming cases
01 Car reciprocating motion Use S7-200 to realize the automatic control of the trolley's reciprocating movement. The control process is to press the start button, and the trolley moves from the left to the right (right to the left). When it moves to the right (left) and touches the right (left) travel switch, t
[Embedded]
9 classic Siemens PLC introductory programming cases
Mitsubishi PLC data communication module
The communication module of PLC is used to complete the communication with other PLCs, other intelligent control devices or computers. The following briefly introduces the function expansion board, adapter and communication module of FX series communication. (1) Communication expansion board FX2N-232-BDFX
[Embedded]
ON Semiconductor Innovative Smart Meter Power Management and Robust PLC Solutions
    Today, when green energy is being vigorously advocated, I believe everyone is familiar with "smart meters". Smart meters play an important role in promoting sustainable development of resources. With the active deployment of governments of various countries, smart meters are rapidly replacing traditional meters.
[Industrial Control]
ON Semiconductor Innovative Smart Meter Power Management and Robust PLC Solutions
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号