ANA
Àðãóìåíòû:
IN ANY ëþáàÿ íåöåëàÿ àíàëîãîâàÿ âåëè÷èíà
Q INT 0 if IN = FALSE / 1 if IN = TRUE
÷èñëî ìèëëèñåêóíä äëÿ òàéìåðà
öåëàÿ ÷àñòü äåéñòâèòåëüíîãî
àíàëîãîâîãî
äåñÿòè÷íîå ÷èñëî ïðåäñòàâëåííîå
ñòðîêîé
Îïèñàíèå:
Ïðåâðàùàåò ïåðåìåííóþ â öåëóþ.
(*FBD ïðèìåð áëîêîâ ANALOG*)
(* ST ýêâèâàëåíò: *)
bres := ANA (true); (* bres ðàâíî 1 *)
tres := ANA (t#1s46ms); (* tres ðàâíî 1046 *)
mres := ANA ('0198'); (* mres ðàâíî 198 *)
(* IL ýêâèâàëåíò: *)
LD true
ANA
ST bres
LD t#1s46ms
ANA
ST tres
LD '0198'
ANA
ST mres