Download Print this page

Table Of Contents - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

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

Advertisement

Calculating The Sine Of Single-Precision Real Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 515
Calculating The Cosine Of Single-Precision Real Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 517
Calculating The Tangent Of Single-Precision Real Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519
Calculating The Arc Sine Of Single-Precision Real Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 521
Calculating The Arc Cosine Of Single-Precision Real Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 523
Calculating The Arc Tangent Of Single-Precision Real Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 525
Converting Single-Precision Real Number Angle To Radian . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 527
Converting Single-Precision Real Number Radian To Angle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 529
Calculating The Square Root Of Single-Precision Real Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 531
Calculating The Exponent Of Single-Precision Real Number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 533
Calculating The Natural Logarithm Of Single-Precision Real Number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 535
Calculating The Exponentiation Of Single-Precision Real Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 537
Calculating The Common Logarithm Of Single-Precision Real Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 539
Searching The Maximum Value Of Single-Precision Real Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 541
Searching The Minimum Value Of Single-Precision Real Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 543
8.10
Random Number Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 545
Generating random number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 545
8.11
Index Register Operation Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 546
Saving all data of the index register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 546
Returning All Data Of The Index Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 548
Saving The Selected Data Of The Index Register And Long Index Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 549
Returning The Selected Data Of The Index Register And Long Index Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 551
8.12
Data Control Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 552
Upper and lower limit control of 16-bit binary data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 552
Upper And Lower Limit Control Of 32-Bit Binary Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554
Dead Band Control Of 16-Bit Binary Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556
Dead Band Control Of 32-Bit Binary Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 558
Zone Control Of 16-Bit Binary Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 560
Zone Control Of 32-Bit Binary Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 562
Scaling 16-Bit Binary Data (Point Coordinates) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 564
Scaling 32-Bit Binary Data (Point Coordinates) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 567
Scaling 16-Bit Binary Data (Xy Coordinates) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 570
Scaling 32-Bit Binary Data (Xy Coordinates) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 573
8.13
Special Timer Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 576
Teaching timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 576
Special Function Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 578
8.14
Special Counter Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 580
Signed 32-bit bi-directional counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 580
8.15
Shortcut Control Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 582
Rotary table shortest direction control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 582
8.16
Ramp Signal Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585
Ramp signal. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585
8.17
Pulse Related Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
Measuring the density of 16 bit binary pulses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
Measuring The Density Of 32 Bit Binary Pulses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 592
16 bit binary pulse output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 596
32 bit binary pulse output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 604
16 bit binary pulse width modulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 612
32 bit binary pulse width modulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 618
8.18
Input Matrix Instruction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 624
Input matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 624
8

Hide quick links:

Advertisement

loading