4119A input sampling stage In the input sampling stage, the PLC sequentially reads all input states and data in a scanning manner and stores them in the corresponding units in the I/O image area. After the input sampling of 4119A is completed, it enters the user program execution and output refresh stage. In these two stages, even if the input state and data change, the state and data of the corresponding units in the/O image area will not change. Therefore, if the input is a pulse signal, the width of the pulse signal must be greater than one scanning cycle to ensure that the input can be read in any case. 4119A User Program Execution Phase During the user program execution phase, the PLC always scans the user program (ladder diagram) in a top-down order. When scanning each ladder diagram, 4119A always scans the control circuit composed of each contact on the left side of the ladder diagram first, and performs logical operations on the control circuit composed of the contacts in the order of left to right, top to bottom. Then, based on the results of the logical operations, the state of the corresponding bit of the logical coil in the system RAM storage area is refreshed; 4119A or refresh the state of the corresponding bit of the output coil in the I/O image area; Or determine whether to execute the special functional instructions specified in the ladder diagram