chelton

MrPLC Member
  • Content count

    277
  • Joined

  • Last visited

Everything posted by chelton

  1. what does this formula do ?

    I would assume IO_Rmc_Data is an index for a 10 element array of Data. The forrmula is creating a repeating 0-9 output. So if when IO_Rmc_Data = 9 , the next time the CPT is executed (IO_Rmc_Data+1) MOD 10, would equate to 10 MOD 10 which = 0
  2. How would you interpret this CPT

    Using your example JSR(_Fx,2,21,MstrDmd,lbdPosGas) Subrutine _Fx is called with input parameter 21 and MstDmd and returns lbdPosGas. In the Subroutine, Rung 1 will evaluate to 21-1 AND 7 = 4 Rung 4 will then be evaluated because FxNo is between 17-24 so the COP will copy 32 elements from  FX17_24[4,0,0] to FxX0  ...... That's as much as I can explain without knowing the value of MstDmd.    
  3. How would you interpret this CPT

    All the CPT instruction is doing is making the range of FxTblStart from 0-7 from an input FxNo from 1 - 48  
  4. How would you interpret this CPT

    what else is writing to FxTblStart?   How can FxNo-1 AND 7 = 1?    
  5. RsLogix 5 execution times

    You would still need to loop through the entire array to calculate the standard deviation each time the average changes. @Criticore how often are you needing to update these values?
  6. RsLogix 5 execution times

    I would look at using a FAL instruction for your calculations and setting the mode to the number of iterations you want to perform each scan. If for example you set the mode to 50 your calculations could be completed by the 6th scan.
  7. I hope you didn't get the same surprise I got arriving on site unable to fire up your VM. It was fun trying to get cellular reception to download the update lol.
  8. Just a warning for anyone using a mac for their VM's . VMware fusion version 11.5 is not supported by the latest OSX "Big Sur" If you update your OS  you will get no warnings and you will find that fusion no longer works, you will need to upgrade fusion too. 
  9. I agree, thanks for posting the outcome. Out of curiosity did you find if the db module was doing anything?
  10. @spark man even though there is nothing in RAM your program could still be on the ROM. Here's a sample output of "Call 81". It tells me there is 1 program in ROM.   You can then change the console to look at the program by typing ROM 1 then list the program stored. Hope this helps.
  11. From command mode enter "call 81" This will tell you if there are any valid programs stored in the eeprom
  12. I'll rephrase what I said. Judging by the response you receive from db module it appears the memory is corrupt, and therefore not operating. This does not mean the module does nothing, but that something in the plc program may not be functioning correctly, because the db module is not running its program.
  13. You can use the ROM and RAM commands to load the program from the chip. Read the manual first though. 
  14. Definately looks like the db module program is corrupt. Why not disable the btr/btw to the db module and see if there is any effect on the machine. Judging by the output I'm guessing it's doing nothing.
  15. Control C will break the operation and stop the program, entering command mode. You can continue from where is stopped by typing "cont" or let it start from the beginning by typing "run"
  16. If the BAS module is doing something there should be some BTR and BTW to from the unit. Are you in command mode?  Press control C to exit run mode and enter command mode. You should be seeing a > prompt. Even though there a no cable connected to the front connectors, back in the day I would use a DB module as a Maths-Coprocessor on legacy PLC5's My terminal settings were just 1200k /8N1 
  17. Hi Joe, No problem with using putty on windows 10 running on vmware fusion. with a usb-serial convertor.    
  18. Hi Joe, I haven't but i will today and post the results, I have had older software that can't use a serial convertor that must use a physical port, but for using a terminal emulator I haven't run into any issues. 
  19. You don't need an older computer if you have a usb - serial converter, also PuTTy" is a great terminal emulator. 
  20. Forum problems

    File uploads are working again...
  21. Forum problems

    Is anyone actually working on fixing the forum? It's been terrible for weeks now, I can't post links without wrapping in code /code or attach images. I have this error at the top of the page  [[Template core/front/global/updateWarning is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]] Just asking 
  22. DWord to Data Types

    Just move the array[0..31] of bool from your union to your structure that has the comments array[0..31] of bool MyStruct.bArray := MyUnion.bArray  
  23. Omron NJ501 - IFM IO-Link - Wenglor U1KT001

    No problem.
  24. Omron NJ501 - IFM IO-Link - Wenglor U1KT001

    Hi Andrei, Are you sure your not supposed to be using Tx_PDO_InputByte 0 & 1? Your link is showing input byte 1&2 Byte 1 will contain the digital status like you have shown, but I think the MSB byte should be byte 0  
  25. Forum problems

    Bump... File uploads is the only major problem now ( desktop view anyway )