Author Topic: FMD1616 IP Change Programatically  (Read 5142 times)

fish_boy12000

  • Newbie
  • Posts: 2
  • I'm a llama!
    • View Profile
FMD1616 IP Change Programatically
« on: October 31, 2011, 06:13:02 PM »
I have been trying to change the IP address using a set_ipaddr cusfn on the 1st program scan and also including a reboot command in the same cusfn. With an FRam installed, after the reboot, the address reverts back to original, but with out the FRam, all works as it should. Anything I can do to remedy this, or is this a normal operation?

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3171
    • View Profile
    • Internet Programmable PLCs
Re:FMD1616 IP Change Programatically
« Reply #1 on: November 01, 2011, 12:31:28 AM »
The problem is due to the REBOOT command executed right after the SET_IPADDR command. The PLC is rebooted before the IP address has a chance to be saved to the flash memory.

You can add a RESET command after the SET_IPADDR, which forces the PLC to save the new IP address to the CPU flash memory. After that you can execute the REBOOT command and the new IP address should stay.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

fish_boy12000

  • Newbie
  • Posts: 2
  • I'm a llama!
    • View Profile
Re:FMD1616 IP Change Programatically
« Reply #2 on: November 02, 2011, 12:24:25 PM »
Thanks, that did the trick. I tried reset and reboot independently and it did not work, didn't think of using both.