lostcontrol

MrPLC Member
  • Content count

    504
  • Joined

  • Last visited

Everything posted by lostcontrol

  1. DWord to Data Types

    Union is the way to go.! whilst it an extra step/tag perhaps, it does give a lot of options
  2. TCP SOCKET NEEDS TO CLOSE and REOPEN FOR EACH MESSAGE

    I have done both, simple change on the block type only 
  3. TCP SOCKET NEEDS TO CLOSE and REOPEN FOR EACH MESSAGE

    The intent of TCP is to keep the connection open, so you should not need to close it unless there is an error with the connection. What do you mean 'dusty' ? Is that the command you have sent? Are you sending the correct data, including start/end/byte count?  
  4. Ethernet Reset

    that was it!!!!    
  5. Ethernet Reset

    Hello, Anyone know of a way to reset a NX102 ethernet port programatically, using CIP commands perhaps? There is a button within Sysmac that does what I need, but want to implement that via code.      
  6. Ethernet Reset

    YES!! Doh, the reason I did not try this as port #1 on this NX was dodgy from memory 
  7. Ethernet Reset

    ahh, so I just copied the same code to a NJ101 that I have & get the desired result. (kicked off) I have a counter on '_EIP_EtnOnlineSta', that is incrementing each reset. The only difference from the NX102 is the path NX102: '01#01\02\192.168.251.1' NJ101: '02\192.168.17.179'
  8. Ethernet Reset

    to  port #1? Have you tried port #2?
  9. Ethernet Reset

    Have just tried that, but get error '1C01'   Still cant upload images :(
  10. Ethernet Reset

    Howdy Bob, I think there is similarities between the 2, but the EIP CIP requires a bit more? Or maybe just the omron implementation of each & every byte vs a simplified user GUI like AB requires a bit more thought?  
  11. Ethernet Reset

    Thanks Chris, I have seen that section, but as raw CIP is very new to be am still working it all out. Under Tools/EthernetIP Connection Settings/DeviceList, there is the ability to restart the selected port ( 1 or 2 for NX102) (perhaps I should of said restart instead of reset..)   When doing the restart, I did managed to capture the commands on wireshark but I also cannot upload the image/file. Am trying to decipher that to see if it is something that can easily be replicated..
  12. NS Screens Using The Buzzer

      is that set in the hardware config on the unit?
  13. NS Screens Using The Buzzer

    I tested in simulation mode, had $SB13 & CIO700.13 side by side as animations. Both animated when the other was changed. I do have an NS in the office, but wont be back there until friday to test actual. As another test, you could try backlight status as well..? if the screen goes to sleep, you should see 700.11 change when you touch it & vice versa
  14. NS Screens Using The Buzzer

    Hi Bob, Did you get this working as expected, or want me to send a screen shot?
  15. 2 x CJ2M-CPU31 and Ethernet IP

    Bob, Have you considered a separate network switch that is powered only when required, for the module in question? That would allow the duplicates to be set, but only 1x be active on the network at the same time?
  16. NS Screens Using The Buzzer

    if you link the system area, you should be able to write to the corresponding area from PLC. ie: CIO1200.13 => $SB13
  17. Does the function block have to be st? you could achieve the same thing easily is ladder using ir method.   can send example if need be 
  18. Automatic update NS screen time/date from PLC

    Hi Bob, Sorry for late reply, but attached is a basic example of the NS & PLC config. You will need to change symbols etc to suit address's that will not conflict with what you may already have in use. The macro for syncing the clock is under the project settings, when the bit is set in the PLC, the macro executes. Somewhere, I have some methods for syncing in either direction manually, but have not been able to find them just yet.. This is easy & is done at a global level, so only needs to be done once. It takes advantage of the functions that are available.. I sometimes find that a lot of the 'in-built' features aren't exactly what I require, there is often too much in them which just makes it not as easy...PLC-NS ClockSync.zip
  19. Update Screen Time And Date From PLC

    I think both options will need to be done via a macro, to ensure they sync correctly. I have done this with the NS & am sure the NB but trying to find an example. You should be able to add a text field that writes to the system clock.  LW10000 = Sec, LW10001 = Min, LW10002 = Hr, LW10003 = Day, LW10004 = Month, LW10005 = year   Will see if I can find some examples
  20. Sorry about that, I thought it might be ok considering you knew what you wanted to achieve.  Your code looks different to what you were originally trying to achieve?
  21. Help with IR loop dilemma

    No.   How are you incrementing IR8? 
  22. Help with IR loop dilemma

    Are you wanting bit reference, or word reference?  In your example, what actual address are you wanting to reference based on your condition? Do you want D20000.xx (bit offset), or D2000x where x is 0-9 (word offset)?  
  23. Help with IR loop dilemma

    can you post what you have done? This is dependent on how the IR is loaded. If you MOVR W100.00 IR0, it will load the index as bits. So +8,IR0 will look at W100.07 If you MOVR W100 IR0, it will load as word, then +8,IR0 will reference W107   Have you looked at my example in this post, it may answer your questions.? http://forums.mrplc.com/index.php?/topic/38647-nested-loop-increment-word-address-and-not-the-contents/
  24. Windows 10 and CX-Programmer

    Tools/Change Input Mode ..
  25. Windows 10 and CX-Programmer

    That is a default setting for input type, think it ‘smart mode’ or similar    I think 🤔