In a PLC system there will usually be dedicated modules for inputs and dedicated modules for outputs.
An input module detects the status of input signals such as push-buttons, switches, temperature sensors, etc..
An output module controls devices such as relays, motor starters, lights, etc.