RemcoK Member R Join Date Feb 2005 Location Brasil Posts 2 Feb 16, 2005 #1 Does anybody know how too read the scantime from a Siemens S7. I need too make an very fast timer and want too read the scantime for this. I Mitsubishi it's very easy, but I don't know where I can find this in Siemens S7. Tanks Remco
Does anybody know how too read the scantime from a Siemens S7. I need too make an very fast timer and want too read the scantime for this. I Mitsubishi it's very easy, but I don't know where I can find this in Siemens S7. Tanks Remco
JesperMP Lifetime Supporting Member + Moderator Join Date Feb 2003 Location ᚴᚬᛒᛅᚾᚼᚬᚠᚾ Posts 16,338 Feb 16, 2005 #2 Simple. In OB1, load the local data #OB1_PREV_CYCLE and transfer it to an address for further processing (Merkerword or Dataword as an INT). The value is the cycle time in milliseconds.
Simple. In OB1, load the local data #OB1_PREV_CYCLE and transfer it to an address for further processing (Merkerword or Dataword as an INT). The value is the cycle time in milliseconds.
RemcoK Member OP R Join Date Feb 2005 Location Brasil Posts 2 Feb 16, 2005 #3 Sometimes the answers are simple. It saved me a lot off time looking. Thx. Remco
USDutchman Member U Join Date Feb 2005 Posts 26 Feb 16, 2005 #4 Scan time alternative For creating youre own timer, you could also use SFC 64. It is like a rolling counter (0-2147483647 then start again at 0) that counts in mili seconds.
Scan time alternative For creating youre own timer, you could also use SFC 64. It is like a rolling counter (0-2147483647 then start again at 0) that counts in mili seconds.