Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Mathimatics-Numerical algorithms Data structs
Title: STIME Download
  • Category:
  • Data structs
  • Tags:
  • File Size:
  • 1kb
  • Update:
  • 2012-11-26
  • Downloads:
  • 0 Times
  • Uploaded by:
  • ziyohoo
 Description: this FB is only necessary for siemens sps the siemens sps timer counts from 0 to 2^31-1 and starts at 0 sfter overrun. this means that the bit 31 (the highest bit ) will never be used and therefore a problem arises when t2- t1 is checked. t2- t1 is always valid also in an timer overrun situation where the time t1 is very high and t2 is very low. the result of the subtraction t2- t1 however is still valid. this calculation does not work for soiemens because the highest bit is not used. this module stores the highest bit, changes the highest bit at every overrun occurence and stuffs ther highest bit in the output. the output is then used by t_plc_us and t_plc_ms. the correction needs and fb and not a function because the value of the highest bit has to be stored. do never use this function block in a codesys environment. the timer in codesys is correct and runs from 0 to 2^32-1
 Downloaders recently: [More information of uploader ziyohoo]
 To Search:
File list (Check if you may need any files):
STIME.SCL
    

CodeBus www.codebus.net