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-B520 is a high-performance, decentralized 2-channel digital input counter module designed to interface directly with DeviceNet industrial networks. This Fieldbus Box is built to capture rapid pulse counts and process high-frequency input signals independently of the fieldbus cycle time, ensuring precision in demanding industrial synchronization and measurement applications.
Equipped with 2 independent 32-bit counter channels, the module features a comprehensive set of auxiliary signal lines, including 2 gate inputs and 2 up/down switches. This configuration allows for real-time control over counting direction, enabling versatile configuration options directly on the machine. To facilitate direct sensor connection, the module provides a short-circuit-proof 24 V DC sensor supply alongside two short-circuit-proof digital outputs rated at 0.5 A each.
Housed in a rugged, low-profile polyamide enclosure, the BECKHOFF IP1502-B520 boasts an IP65/66/67 protection rating, allowing direct machine mounting without the need for an additional protective electrical cabinet. Signal and power lines are easily managed via industry-standard M12 and M8 connections, making it an excellent choice for decentralized physical architectures.
| Manufacturer | BECKHOFF |
| Model | IP1502-B520 |
| Product Type | Fieldbus Box Counter Module |
| Housing Material | Polyamide (PA6) |
| Dimensions (W x H x D) | 30 mm x 175 mm x 26.5 mm |
| Protection Class | IP65/66/67 (conforms to EN 60529) |
| Mounting Method | 2 fixing holes (3.5 mm diameter) for M3 bolts |
| Protocol | DeviceNet (IPxxxx-B52x series) |
| Bus Interface | 1 x M12 plug, 5-pin |
| Data Transfer Rates | Automatic detection (125 kbaud, 250 kbaud, 500 kbaud) |
| Max. Number of I/O Stations | 63 |
| Communication Types | Bit strobe, polling, cyclic, change of state |
| Configuration Options | KS2000 software or controller (explicit messaging) |
| Process Image Bit Width | 80 inputs/outputs (2 x 32-bit data, 2 x 8-bit control/status) |
| Number of Inputs | 2 counter inputs, 2 gate inputs, 2 up/down switches |
| Number of Counters | 2 independent counters (32-bit depth each) |
| Max. Counting Frequency | 100 kHz (restricted to 2 kHz for active up/down switching) |
| Input Specification | EN 61131-2, type 2 |
| Nominal Input Voltage | 24 V DC (-15% / +20%) |
| "0" Signal Voltage | -3 to +5 V (EN 61131-2, type 2) |
| "1" Signal Voltage | 11 to 30 V (EN 61131-2, type 2) |
| Signal Connection | M12 screw-type |
| Auxiliary 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 |
| Control Voltage Supply | 24 V DC (-15% / +20%) |
| Box Supply Current | 45 mA + sensor current (max. 0.5 A total) |
| Power Supply Interface | Feed: 1 x M8 male (4-pin); Downstream: 1 x M8 female (4-pin) |
| Electrical Isolation | 500 V (Control voltage to Fieldbus) |
| Operating Temperature | 0 to +55 degC |
| Storage Temperature | -25 to +85 degC |
| Vibration/Shock Resistance | Conforms to EN 60068-2-6 / EN 60068-2-27 |
| EMC Immunity/Emission | Conforms to EN 61000-6-2 / EN 61000-6-4 |
| Approvals and Markings | CE, UL |
| Interface / Port | Function |
|---|---|
| DeviceNet Port | 1 x M12 plug, 5-pin, for bus communication and fieldbus power |
| Power Feed (Us) | 1 x M8 male socket, 4-pin, feeds the control voltage supply |
| Power Downstream | 1 x M8 female socket, 4-pin, routes control voltage to the next module |
| Signal Channels | M12 screw-type ports for inputs, gate lines, and outputs |
Global Express Shipping
Returns & Warranty

The BECKHOFF IP1502-B520 is a high-performance, decentralized 2-channel digital input counter module designed to interface directly with DeviceNet industrial networks. This Fieldbus Box is built to capture rapid pulse counts and process high-frequency input signals independently of the fieldbus cycle time, ensuring precision in demanding industrial synchronization and measurement applications.
Equipped with 2 independent 32-bit counter channels, the module features a comprehensive set of auxiliary signal lines, including 2 gate inputs and 2 up/down switches. This configuration allows for real-time control over counting direction, enabling versatile configuration options directly on the machine. To facilitate direct sensor connection, the module provides a short-circuit-proof 24 V DC sensor supply alongside two short-circuit-proof digital outputs rated at 0.5 A each.
Housed in a rugged, low-profile polyamide enclosure, the BECKHOFF IP1502-B520 boasts an IP65/66/67 protection rating, allowing direct machine mounting without the need for an additional protective electrical cabinet. Signal and power lines are easily managed via industry-standard M12 and M8 connections, making it an excellent choice for decentralized physical architectures.
| Manufacturer | BECKHOFF |
| Model | IP1502-B520 |
| Product Type | Fieldbus Box Counter Module |
| Housing Material | Polyamide (PA6) |
| Dimensions (W x H x D) | 30 mm x 175 mm x 26.5 mm |
| Protection Class | IP65/66/67 (conforms to EN 60529) |
| Mounting Method | 2 fixing holes (3.5 mm diameter) for M3 bolts |
| Protocol | DeviceNet (IPxxxx-B52x series) |
| Bus Interface | 1 x M12 plug, 5-pin |
| Data Transfer Rates | Automatic detection (125 kbaud, 250 kbaud, 500 kbaud) |
| Max. Number of I/O Stations | 63 |
| Communication Types | Bit strobe, polling, cyclic, change of state |
| Configuration Options | KS2000 software or controller (explicit messaging) |
| Process Image Bit Width | 80 inputs/outputs (2 x 32-bit data, 2 x 8-bit control/status) |
| Number of Inputs | 2 counter inputs, 2 gate inputs, 2 up/down switches |
| Number of Counters | 2 independent counters (32-bit depth each) |
| Max. Counting Frequency | 100 kHz (restricted to 2 kHz for active up/down switching) |
| Input Specification | EN 61131-2, type 2 |
| Nominal Input Voltage | 24 V DC (-15% / +20%) |
| "0" Signal Voltage | -3 to +5 V (EN 61131-2, type 2) |
| "1" Signal Voltage | 11 to 30 V (EN 61131-2, type 2) |
| Signal Connection | M12 screw-type |
| Auxiliary 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 |
| Control Voltage Supply | 24 V DC (-15% / +20%) |
| Box Supply Current | 45 mA + sensor current (max. 0.5 A total) |
| Power Supply Interface | Feed: 1 x M8 male (4-pin); Downstream: 1 x M8 female (4-pin) |
| Electrical Isolation | 500 V (Control voltage to Fieldbus) |
| Operating Temperature | 0 to +55 degC |
| Storage Temperature | -25 to +85 degC |
| Vibration/Shock Resistance | Conforms to EN 60068-2-6 / EN 60068-2-27 |
| EMC Immunity/Emission | Conforms to EN 61000-6-2 / EN 61000-6-4 |
| Approvals and Markings | CE, UL |
| Interface / Port | Function |
|---|---|
| DeviceNet Port | 1 x M12 plug, 5-pin, for bus communication and fieldbus power |
| Power Feed (Us) | 1 x M8 male socket, 4-pin, feeds the control voltage supply |
| Power Downstream | 1 x M8 female socket, 4-pin, routes control voltage to the next module |
| Signal Channels | M12 screw-type ports for inputs, gate lines, and outputs |
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
|