An input-output module, comprising:
- processing circuitry
- including an input terminal to receive an input signal,
- including an output terminal to output a signal,
- to receive first setting information from a host controller, the first setting information being information for setting a condition of a value of the signal to be output from the output terminal or a condition between a value of the input signal received by the input terminal and a value of the signal to be output from the output terminal and being information for controlling an operation of an external device connected to the input-output module,
- to receive second setting information, the second setting information being information for setting the condition of the value of the signal to be output from the output terminal or the condition between the value of the input signal received by the input terminal and the value of the signal to be output from the output terminal and being information for controlling an operation of an external device connected to the input-output module,
- to store the received first setting information or the received second setting information,
- to, based on the stored first setting information or the stored second setting information, cause the output terminal to output a signal with the set value or cause the output terminal to output a signal with a value in accordance with the set condition and the value of the input signal received by the input terminal, and
- to switch a mode between a first mode and a second mode, wherein
- when the mode is in the first mode, the processing circuitry, based on the first setting information, causes the output terminal to output the signal with the set value or causes the output terminal to output the signal with the value in accordance with the set condition and the value of the input signal received by the input terminal, and
- when the mode is in the second mode and is a startup mode indicating a state of a startup operation, the processing circuitry receives the second setting information from a device other than the host controller, and, based on the second setting information, causes the output terminal to output the signal with the set value or causes the output terminal to output the signal with the value in accordance with the set condition and the value of the input signal received by the input terminal.