Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 72

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Real number instruction
■Comparing single-precision real numbers
Instruction symbol
LDE=, ANDE=, ORE=
LDE<>, ANDE<>, ORE<>
LDE>, ANDE>, ORE>
LDE<=, ANDE<=, ORE<=
LDE<, ANDE<, ORE<
LDE>=, ANDE>=, ORE>
DECMP
DECMPP
DEZCP
DEZCPP
■Adding/subtracting single-precision real numbers
Instruction symbol
E+
E+P
E+
E+P
DEADD
DEADDP
E-
E-P
E-
E-P
DESUB
DESUBP
■Multiplying/dividing single-precision real numbers
Instruction symbol
E*
E*P
DEMUL
DEMULP
E/
E/P
DEDIV
DEDIVP
■Converting 16-bit/32-bit signed binary data to single-precision real number
Instruction symbol
INT2FLT
INT2FLTP
DINT2FLT
DINT2FLTP
3 CPU MODULE INSTRUCTION
70
3.3 Application Instruction
Description
[(s1)+1, (s1)] = [(s2)+1, (s2)]: Conductive
[(s1)+1, (s1)]  [(s2)+1, (s2)]: Non-Conductive
[(s1)+1, (s1)]  [(s2)+1, (s2)]: Conductive
[(s1)+1, (s1)] = [(s2)+1, (s2)]: Non-Conductive
[(s1)+1, (s1)] > [(s2)+1, (s2)]: Conductive
[(s1)+1, (s1)]  [(s2)+1, (s2)]: Non-Conductive
[(s1)+1, (s1)]  [(s2)+1, (s2)]: Conductive
[(s1)+1, (s1)] > [(s2)+1, (s2)]: Non-Conductive
[(s1)+1, (s1)] < [(s2)+1, (s2)]: Conductive
[(s1)+1, (s1)]  [(s2)+1, (s2)]: Non-Conductive
[(s1)+1, (s1)]  [(s2)+1, (s2)]: Conductive
[(s1)+1, (s1)] < [(s2)+1, (s2)]: Non-Conductive
This instruction compares two data values (single-precision real numbers), and outputs the result
(larger, smaller or equal) to three bit devices.
This instruction compares two data values (single-precision real numbers), and outputs the result
(larger, smaller or data band) to three bit devices.
Description
• In case of 2 operands
[(d)+1, (d)] + [(s)+1, (s)]  [(d)+1, (d)]
• In case of 3 operands
[(s1)+1, (s1)] + [(s2)+1, (s2)]  [(d)+1, (d)]
• In case of 2 operands
[(d)+1, (d)] - [(s)+1, (s)]  [(d)+1, (d)]
• In case of 3 operands
[(s1)+1, (s1)] - [(s2)+1, (s2)]  [(d)+1, (d)]
Description
[(s1)+1, (s1)]  [(s2)+1, (s2)]  [(d)+1, (d)]
[(s1)+1, (s1)]  [(s2)+1, (s2)]  quotient [(d)+1, (d)]
Description
Converts the 16-bit signed binary data in the device specified by (s) to single-precision real
number, and stores the converted data in the device specified by (d).
Converts the 32-bit signed binary data in the device specified by (s) to single-precision real
number, and stores the converted data in the device specified by (d).
Reference
Page 476
Page 478
Page 480
Reference
Page 482
Page 484
Page 490
Page 486
Page 488
Page 492
Reference
Page 494
Page 498
Page 496
Page 500
Reference
Page 502
Page 504

Hide quick links:

Advertisement

loading