ISaGRAF. Version 3.4

         

POW


Àðãóìåíòû:

IN                         REAL                   ëþáàÿ çíàêîâàÿ àíàëîãîâàÿ âåëè÷èíà

EXP                      REAL                   ñòåïåíü

Q                          REAL                   (INexp)

                                                  1.0 åñëè IN íå 0.0 è EXP = 0.0

                                                  0.0 åñëè IN = 0.0 è EXP îòðèöàòåëüíî

                                                  0.0 åñëè IN = 0þ0 è EXP = 0.0

                                                  0.0 åñëè IN îòðèöàòåëüíî è EXP íå öåëîå

Îïèñàíèå:

Äàåò äåéñòâèòåëüíûé ðåçóëüòàò îïåðàöèè: (áàçà ýêñïîíåíòà) ‘áàçà’ - ïåðâûé àðãóìåíò, ýêñïîíåíòà - âòîðîé. Ýêñïîíåíòà - äåéñòâèòåëüíîå ÷èñëî.

(*FBD ïðèìåð áëîêà “POW”*)

(* ST Ýêâèâàëåíò: *)

result := POW (xval, power);

(* IL Ýêâèâàëåíò: *)

LD                     xval

POW                 power

ST                     result



Ñîäåðæàíèå  Íàçàä  Âïåðåä