摘要 |
PURPOSE:To facilitate both confirmation and correction of a program by storing the relations of states including ON/OFF, etc. into a status memory different from a control program. CONSTITUTION:A microcomputer CPU contains two input ports and an output port, and a photosensor for detection of subjects is connected to each bit of the input port. While a solenoid is connected to each bit of the output port via a driver. A memory map of The CPU includes an action program of the CPU, an input level status table, a data buffer and a work area. This status table serves as an ROM and stores previously the information corresponding to the sensor connected to the input port. An exclusive OR is calculated from these information and then stored into the data buffer to receive a check, etc. |