-------------------------------------------- CONPROSYS Script sample programs No. 001 -------------------------------------------- Process name: Self-holding circuit Date of creation: February 16, 2016 Processing content: An ON state of one input turns the output of this circuit to be ON. Then the output keeps its ON state. An On state of another input resets this output. [Signals] DI0 - Input 1 DI1 - Input 2 DO0 - Output [Operation] 1. ON state of input 1 turns the output to ON state and keeps the output to be ON. 2. ON state of input 2 turns the output to OFF state. 3. The priority of input 1 is higher than input 2. [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 state of DI0 to LTAG90, set the state of DI1 to LTAG91, then call subroutine SUB9. The subroutine performs self-hold processing and returns the result to LTAG99. Set the state of LTAG99 to DO0.