SHARE
TWEET

Sortownica_Sterowanie

pabloducato Dec 1st, 2018 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PROGRAM licznikiST
  2. VAR_EXTERNAL
  3.     S3: BOOL;
  4.     clr_count:BOOL;
  5.     pom:BOOL;
  6.     lbi:REAL;
  7.     lcz:REAL;
  8.     BS:BOOL;
  9.     req:BOOL;
  10.     vpos:REAL;
  11. END_VAR
  12.  
  13. VAR
  14.     LBI:CTUD;
  15.     LCZ:CTUD;
  16.     VIS_MONO:MONO_F;
  17.     IN_LBI:BOOL;
  18.     IN_LCZ:BOOL;
  19.     TC_V:TIME;
  20. END_VAR
  21.  
  22. IN_LBI:=S3 AND pom;
  23. IN_LCZ:=NOT S3 AND pom;
  24. LBI(INU:=IN_LBI, RES:=clr_count, CTC=>lbi);
  25. LCZ(INU:=IN_LCZ, RES:=clr_count, CTC=>lcz);
  26.  
  27. VIS_MONO(IN:=BS, OUT=>req, TC=>TC_V);
  28. vpos:=TO_RE(TO_DI(TC_V));
  29.  
  30. END_PROGRAM
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top