-------------------------------------------- CONPROSYS Script sample programs No. 010 -------------------------------------------- Process name: Monitor upper limit of analog input Date of creation: April 18, 2016 Processing content: Monitor the analog input value and turn the output ON if it is over the upper limit value. [Signals] AI0 - Analog Input 1 DO0 - Output [Operation] 1. Read the value of analog input 1. 2. Monitor whether the inputted value is above the upper limit. 3. When the value is over the upper limit value, turn the output to ON. [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 the AI0 value into the LTAG90 and the upper value (*) into LTAG91, then call the subroutine SUB9. The subroutine compares the inputted value with the upper limit and set the result to LTAG99. Output the LTAG99 state to DO0. * In this sample program the upper limit value is 2000.