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.
The BECKHOFF IP1502-B318 is a specialized fieldbus box designed for direct field-level digital input and high-speed counter applications within PROFIBUS DP networks. Equipped with two independent 32-bit counter channels, this field-level module is engineered for decentralized automation tasks requiring precise position, frequency, or pulse detection. Its IP67-rated construction allows for direct mounting on machinery, eliminating the need for protective control cabinets and minimizing field-wiring runs.
This module features two counter inputs capable of processing signal frequencies up to 100 kHz, alongside two auxiliary gate inputs and two up/down direction switches. Built-in industrial M12 screw-type connectors ensure secure, vibration-resistant connections for sensors and actuator signals, while the integrated B-coded M12 T-connector facilitates straightforward PROFIBUS network daisy-chaining without external splitters.
| Parameter | Specification |
|---|---|
| Manufacturer | BECKHOFF |
| Model | IP1502-B318 |
| Product Type | Fieldbus Box (Counter Module) |
| Housing Material | PA6 (Polyamide) |
| Dimensions (W x H x D) | 30 mm x 210 mm x 26.5 mm |
| Mounting Method | 2 fixing holes (3.5 mm diameter for M3) |
| Protection Class | IP65, IP66, IP67 (conforms to EN 60529) |
| Operating Temperature | 0 to +55 degC |
| Storage Temperature | -25 to +85 degC |
| Vibration and Shock Resistance | Conforms to EN 60068-2-6 and EN 60068-2-27 |
| EMC Immunity / Emission | Conforms to EN 61000-6-2 and EN 61000-6-4 |
| Approvals | CE, UL |
| Parameter | Specification |
|---|---|
| Number of Inputs | 2 counter inputs, 2 gate inputs, 2 up/down switches |
| Number of Counters | 2 (each with a depth of 32 bits) |
| Counting Frequency | 100 kHz (2 kHz for up/down switching) |
| Signal Connection | M12, screw type |
| Nominal Input Voltage | 24 V DC (-15% / +20%) |
| "0" Signal Voltage Range | -3 to +5 V (EN 61131-2, type 2) |
| "1" Signal Voltage Range | 11 to 30 V (EN 61131-2, type 2) |
| Number of Outputs | 2 x 24 V DC, 0.5 A (individually short-circuit proof) |
| Sensor Supply | From control voltage, max. 0.5 A total (short-circuit proof) |
| Process Image Bit Width | 80 inputs/outputs: 2 x 32-bit data, 2 x 8-bit control/status |
| Parameter | Specification |
|---|---|
| Control Voltage Supply | 24 V DC (-15% / +20%) |
| Box Supply Current | 85 mA + sensor current (max. 0.5 A) |
| Power Supply Connections | Feed: 1 x M8 male, 4-pin; Downstream: 1 x M8 female, 4-pin |
| Electrical Isolation | Control voltage/fieldbus: No; Channels/control voltage: No |
| Parameter | Specification |
|---|---|
| Fieldbus System | PROFIBUS DP |
| Data Transfer Rates | Automatic detection up to 12 Mbaud |
| Bus Interface Connection | 1 x M12 socket (5-pin), 1 x M12 plug (5-pin), B-coded, integrated T-connector |
| Configuration Options | Via KS2000 software or the master controller (supports DP-V1 extensions) |
Global Express Shipping
Returns & Warranty

The BECKHOFF IP1502-B318 is a specialized fieldbus box designed for direct field-level digital input and high-speed counter applications within PROFIBUS DP networks. Equipped with two independent 32-bit counter channels, this field-level module is engineered for decentralized automation tasks requiring precise position, frequency, or pulse detection. Its IP67-rated construction allows for direct mounting on machinery, eliminating the need for protective control cabinets and minimizing field-wiring runs.
This module features two counter inputs capable of processing signal frequencies up to 100 kHz, alongside two auxiliary gate inputs and two up/down direction switches. Built-in industrial M12 screw-type connectors ensure secure, vibration-resistant connections for sensors and actuator signals, while the integrated B-coded M12 T-connector facilitates straightforward PROFIBUS network daisy-chaining without external splitters.
| Parameter | Specification |
|---|---|
| Manufacturer | BECKHOFF |
| Model | IP1502-B318 |
| Product Type | Fieldbus Box (Counter Module) |
| Housing Material | PA6 (Polyamide) |
| Dimensions (W x H x D) | 30 mm x 210 mm x 26.5 mm |
| Mounting Method | 2 fixing holes (3.5 mm diameter for M3) |
| Protection Class | IP65, IP66, IP67 (conforms to EN 60529) |
| Operating Temperature | 0 to +55 degC |
| Storage Temperature | -25 to +85 degC |
| Vibration and Shock Resistance | Conforms to EN 60068-2-6 and EN 60068-2-27 |
| EMC Immunity / Emission | Conforms to EN 61000-6-2 and EN 61000-6-4 |
| Approvals | CE, UL |
| Parameter | Specification |
|---|---|
| Number of Inputs | 2 counter inputs, 2 gate inputs, 2 up/down switches |
| Number of Counters | 2 (each with a depth of 32 bits) |
| Counting Frequency | 100 kHz (2 kHz for up/down switching) |
| Signal Connection | M12, screw type |
| Nominal Input Voltage | 24 V DC (-15% / +20%) |
| "0" Signal Voltage Range | -3 to +5 V (EN 61131-2, type 2) |
| "1" Signal Voltage Range | 11 to 30 V (EN 61131-2, type 2) |
| Number of Outputs | 2 x 24 V DC, 0.5 A (individually short-circuit proof) |
| Sensor Supply | From control voltage, max. 0.5 A total (short-circuit proof) |
| Process Image Bit Width | 80 inputs/outputs: 2 x 32-bit data, 2 x 8-bit control/status |
| Parameter | Specification |
|---|---|
| Control Voltage Supply | 24 V DC (-15% / +20%) |
| Box Supply Current | 85 mA + sensor current (max. 0.5 A) |
| Power Supply Connections | Feed: 1 x M8 male, 4-pin; Downstream: 1 x M8 female, 4-pin |
| Electrical Isolation | Control voltage/fieldbus: No; Channels/control voltage: No |
| Parameter | Specification |
|---|---|
| Fieldbus System | PROFIBUS DP |
| Data Transfer Rates | Automatic detection up to 12 Mbaud |
| Bus Interface Connection | 1 x M12 socket (5-pin), 1 x M12 plug (5-pin), B-coded, integrated T-connector |
| Configuration Options | Via KS2000 software or the master controller (supports DP-V1 extensions) |
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 |
Germany
|