Author Topic: DM Manipulating  (Read 11343 times)

bongofury

  • Newbie
  • *
  • Posts: 10
  • I'm a llama!
    • View Profile
DM Manipulating
« on: May 14, 2009, 05:42:46 PM »
 ::)  Hi All, we have successful bi-directional comm. with the f2424 via Modbus RTU.  However when I change a value in DM[n] it holds for one scan and then reverts back to the original value.  I see the value change on the LCD and in the monitor mode.  I would like to use DM's as set point placements for PID control.  Wrong application of DM's?

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:DM Manipulating
« Reply #1 on: May 14, 2009, 09:49:18 PM »
You can use MODBUS RTU to change DM data, but if your program will write back an original value after every scan then what you see is only good for 1 scan!

Please check your program to make sure that it is not writing back to the same DM. To verify this you can pause the PLC and then make changes to the DM, then observe it using online monitoring. The data should be changed to what you have assigned it and stays there. If the moment the PLC exits the PAUSE mode and the data change back then you know that your program is responsible for this behavior.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

bongofury

  • Newbie
  • *
  • Posts: 10
  • I'm a llama!
    • View Profile
Re:DM Manipulating
« Reply #2 on: May 17, 2009, 11:41:25 AM »
Support, you were right, it was something in my program.  I simplified the program to a single input firing the {dCusf} with DM[1]=[n].  Worked perfect.  Good call........Dave :)