rbaggett

MrPLC Member
  • Content count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About rbaggett

  • Rank
    Hi, I am New!

Profile Information

  • Country United States
  1. Thanks everyone. all indexes are now 32 bit. I will watch out for funny behavior. For what it's worth, Here is how I made my RNG. It gives me 128 timer setpoints randomly distributed between 1000 and 1500 mS. The subtract is for a compare that makes a 50 mS pulse from the timer's count. Handy for testing. It could be easily made to give other ranges.
  2. BTW, I have been considering building an RNG for Logix, (Good for testing add-on instructions..) I haven't had time, but I could use it now and your sig mentions generating random numbers... Anything you can share?
  3. The NEQ will cause a fall through to the next rung when idx2 reaches 7. idx will have 16 added 8 times for total of 128, but the last iteration is irrelevant because the loop will fall through and.... I just answered my own question! The NEQ compare value should be 8. The 8th iteration is never happening. THANKS!
  4. I am making an Add-on instruction, containing the rungs in the attached picture. It works, it puts the bits where I thing they should go, until reelBits[98]. after that point nothing seems to be copied. CrData is I/O to the add-on, and is an array of 8 INTs reelBits is an internal array of 128 BOOLs idx variables are all internal INTs Any ideas?