unsaint32
Member
I am trying to figure out how to use a High speed counter module for an incremental encoder. I don't have the exact model number for the encoder but it is already wired to 1756-HSC's channel 0's A, B, and Z sections. Specifically, I want to know if I understand the following module defined tags correctly;
O.LoadPreset.0
I.WasPreset.1
In my setup the HSC card is in slot 7, so the actual counter position tag is Local:7:I.PresentValue[0]. It is for a stretch wrap roller.
In the program (I didn't write this program), an overtravel Prox triggers Local:7:O.LoadPreset.0. If I understand it correctly, that changes the encoder's Present value to Preset value. In other words, if the Local:7:I.PresentValue[0] was 5 million at one point, and the Local:7:C.Preset[0] was set at 8milion, the Local:7:I.PresentValue[0] changes from 5 milion to 8 million.
Did I get it right?
Another question is, assuming my understanding is right so far, I guess the result of the triggering event above sets the Local:7:I.WasPreset.0 to 1. But after that, what resets the bit?
Thanks.
O.LoadPreset.0
I.WasPreset.1
In my setup the HSC card is in slot 7, so the actual counter position tag is Local:7:I.PresentValue[0]. It is for a stretch wrap roller.
In the program (I didn't write this program), an overtravel Prox triggers Local:7:O.LoadPreset.0. If I understand it correctly, that changes the encoder's Present value to Preset value. In other words, if the Local:7:I.PresentValue[0] was 5 million at one point, and the Local:7:C.Preset[0] was set at 8milion, the Local:7:I.PresentValue[0] changes from 5 milion to 8 million.
Did I get it right?
Another question is, assuming my understanding is right so far, I guess the result of the triggering event above sets the Local:7:I.WasPreset.0 to 1. But after that, what resets the bit?
Thanks.