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.
Executing reliable industrial automation in a compact form factor, the Omron CP1L-M40DR-D functions as a high-performing programmable logic controller CPU within the CP1L Series family. This controller provides 40 built-in digital I/O points (24 inputs and 16 outputs) paired with highly reliable relay outputs, enabling direct interfacing with field actuators and devices. Engineered with a 10K step program memory capacity, it supports structured text, ladder logic, and function blocks. Featuring integrated communication options, this CPU is designed to act as the primary control node for machinery in packaging, material handling, and custom assembly applications.
| Parameter | Specification |
|---|---|
| Manufacturer | Omron |
| Model Number | CP1L-M40DR-D |
| Series | CP1L M-Type (Middle Tier) |
| Power Supply Voltage | 24 VDC |
| Built-in Inputs | 24 Inputs (including 6 high-speed counter inputs) |
| Built-in Outputs | 16 Outputs |
| Output Method | Relay Output |
| Program Capacity | 10K steps |
| High-Speed Counters | 100 kHz, 4 axes |
| Instruction Execution Time | Basic: 0.55 microseconds min. | Special: 4.1 microseconds min. |
| Shipping Weight (Calculated) | 3.0 kg (including commercial protective packaging) |
The CP1L-M40DR-D represents the highly expandable M-type processor tier, allowing for significant localized I/O additions. If you are replacing an older CP1L CPU or migrating from a CP1H platform, verify your existing expansion cards. CP1W expansion units are fully compatible, but ensure your program memory configurations fit within the 10K step framework of this model.
Because this CPU utilizes mechanical relay outputs, rapid and highly repetitive switching cycles must be avoided to prevent early contact wear. When driving inductive loads such as solenoid valves, pneumatic actuators, or motor starters, always deploy external surge suppressors (diodes for DC circuits, RC snubbers for AC circuits) to eliminate inductive kickback and prolong relay lifetime.
Ensure that the functional ground (FG) terminal is securely bonded to a low-impedance copper ground bus. When commissioning the high-speed pulse and counter inputs, keep signal wiring physically isolated from 240/480 VAC power lines to prevent electromagnetic coupling from inducing false counts or triggering unexpected interrupt tasks.
Isolate and verify the de-energization of all primary and secondary power distribution sources before mounting, wiring, or servicing this PLC CPU. Failure to completely de-energize circuits can result in severe equipment damage, arc flash, or personal injury.
Mount the CPU module onto a standard 35 mm DIN rail inside a clean, dust-free industrial enclosure conforming to standard IP54 protection ratings.
Connect the dedicated external 24 VDC power supply to the appropriate DC power input terminals, taking care to maintain correct polarity.
Secure all terminal block connections using a calibrated torque driver to avoid over-tightening or loose contacts that could lead to intermittent faults.
Global Express Shipping
Returns & Warranty

Executing reliable industrial automation in a compact form factor, the Omron CP1L-M40DR-D functions as a high-performing programmable logic controller CPU within the CP1L Series family. This controller provides 40 built-in digital I/O points (24 inputs and 16 outputs) paired with highly reliable relay outputs, enabling direct interfacing with field actuators and devices. Engineered with a 10K step program memory capacity, it supports structured text, ladder logic, and function blocks. Featuring integrated communication options, this CPU is designed to act as the primary control node for machinery in packaging, material handling, and custom assembly applications.
| Parameter | Specification |
|---|---|
| Manufacturer | Omron |
| Model Number | CP1L-M40DR-D |
| Series | CP1L M-Type (Middle Tier) |
| Power Supply Voltage | 24 VDC |
| Built-in Inputs | 24 Inputs (including 6 high-speed counter inputs) |
| Built-in Outputs | 16 Outputs |
| Output Method | Relay Output |
| Program Capacity | 10K steps |
| High-Speed Counters | 100 kHz, 4 axes |
| Instruction Execution Time | Basic: 0.55 microseconds min. | Special: 4.1 microseconds min. |
| Shipping Weight (Calculated) | 3.0 kg (including commercial protective packaging) |
The CP1L-M40DR-D represents the highly expandable M-type processor tier, allowing for significant localized I/O additions. If you are replacing an older CP1L CPU or migrating from a CP1H platform, verify your existing expansion cards. CP1W expansion units are fully compatible, but ensure your program memory configurations fit within the 10K step framework of this model.
Because this CPU utilizes mechanical relay outputs, rapid and highly repetitive switching cycles must be avoided to prevent early contact wear. When driving inductive loads such as solenoid valves, pneumatic actuators, or motor starters, always deploy external surge suppressors (diodes for DC circuits, RC snubbers for AC circuits) to eliminate inductive kickback and prolong relay lifetime.
Ensure that the functional ground (FG) terminal is securely bonded to a low-impedance copper ground bus. When commissioning the high-speed pulse and counter inputs, keep signal wiring physically isolated from 240/480 VAC power lines to prevent electromagnetic coupling from inducing false counts or triggering unexpected interrupt tasks.
Isolate and verify the de-energization of all primary and secondary power distribution sources before mounting, wiring, or servicing this PLC CPU. Failure to completely de-energize circuits can result in severe equipment damage, arc flash, or personal injury.
Mount the CPU module onto a standard 35 mm DIN rail inside a clean, dust-free industrial enclosure conforming to standard IP54 protection ratings.
Connect the dedicated external 24 VDC power supply to the appropriate DC power input terminals, taking care to maintain correct polarity.
Secure all terminal block connections using a calibrated torque driver to avoid over-tightening or loose contacts that could lead to intermittent faults.
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 .
| Country of origin |
Japan
|