Lamboom
Lifetime Supporting Member
So you have an object on an HMI that will become a number inputted from a numeric pad, which is automatically launched on the HMI, when you touch that object.
Aperson could accidentally select a "wrong" number .. which will cause a "fault" or worse..![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
There is a list of about 20 correct numbers (from 1 to 255), and only one of those will produce the desired result.
After a number is selected, a "GO" button is pushed on the HMI, and if the selected number matches one of the 20 acceptable numbers, The intent of the 'Go" button is permitted... if not, a "Not Correct" error will be indicated.
Is there a comparator function block in Siemens ladder logic, where it looks at a numeric value, and checks it against a list of values, then outputs a "1" if it finds a match in the list?
Regards, Michael
PS: I guess another Title for this might be "Managing the output of a numeric pad"
Aperson could accidentally select a "wrong" number .. which will cause a "fault" or worse..
There is a list of about 20 correct numbers (from 1 to 255), and only one of those will produce the desired result.
After a number is selected, a "GO" button is pushed on the HMI, and if the selected number matches one of the 20 acceptable numbers, The intent of the 'Go" button is permitted... if not, a "Not Correct" error will be indicated.
Is there a comparator function block in Siemens ladder logic, where it looks at a numeric value, and checks it against a list of values, then outputs a "1" if it finds a match in the list?
Regards, Michael
PS: I guess another Title for this might be "Managing the output of a numeric pad"