I am having trouble activating or deactivating the ONS bit in this PLC program. The ONS bit should reset when there is a change from LOW to HIGH. Despite toggling N46:38/7 and adjusting the EQU to true and false, the ONS is not responding. It seems like the ONS is not being manipulated from any other part of the program. Can anyone identify what I am overlooking?
To troubleshoot, verify that the specific ladder file is being accessed. Then, navigate to the data file view and choose the Usage option for that specific bit. Check if the bit is utilized at the file or word level. Keep in mind that indirect addressing may not be visible in the Usage view. A helpful tip to locate indirection in a RSLogix 5/500 program is to use the Find All feature with a square bracket in the search field "[". This can help identify any instances of indirection in the program.
Is the issue with the latched output on rung #27 not turning on? This result would be expected to occur. The OTE on the previous rung would only be energized for a single scan, so no action would be visible there. Additionally, I noticed that your counter is using C4 (data type counter, data file #4). Typically, counters are found in data file 5 (C5) and timers are in data file 4 (T4). It is possible to delete the default data files 3-8 and utilize them as needed, although this practice is uncommon. Have you encountered this before? While not a problem, it is certainly unusual.
It is important to ensure that the ladder logic is properly called and not located within an MCR. If you are working with Logix5000, the ONS bit should be high when the ladder is activated as shown. Additionally, double-check that no other components are modifying the entire word. Review the cross-reference diagram to confirm if the word is being utilized elsewhere.
The ONS (One Shot) function operates by turning the output on for just one scan when the input preceding it becomes true. The bit assigned to the ONS is solely for status reference and should not be used elsewhere in the program to avoid potential issues. It is important not to assign the same bit to multiple ONS functions as it may lead to incorrect operation. Remember to reset the ONS appropriately to prevent unexpected behavior in the program.
GaryS mentioned that the ONS tag should only be used for status reference and should not be accessed or utilized elsewhere in the program. It reminds me of a situation I encountered at my previous job, where a PLC used the ONS tag in XIC/XIO instructions all over the routine. Surprisingly, it had been functioning properly for a decade before I came across it. Although the code worked, troubleshooting it was quite challenging. I advise caution against attempting to replicate this setup.
✅ Work Order Management
✅ Asset Tracking
✅ Preventive Maintenance
✅ Inspection Report
We have received your information. We will share Schedule Demo details on your Mail Id.
Answer: 1. How can I troubleshoot issues with activating or deactivating the ONS bit in a PLC program? - To troubleshoot ONS activation and deactivation issues, ensure that the conditions for resetting the ONS bit (e.g., change from LOW to HIGH) are correctly defined. Verify that the input toggling N46:38/7 and the EQU instruction are functioning as intended. Check for any potential conflicts or lack of manipulation of the ONS bit in other parts of the program.
Answer: - The ONS bit may not be responding due to incorrect logic implementation, such as incorrect addressing, faulty conditions for resetting the ONS, or lack of manipulation from other parts of the program. Review the program logic carefully to identify any discrepancies or errors that may prevent the ONS bit from resetting as intended.
Answer: - To ensure proper manipulation of the ONS bit, double-check the logic sequence involving the ONS bit and verify that all conditions for activation and deactivation are accurately defined. Confirm that the ONS bit is being correctly toggled and monitored within the program to trigger the desired reset behavior.
Answer: - Common pitfalls when working with ONS activation and deactivation include
Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.