chelton

MrPLC Member
  • Content count

    379
  • Joined

  • Last visited

Everything posted by chelton

  1. Have a look at the CopyRealToDword and CopyDwordToReal functions. You may need to do a byte swap, depending on the byte order Modbus is communicating. 
  2. 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 
  3. 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. 
  4. NX 120 volt digital inputs

    You could use an ethercat bus coupler from the likes of beckhoff and use I/O from their range. Then you could still utilize the NX102
  5. 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
  6. 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.    
  7. 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  
  8. How would you interpret this CPT

    what else is writing to FxTblStart?   How can FxNo-1 AND 7 = 1?    
  9. 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?
  10. 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.
  11. 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.
  12. I agree, thanks for posting the outcome. Out of curiosity did you find if the db module was doing anything?
  13. @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.
  14. From command mode enter "call 81" This will tell you if there are any valid programs stored in the eeprom
  15. 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.
  16. You can use the ROM and RAM commands to load the program from the chip. Read the manual first though. 
  17. 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.
  18. 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"
  19. 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 
  20. Hi Joe, No problem with using putty on windows 10 running on vmware fusion. with a usb-serial convertor.    
  21. 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. 
  22. You don't need an older computer if you have a usb - serial converter, also PuTTy" is a great terminal emulator. 
  23. Forum problems

    File uploads are working again...
  24. 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  
  25. Omron NJ501 - IFM IO-Link - Wenglor U1KT001

    No problem.