Hey Tom, electrified3:
Earl's talking about a PLC-5/30; no SCP there.
I'm not exactly what Earl wants but if I understand correctly he wants a extract a set-point from a look-up table based on some process variable.
1) Extracting a value from a look-up table is easy. Set up a data file and use an indirectly addressed MOV instruction source to the desired destination.
2) Manipulation of the index will depend on your PV. The main question is: How many breaks do you have (or need) in your linearization?
a) If you've got only a few use individual rungs with LIM (limit)instructions as conditions and MOV instructions which move the index values (constants) into the index register. Set up the LIM instructions to frame the PV values for breaks in your linearization.
b) If you've got lots of breaks then you can set up a loop that will check the PV against ANOTHER table. This is more complicated but it's much less previlent. If you need help with this post again and we'll get you going.
3) SCP. As I mentioned at the top of this post, there is none in th 5/30. Regardless you can easily program it using a CPT (compute) instruction.
Please don't hesitate to post but please try to give us as much information as possible.
Good Luck,
(8{)} ( .)
(Yosi)