TimD

MrPLC Member
  • Content count

    7
  • Joined

  • Last visited

Posts posted by TimD


  1. I've made an example on a L61 cpu: if bTestbit and (dnMy_counter < 4) then dnMy_counter := dnMy_counter + 1; end_if; if not(bTestbit) and (dnMy_counter > 3) then dnMy_counter := 0; end_if; Every scan, the counter will increment if the bTestbit is high until it reaches the value of 4. If bTestbit is low and equals 4 (or more), then the counter will reset

  2. This is the code that links the setPage to the global variable. That global variable is linked to the page ChangeDataPoint. Open the 'visu' and check the properties. http://img136.imageshack.us/my.php?image=visuca7.jpg