-------------------------------------------- CONPROSYS Script sample programs No. 013 -------------------------------------------- Process name: Industrial value conversion Date of creation: April 18, 2016 Processing content: Convert analog input data to industrial value [Signals] AI0 - Analog Input 1 [Operation] 1. Read analog input 1. 2. Convert the analog input data to industrial value with the formula "y = ax + b". 3. set the converted result to TAG00. [Description] The sample program has a main task (TASK9) and a subroutine (SUB9). To use this sample program, restores this sample program to the M2M controller and names the task number and the subroutine number. If the subroutine is renamed to a number that is not SUB9, change the calling number to the new one. Set AI0 input data to LTAG90, constant "a" to LTGA 91, constant "b" to LTGA92, then call the subroutine SUB9. Subroutine converts the input data to industrial value, set the result to LTGA99. * In this sample program, the constant "a" is 0.1, and the constant "b" is -100.0.