advertisement
from the Ladder Logic for Dummies department...
Analog Limits Best Practices?
Programming languages. topic
Posted by Kimo Makena on 1 December, 2009 - 1:43 pm
I have an application with 80 analog inputs, and for each input I have a table of 8 limits. These limits define Signal Fail Low, Signal Fail Hi, Lo, LoLo, Hi, HiHi, Event Low, and Event Hi. The event limits are to be primarily for process control, while the others are to be used primarily to set alarms / shutdowns.

Example, AI0001 value 35.
Limits table -10, 110, 40, 20, 70, 90, 50, 55

Outputs AI01L1B, AI01L2B, AI01L3B, AI01L4B, AI01L5B, AI01L6B, AI01L7B, AI01L8B.

In this case, I would want 1B and 4B BOOL to be SET or On, because those limits are lower than the current value, while all the others would be RESET or Off.

Finally I would like it to be latched until both the condition has changed AND a reset signal is given.

I need to scan all 80 analog inputs and compare them to all 640 limits every scan.

Does anyone have a LD sample of this for a GE Fanuc 90-30 system with a -364 CPU? Would this be faster as an IL block? I don't have a C compiler, and I don't know IL well enough. Just not sure of how to start with Address A, and add 8 to it every loop to get the next 8 addresses, as well as adding to the addresses of the bits I am setting.


Posted by Kimo Makena on 4 December, 2009 - 4:48 pm
Clarification: on 90-70s, I can use the @R1001 to indicate that R1001 holds the address of where to put data, or where to get data. How do I get around this on the 90-30, which does not allow indirect addressing?

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2013 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.


Fortune
"Love is a snowmobile racing across the tundra and then suddenly it
flips over, pinning you underneath. At night, the ice weasels come."
-- Matt Groening
Advertise here
Advertisement
our advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive