ISaGRAF. Version 3.4

         

ASCII


Àðãóìåíòû:

IN                         MSG              ëþáàÿ íåïóñòàÿ ñòðîêà

Pos                     INT                 ïîçèöèÿ âûáðàííîãî ñèìâîëà

                                                  â äèàïàçîíå [1..len] (len - äëèíà ñîîáùåíèÿ IN)

Code                   INT                 êîä âûáðàííîãî ñèìâîëà

                                                  (â äèàïàçîíå [0..255])

                                                  âîçâðàùàåò 0 åñëè Pos âíå ñòðîêè

Îïèñàíèå:

Äàåò ASCII êîä ñèìâîëà â ñòðîêå.

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

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

FirstChr := ASCII (message, 1);

(* FirstChr - ýòî ASCII êîä ïåðâîãî ñèìâîëà ñòðîêè *)

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

LD                     message

ASCII                 1

ST                     FirstChr



Ñîäåðæàíèå ðàçäåëà