Mitsubishi Electric MELSEC-Q/L Programming Manual page 11

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Conversion from ASCII to hexadecimal BIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 574
Character string search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584
Insertion of character string . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586
Deletion of character string . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
Floating-point data to BCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 590
From BCD format data to floating-point data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 592
7.12
Special Function Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 594
SIN operation on floating-point data (single precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 594
SIN operation on floating-point data (double precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 596
COS operation on floating-point data (single precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 598
COS operation on floating-point data (double precision). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 600
TAN operation on floating-point data (single precision). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 602
TAN operation on floating-point data (double precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 604
Arc sine operation on floating-point data (single precision). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 606
Arc sine operation on floating-point data (double precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 608
Arc cosine operation on floating-point data (single precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 610
Arc cosine operation on floating-point data (double precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 612
Arc tangent operation on floating-point data (single precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 614
Arc tangent operation on floating-point data (double precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 616
Conversion from floating-point angle to radian (single precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 618
Conversion from floating-point angle to radian (double precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 620
Conversion from floating-point radian to angle (single precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 622
Conversion from floating-point radian to angle (double precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 624
Exponentiation operation on floating-point data (single precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 626
Exponentiation operation on floating-point data (double precision). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 628
Square root operation for floating-point data (single precision). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 630
Square root operation for floating-point data (double precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 632
Exponent operation on floating-point data (single precision). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 634
Exponent operation on floating-point data (double precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 636
Natural logarithm operation on floating-point data (single precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 638
Natural logarithm operation on floating-point data (double precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 640
Common logarithm operation on floating-point data (single precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 642
Common logarithm operation on floating-point data (double precision) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 644
Random number generation, series updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 646
BCD 4-digit square roots, BCD 8-digit square roots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647
BCD type SIN operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 650
BCD type COS operations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 652
BCD type TAN operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 654
BCD type arc sine operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 656
BCD type arc cosine operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 658
BCD type arc tangent operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 660
7.13
Data Control Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 662
BIN 16-bit dead band controls, BIN 32-bit dead band controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665
Zone control for BIN 16-bit data, zone control for BIN 32-bit data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 668
Scaling (coordinate data by point) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 670
Scaling (coordinate data by X and Y) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 674
7.14
File Register Switching Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 677
Switching file register block numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 677
9

Advertisement

Table of Contents
loading

Table of Contents