2 Functions in PLC Task


The basic structure of C language is "function", so INCON-M84/M86/M86R PLC constructs by three functions. The first function of PLC is "plcOpen", the second function is "plcRun", and the third function is "plcClose".


The plcOpen function only executes one time by PLC task at power on, and it responds to initialize I/O, flag, and variable, The plcClose function also only executes one time by PLC task at system shut down, and it responds close I/O, flag and variable. The plcRun is cycle loop and it is main part of procedure.