How to Read and Write internal parameter of 'LIN' block in Freelance?
Software:- Freelance 2016
Actually in one of our project it is required to display/ modify (read and write) the internal parameter of 'LIN' block of Freelance. This block does not have faceplate.
Its application is same as piecewiselinear block of 800XA.
We want to linearised the value of input by enetering minimum 5-5 values of X and Y.
Voted best answer
you can create your own faceplate, which provides the means to enter values for all the X/Y pairs, provided you have the Professionakl version of CBF or FE as it is called lately.
With the professional version you can create User Function Blocks [UFB]. A UFB has a program, but can also have a Faceplate.
The UFB Program would contain your LIN FB with an Input and Output Variable attached.
In the interface declaration of the UFB you would declare 2 variables of storage type PARA_EXP for each X and Y pair you want to set , which allows you to access Parameters of embedded function blocks. Based on the interfce declaration you can configure the configuration dialog of your UFB. You also want to configure start sets of those pairs, right?
Additionally you can create a faxceplate and use Alphanumeric Display objects for each X and each Y value to show. In order to set them during runtime you need to select the Write Variable action for the Alphanumeric Display object.
That should do it.