Hi all, I am trying to figure out a mask value and RSLogix keeps changing it to a -1. Basically, I am looking at I 3.0 ( All 16 inputs)and they must all be true during a test. I want to use the mask of FFFFh and when I do, RSL returns a -1. If they are all true, the value of FFFF should be moved to a location and compared in a NEQ test. If the value is NOT FFFF, a fault will be set. This basically checks that all the 16 inputs are true. Correct?
The idea here is that should any one of the inputs stay low, a bad part is detected. Actually, only the first 10 inputs are for the test and that previously had a mask of 3ffh (1023). The remaining inputs are to show the parts are clamped and they will have to be, so I see no harm in using them as well. This entire problem arises because the logic was originally written to read I3.0, mask thru 3FFh, and compare to a zero. This was based on ANY of the first 10 inputs coming on, a bad part is detected via a N.O. Pressure switch(Part does not have a hole). Now, we have switched to a flow switch that is N.O. and will give the input in the event of a good part (one that flows air because the hole is completed). Well, the logic was written to require no inputs for a pass test. Now I need to change it to see all inputs for a pass test. I hope that tells everyone enough about the application. BTW, this is for detection of an oil hole that is drilled in a sun gear in GM's HD 4 speed auto tranny in case anyone is interested.
Thanks in advance for any help,
Scott
The idea here is that should any one of the inputs stay low, a bad part is detected. Actually, only the first 10 inputs are for the test and that previously had a mask of 3ffh (1023). The remaining inputs are to show the parts are clamped and they will have to be, so I see no harm in using them as well. This entire problem arises because the logic was originally written to read I3.0, mask thru 3FFh, and compare to a zero. This was based on ANY of the first 10 inputs coming on, a bad part is detected via a N.O. Pressure switch(Part does not have a hole). Now, we have switched to a flow switch that is N.O. and will give the input in the event of a good part (one that flows air because the hole is completed). Well, the logic was written to require no inputs for a pass test. Now I need to change it to see all inputs for a pass test. I hope that tells everyone enough about the application. BTW, this is for detection of an oil hole that is drilled in a sun gear in GM's HD 4 speed auto tranny in case anyone is interested.
Thanks in advance for any help,
Scott