-------------------------------------------- CONPROSYS Script sample programs No. 011 -------------------------------------------- Process name: Monitor lower limit of analog input Date of creation: April 18, 2016 Processing content: Monitor the analog input value and turn the output to ON if it is less than the lower 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 less than the lower limit. 3. When the value is less than the lower 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 lower value (*) into LTAG91, then call the subroutine SUB9. The subroutine compares the inputted value with the lower limit and set the result to LTAG99. Output the LTAG99 state to DO0. * In this sample program the lower limit value is 2000.