HOAKKK (Customer) asked a question.

How to set memory retentive in Do-more Designer

I watched this video tutorial and saw that using C0 to store when stopping and running still retains the value before stopping

https://www.youtube.com/watch?v=B0yAS4XJItg&ab_channel=ACCAutomation

 

But when I write the program, C0 does not save the value when running

image.pngStop

imageWhen running again, C0 does not hold the value when turned on

image

PLC Memory Retentive Programming - Do-More Designer Tutorial

Master PLC memory retention! Stop losing output states during power failures. Finally understand retentive programming with Do-More Designer, step by step.

📖 FULL WRITTEN TUTORIAL + DOWNLOADS
https://accautomation.ca/programming/plc-beginners-guide/

⏱️ TIMESTAMPS
0:00 - Introduction to Memory Retention
0:20 - Testing Current Program Behavior
0:40 - Power Loss Simulation Demo
0:51 - Enter Edit Mode for Modifications
1:02 - Change Outputs to Memory Retentive
1:48 - Check Controller Documentation
2:00 - Insert New Rung for Real Output
2:44 - Download Program to PLC
2:47 - Test Memory Retention Function
3:13 - Power Cycle Test Results
3:23 - Programming Best Practices
3:40 - Wrap Up and Conclusion

📚 WHAT YOU'LL LEARN
✅ How to implement memory retentive outputs in Do-More Designer
✅ The difference between direct outputs and retentive memory locations
✅ How to test power failure scenarios using PLC simulator
✅ Best practices for ensuring proper system state recovery after power loss

🔗 MORE RESOURCES
▶ Series: https://accautomation.ca/series/brx-do-more-plc/
▶ PLC Beginners Guide: https://accautomation.ca/programming/plc-beginners-guide/
▶ Free eBooks: https://accautomation.ca (subscribe for download)

🛒 RECOMMENDED HARDWARE
▶ Training Kits: https://accautomation.ca/series/brx-do-more-plc/

💬 Questions? Drop a comment below.

🔔 New tutorials every Monday — Subscribe and hit the bell!

#PLC #HMI #IndustrialAutomation #LadderLogic #AutomationDirect #PLCProgramming #ACCAutomation

The entire playlist for learning PLC programming can be found at the following URL:
https://www.youtube.com/playlist?list=PL3y71jAPOdZB5LJMMotZP36LvzfdgkgzW

The following videos are available in this series:
Learn PLC Programming - Free

1 - Installing the Software
https://youtu.be/r5IY4P2hHqU
2 - Your First PLC Program
https://youtu.be/tdK7q8XrkBo
3 - Program Documentation
https://youtu.be/Eb9fhMXYago
4 - Start / Stop / Jog Circuit
https://youtu.be/K8DYWYSEHVQ
5 - Jog Circuit Memory Retentive
https://youtu.be/B0yAS4XJItg
6 - Understanding Decimal and Binary Numbering
https://youtu.be/qLT7DjXYy5k
7 - Binary Interpretation
https://youtu.be/v7HYH92xrAY
8 - The Secret of Timers
https://youtu.be/Bt6i8G8P0Fk
9 - The Secret of Counters
https://youtu.be/pyNNKRA_xK8

PLC Beginner's Guide to PLC Programming
https://accautomation.ca/programming/plc-beginners-guide/

Visit our Website for more PLC series.

Regards,
Garry
ACC Automation
https://www.accautomation.ca

https://www.youtube.com/watch?v=B0yAS4XJItg&ab_channel=ACCAutomation


HOAKKK likes this.
  • ADC TechnologyGroup_05 (AutomationDirect)

    The behavior you are describing is not related to rententive memory. By default, C0 through C2047 are set to RETENTIVE (this can be observed and modified in PLC > System Configuration > Memory Configuration). If you were to set element C1 to TRUE in a Data View while the Simulator were RUN mode and then transition from RUN to STOP to RUN again, you would see that C1 is still TRUE.

     

    The behavior you are seeing with C0 in your logic is related to Termination Scan Behavior. One of the many actions that will take place when a Program code-block terminates is ALL of the Output Coil (OUT) instructions will be turned OFF. See Help Topic DMD0232 in the Do-More Designer software help file for a brief overview of Termination Scan Behavior. For more information on Termination Behavior, see Help Topic DMD0192.

    Expand Post
    Selected as Best
  • Todd Dice (Customer)

    Do you have the simulator in "run" mode?

  • HOAKKK (Customer)

    I want to ask if my C0 doesn't save its state when running, is there something wrong with my settings?

     

    • Todd Dice (Customer)

      Yeah, I get the same result. Looking into Do-more Designer it shows C-bits as retentive. The simulator "maybe" broken.

  • ADC TechnologyGroup_05 (AutomationDirect)

    The behavior you are describing is not related to rententive memory. By default, C0 through C2047 are set to RETENTIVE (this can be observed and modified in PLC > System Configuration > Memory Configuration). If you were to set element C1 to TRUE in a Data View while the Simulator were RUN mode and then transition from RUN to STOP to RUN again, you would see that C1 is still TRUE.

     

    The behavior you are seeing with C0 in your logic is related to Termination Scan Behavior. One of the many actions that will take place when a Program code-block terminates is ALL of the Output Coil (OUT) instructions will be turned OFF. See Help Topic DMD0232 in the Do-More Designer software help file for a brief overview of Termination Scan Behavior. For more information on Termination Behavior, see Help Topic DMD0192.

    Expand Post
    Selected as Best
    • Todd Dice (Customer)

      What does not make any sense is in the video Garry posted, he shows the output retaining its last state, "on" after changing the CPU from run > stop > run. The simulator no longer does this. The question is, why?

      • Tinker (Customer)

        The video is 9 years old, I think there has been a major and several minor Do-more Technology Versions since then. If anyone still has ver.1.3 installed on something it might be interesting to check how it compares with the current 2.9

        The explanation:

        "The behavior you are seeing with C0 in your logic is related to Termination Scan Behavior. One of the many actions that will take place when a Program code-block terminates is ALL of the Output Coil (OUT) instructions will be turned OFF"

        Makes sense to me. Personally I'd use a SET for something I wanted retained after a power cycle.

        Expand Post
      • RBPLC (Customer)

        As shown in the video, I don't think that behavior is what should be expected. Version 2.8.3 firmware included changes to termination logic which could be the difference between the video and the current observed behavior. Logically, I think the current operation is correct and the video I would find to be not correct. This issue stems from the termination behavior. As Tinker said, expecting C0 to remain on with the seal in circuit (with the understanding that OUT is terminated) is probably not the way this type of intended behavior should be programmed.

        Expand Post
      • HOAKKK (Customer)

        So does anyone know what variable can be replaced to make memory retentive?

         

  • HOAKKK (Customer)

    So does anyone know what variable can be replaced to make memory retentive?

10 of 16