Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 13

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

Advertisement

Calculating the arc cosine of BCD data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 803
Calculating the arc tangent of BCD data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 805
Converting single-precision real number angle to radian . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 807
Converting single-precision real number radian to angle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 809
Converting double-precision real number angle to radian. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 811
Converting double-precision real number radian to angle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 813
Calculating the square root of single-precision real number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 815
Calculating the square root of double-precision real number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 817
Calculating the exponent of single-precision real number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 819
Calculating the exponent of double-precision real number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 821
Calculating the natural logarithm of single-precision real number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 823
Calculating the natural logarithm of double-precision real number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 825
Calculating the square root of BCD 4-digit data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 827
Calculating the square root of BCD 8-digit data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 829
Calculating the exponentiation of single-precision real number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 831
Calculating the exponentiation of double-precision real number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 833
Calculating the common logarithm of single-precision real number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 835
Calculating the common logarithm of double-precision real number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 837
Searching the maximum value of single-precision real number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 839
Searching the maximum value of double-precision real number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 841
Searching the minimum value of single-precision real number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 843
Searching the minimum value of double-precision real number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 845
7.10
Random Number Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 847
Generating random number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 847
Changing random sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 848
7.11
Index Register Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 849
Saving all data of the index register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 849
Returning all data of the index register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 851
Saving the selected data of the index register and long index register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 852
Returning the selected data of the index register and long index register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 855
7.12
Data Control Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 857
Upper and lower limit control of 16-bit binary data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 857
Upper and lower limit control of 32-bit binary data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 859
Dead band control of 16-bit binary data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 861
Dead band control of 32-bit binary data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 863
Zone control of 16-bit binary data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 865
Zone control of 32-bit binary data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 867
Scaling 16-bit binary data (point coordinates) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 869
Scaling 32-bit binary data (point coordinates) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 872
Scaling 16-bit binary data (XY coordinates) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 875
Scaling 32-bit binary data (XY coordinates) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 877
7.13
Special Counter Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 879
Counting up or down the current value (1-phase input) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 879
Counting up or down the current value (2-phase input) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 881
7.14
Special Timer Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 883
Teaching timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 883
Special function timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 885
7.15
Shortcut Control Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 888
Rotary table shortest direction control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 888
7.16
Ramp Signal Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 891
Ramp signal. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 891
11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents