主权项 |
1. An image forming apparatus including a cabinet; a laser light source included in the cabinet; a laser drive unit for driving the laser light source; an open/close member included in the cabinet; and a switch for cutting off power supply of the laser drive unit when the open/close member is in an opened state and connecting the power supply to the laser drive unit when the open/close member is in a closed state, used for forming an image by using the laser light source, the image forming apparatus comprising:
a first opened/closed signal generation unit configured to generate a first opened/closed signal indicating an opened/closed state of the open/close member by using polling detection in which a first signal via the switch is periodically monitored; a second opened/closed signal generation unit configured to generate a second opened/closed signal in which a state indicating that the open/close member is in an opened state is latched when a second signal via the switch is cut off; and a power supply failure detection unit configured to detect a failure of the power supply based on at least one of the first opened/closed signal and the second opened/closed signal, wherein the second opened/closed signal indicates in an initial state that the open/close member is in the closed state, and is returned to the initial state by an initialization command, and wherein the power supply failure detection unit detects the failure of the power supply based on the second opened/closed signal during an image forming period, and detects the failure of the power supply based on the first opened/closed signal and the second opened/closed signal during a period other than the image forming period. |