Troubleshooting Timer Issue in Ladder Diagram for Data Transmission using 1 PB Switch

Question:

Hello, I need assistance with troubleshooting a ladder diagram for transmitting data at intervals using a 1 pb switch. Despite my efforts, the timer in the ladder diagram is not progressing to the next state as expected, and only the first set of data is being transmitted repeatedly. I would greatly appreciate any insights on where I may be going wrong or suggestions for alternative solutions. Thank you in advance.

Top Replies

It has been a while since I worked with Omron, but based on my understanding, you can send data when input 0.03 is activated (onshot), which then sets a value in D10 after Timer 1. This value is used for comparison and triggers the second transmission. Timer 2 resets the process before starting over. I recommend using the timer 1 contact to enable the second logic, which should achieve the same outcome. You may want to remove timer 1 from the first transmit function to avoid overlap. Additionally, the extra moves may not be necessary.

I noticed that you attempted something similar in a previous post using one timer, but I suggest trying to use two timers as I mentioned earlier. This may require some additional time for transmitting data. Are you familiar with any user bits or registers that indicate when a transmission is complete? In Mitsubishi systems, there are standard variables available to verify if operations have finished. Additionally, when you trigger a send, are you confirming that data is actually being sent?

I prefer using a single timer instead of cascading multiple timers. What if we set the TXD instruction to require only a one-shot pulse (one scan cycle of its input rung being True)? Additionally, I have discovered that the MOVs should be replaced with a transfer of 3 words (6 bytes) to DXX, which should be a simple fix. There is currently no second delay after the first timer expires, but if necessary, it can easily be added.

If the timers function similarly to malfunctioning IEC timers in TIA portal, such as |-| T001 yielding True or |/| T001 yielding False within one scan cycle before the TIM instruction is assessed in that same cycle, then the T001 output value must be transferred to a separate bit unrelated to the timer. Otherwise, the second trigger may fail to occur, potentially explaining the original code's lack of functionality.

I recommend thoroughly reading through this manual on the Omron CP2E model, which can be found at https://assets.omron.eu/downloads/manual/en/v1/cp2e_instructions_reference_manual_en.pdf. Make sure to include the A392.05 "Send ready flag" on the TXD line. Additionally, I noticed that there is a #100 in the control - is this intended?

Hello, it sounds like the timing function might not be properly tied to the transmission of your data. You might want to evaluate the interaction between your timer and switch to determine whether the timer resets correctly after the first set of data is transmitted. There's also a possibility that the timer could be looping over your first dataset, in which case, you'll need to adjust it to proceed to the next state/data. Finally, ensure your switch trigger is correctly referenced in your ladder logic. If you've already checked these aspects, sharing your specific ladder logic might help us better troubleshoot the issue.

Hi there. It sounds like your timer might not be resetting properly, causing it to loop back and transmit the first set data over and over. Double check your program to ensure that the timer resets after a full cycle. Also, if possible, check if the 1 pb switch is correctly wired and functioning as intended - it could also be a potential source of the problem. A more advanced alternative could be to use a PLC with built-in data management and interval capabilities. This could provide more reliable and customizable behavior. Let us know how it goes!

I suspect you might be having issues with the timer reset logic. Typically, after a timer times out, it needs to be reset before it can time again. If the timer isn't reset properly, it may not advance to the next state. If that's not the issue, there might be a problem with how you're indexing the data array, a common issue when only one set of data is being sent repeatedly. Consider reviewing these parts of your ladder diagram. Additionally, you could try using a counter instead of a timer to space out the data transmission intervals.

You might want to check if there's a reset condition included in your ladder diagram, that kicks off towards the end of the timer cycle. Without the reset, the timer could continue to revert back to the first state causing only the initial set of data to be transmitted over and over. That aside, I would suggest you to ensure the data you're working with is structured in a way that each subsequent set of data is queued up following the successful transmission of the previous set.

More Replies →

Streamline Your Asset Management
See How Oxmaint Works!!

✅   Work Order Management

✅   Asset Tracking

✅   Preventive Maintenance

✅   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

To add a comment, please sign in or register if you haven't already..   

Frequently Asked Questions (FAQ)

FAQ: FAQs:

Answer: 1. Why is the timer in my ladder diagram not progressing to the next state as expected? - The timer issue could be due to incorrect timer settings or improper logic in the ladder diagram. Check the timer parameters and ensure they are set up correctly.

FAQ: 2. How can I troubleshoot the problem of only the first set of data being transmitted repeatedly in my ladder diagram?

Answer: - To address this issue, review the ladder diagram logic to ensure there are proper conditions for advancing to the next state after data transmission. Also, check for any looping conditions that may be causing repetition.

FAQ: 3. Are there any specific considerations when working with a 1 PB switch for data transmission in ladder diagrams?

Answer: - When using a 1 PB switch for data transmission, ensure that the ladder diagram logic accounts for the switch's capabilities and any specific requirements it may have for transferring data at intervals.

FAQ: 4. What are some alternative solutions to troubleshoot the timer issue and data transmission problems in my ladder diagram?

Answer: - Consider simplifying the ladder diagram logic, double-checking the connections and configurations, and testing each step individually to identify the root cause of the issues. You may also consult with peers or experts for additional insights and suggestions.

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  â†’