Quick overview
1. Applicable products
XB6S-EC2002 + XB6S series I/O modules
2. Platform used
CODESYS programming platform
3. Problem scenario
The module input channels cannot read the input signal
4. Troubleshooting dimensions
Wiring method / variable address occupancy / variable update settings
On the CODESYS platform, if the input signals of the Solidot Slice I/O EtherCAT protocol Coupler XB6S-EC2002 and the I/O modules it carries cannot be read, how should you troubleshoot? This article provides the following three dimensions for step-by-step troubleshooting:
① Is the wiring method correct (judged by whether the channel indicator lights up);
② Is the module variable address already occupied by another program element;
③ Is the variable update setting correctly enabled.
Taking XB6S-3200 as an example, the specific troubleshooting method for each scenario is described below.
1. Check whether the wiring method is correct
The typical characteristic of this type of fault is: the channel indicator does not light up.
Taking XB6S-3200 as an example, first look at the wiring diagram:

The XB6S-3200 input signal is NPN/PNP compatible and is switched via the COM wiring. If a PNP-type input signal is used, COM must be connected to 0 V; if an NPN-type input signal is used, COM must be connected to 24 V. If COM is not wired, the input signal cannot form a loop inside the module, so the channel indicator will not light up, and the input signal naturally cannot be read in the program.
2. Check whether the module variable address is already occupied by another program element
As shown in the figure below, the variable address "TEST2" bound to the first input channel of the module is called by a Coil in the program, and compilation still reports no error. In this case, even if there is an external input signal, the input value cannot be monitored either in the module I/O mapping or in the program. You need to unbind the variable bound to this Coil, or change it to a variable address that is not called, so that the input signal can be read in real time.

3. Check whether the variable update setting is correctly enabled
During configuration of a new project, the PLC variable update setting defaults to Disabled (update only when used in a task). In this case, the module's input indicator is on, but no input signal is received.
It must be switched to Enabled 1 (if not used in any task, apply the bus cycle task). After downloading the configuration again, the input variables can be updated in real time with the external signals.

The above are common troubleshooting methods for when the XB6S-EC2002 and the I/O modules mounted on it cannot read input signals on the CODESYS platform. It is recommended to troubleshoot step by step in the order of wiring → variable address → variable update setting.