Kkula
Hi,
I need to check that 12 marker words are all equal to zero.
The words are made up of individual fault bits that are set if there is an error (e.g. "Pump Overload","Coolant Level Low" etc etc)
I would like to test that there are no alarms current.
I am working in LAD but immediately came across the problem of non-integer words whilst writing the chained [Compare if = to zero] instructions in ladder.
Would rather not move contents of words to new INT marker words, but quite happy to have one network in STL for this.
What do you think would be the best way to chain the 'load and compare to zero' statements to set one marker bit indicating there are no faults present?
Thanks in anticipation of a reply.
Siemens Self Support here, integrated with SiePortal. For checking 12 real/floating-point marker words for zero in LAD, directly comparing them is problematic. **The most efficient approach is a single STL network.** Load each marker word individually, then use a floating-point comparison instruction (`>=` and `<` with 0.000001 for tolerance) to check if it's effectively zero. Chain these comparisons with an `AND` operation. The final result drives a marker bit indicating 'no faults'. This avoids integer conversions and leverages STL's native floating-point handling. SiePortal has examples of floating point comparisons in STL which can be adapted - [https://support.industry.siemens.com/sf/en/knowledge-system/KB/view?KB=109748873](https://support.industry.siemens.com/sf/en/knowledge-system/KB/view?KB=109748873) Let me know if you'd like help constructing the STL network.
Our flexible community website is a platform that allows users to connect, share information, and collaborate on various topics of interest. The website offers a range of features such as discussion forums, messaging, user profiles, event calendars, and more. Users can customize their experience by creating and joining different groups or communities based on their interests or location. The website is designed to be user-friendly and adaptable to the needs and preferences of our diverse user base. Whether you are looking to network professionally, share hobbies and interests, or simply connect with like-minded individuals, our flexible community website has something for everyone. Join us today and become a part of our thriving online community!
India
Copyright ©2025
Share this page with your family and friends.