ISaGRAF. Version 3.4


3069e04e

CHAR





CHAR

Àðãóìåíòû:

Code                   INT                 êîä â äèàïàçîíå [0..255]

Q                          MSG              ñòðîêà èç îäíîãî ñèìâîëà

                                                  ñèìâîë èìååò ASCII êîä çàäàííûé íà âõîäå

                                                  (èñïîëüçóåòñÿ ASCII êîä ïî ìîäóëþ 256)

Îïèñàíèå:

                            Äàåò ñòðîêó èç îäíîãî ñèìâîëà ñ çàäàííûì ASCII êîäîì.

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

CHAR

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

Display := CHAR ( value + 48 );

(* çíà÷åíèå â äèàïàçîíå [0..9] *)

(* 48 - ýòî ascii êîä '0' *)

(* result - ñòðîêà èç îäíîãî ñèìâîëà îò '0' äî '9' *)

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

LD                     value

ADD                  48

CHAR

ST                     Display



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