View Single Post
Old August 6th, 2022, 08:34 PM   #10
drbitboy
Lifetime Supporting Member
United States

drbitboy is offline
 
drbitboy's Avatar
 
Join Date: Dec 2019
Location: Rochester, NY
Posts: 5,588
Glad to help.


P.S. Siemens does not have a FIFO instruction, so you will have to roll your own. Easiest way is to leave the bits in place (Array[0..2047] of Bool) and shift the position of the Entrance Prox to the left (equivalent of IndexOfEntranceProx := (IndexOfEntranceProx + 2047) & 16#7FF.
__________________
_
Brian T. Carcich
i) Take care of the bits, and the bytes will take care of themselves.
ii) There is no software problem that cannot be solved with another layer of indirection.
iii) Measurement is hard.
iv) I solemnly swear that I am up to no good
  Reply With Quote