Implementing 3-Switch XOR Ladder Logic with Internal Bit
Implement a 3-SPST switch XOR light circuit in LogixPro or RSLogix 500 using an internal relay bit. Includes truth tables, boolean equations, and verified.
Serving as a highly resilient processing hub for modular control architectures, the Beckhoff CX2042-N031-0004 basic CPU module handles complex PLC, motion control, and visualization tasks within industrial automation systems. This controller features an integrated N031 serial interface option, physically broken out via a 9-pin D-sub socket. Designed specifically for reliable point-to-point or bus topologies, the serial interface is factory-configured as a full duplex end point with internal termination enabled. This unit facilitates seamless integration into existing serial bus networks while offering the computational performance of the CX2000 hardware platform.
| Parameter | Specification Value |
|---|---|
| Manufacturer | Beckhoff Automation |
| Model Number | CX2042-N031-0004 |
| Product Type | Basic CPU Module |
| Interface Type | RS422 (N031 option) |
| Connector Type | 9-pin D-sub socket |
| Serial Configuration | Full duplex end point |
| Bus Termination | On (internally terminated) |
| Software Compatibility | TwinCAT runtime environment |
| System Interface | Direct backplane bus connection |
| Shipping Weight (Calculated) | 3.0 kg (6.61 lbs) |
| Country of Origin | Germany |
| D-sub 9-Pin Number | RS422 Full Duplex Function |
|---|---|
| Pin 2 | RxD+ (Receive Data +) |
| Pin 3 | TxD+ (Transmit Data +) |
| Pin 5 | GND (Signal Ground) |
| Pin 7 | RxD- (Receive Data -) |
| Pin 8 | TxD- (Transmit Data -) |
This controller is fully integrated into the CX2000 series ecosystem. If replacing a standard basic module or a module with an alternative interface such as the N030 (RS232) or N010 (DVI/USB), verify all physical communication wiring beforehand. Be aware that substituting this module with a non-terminated model (such as an open point-to-point interface) will require external 120-ohm termination blocks to match line impedance.
Because this module utilizes the built-in "-0004" active termination option, it must only be placed at the physical ends of your RS422 communication segment. Do not connect this device in the middle of a multi-drop RS422 bus loop, as the internal active termination will cause line reflections, signal degradation, and packet loss. Maintain proper spacing around the active fan cartridge of the CX2042 CPU to prevent thermal throttling inside high-density control panels.
When configuring communications within the TwinCAT System Manager, assign the N031 option interface directly to your virtual COM port or map the register bytes directly to your PLC task. Always use twisted-pair, double-shielded copper cabling for the RS422 lines to prevent electromagnetic interference from surrounding variable frequency drives and high-voltage contactors. The shield should be terminated cleanly to the functional earth ground rail at only one end of the segment.
Global Express Shipping
Returns & Warranty

Serving as a highly resilient processing hub for modular control architectures, the Beckhoff CX2042-N031-0004 basic CPU module handles complex PLC, motion control, and visualization tasks within industrial automation systems. This controller features an integrated N031 serial interface option, physically broken out via a 9-pin D-sub socket. Designed specifically for reliable point-to-point or bus topologies, the serial interface is factory-configured as a full duplex end point with internal termination enabled. This unit facilitates seamless integration into existing serial bus networks while offering the computational performance of the CX2000 hardware platform.
| Parameter | Specification Value |
|---|---|
| Manufacturer | Beckhoff Automation |
| Model Number | CX2042-N031-0004 |
| Product Type | Basic CPU Module |
| Interface Type | RS422 (N031 option) |
| Connector Type | 9-pin D-sub socket |
| Serial Configuration | Full duplex end point |
| Bus Termination | On (internally terminated) |
| Software Compatibility | TwinCAT runtime environment |
| System Interface | Direct backplane bus connection |
| Shipping Weight (Calculated) | 3.0 kg (6.61 lbs) |
| Country of Origin | Germany |
| D-sub 9-Pin Number | RS422 Full Duplex Function |
|---|---|
| Pin 2 | RxD+ (Receive Data +) |
| Pin 3 | TxD+ (Transmit Data +) |
| Pin 5 | GND (Signal Ground) |
| Pin 7 | RxD- (Receive Data -) |
| Pin 8 | TxD- (Transmit Data -) |
This controller is fully integrated into the CX2000 series ecosystem. If replacing a standard basic module or a module with an alternative interface such as the N030 (RS232) or N010 (DVI/USB), verify all physical communication wiring beforehand. Be aware that substituting this module with a non-terminated model (such as an open point-to-point interface) will require external 120-ohm termination blocks to match line impedance.
Because this module utilizes the built-in "-0004" active termination option, it must only be placed at the physical ends of your RS422 communication segment. Do not connect this device in the middle of a multi-drop RS422 bus loop, as the internal active termination will cause line reflections, signal degradation, and packet loss. Maintain proper spacing around the active fan cartridge of the CX2042 CPU to prevent thermal throttling inside high-density control panels.
When configuring communications within the TwinCAT System Manager, assign the N031 option interface directly to your virtual COM port or map the register bytes directly to your PLC task. Always use twisted-pair, double-shielded copper cabling for the RS422 lines to prevent electromagnetic interference from surrounding variable frequency drives and high-voltage contactors. The shield should be terminated cleanly to the functional earth ground rail at only one end of the segment.
Global Express Shipping
Returns & Warranty
Orders are processed and delivered Monday-Friday (excluding public holidays).
For full eligibility, restocking fees, and international return details, please view our official Refund & Return Policy .
| Color pattern |
White
|
| Country of origin |
Germany
|
| Power source |
AC-powered
DC Power
|