6ES5 240-1AA21

Siemens 6ES5 240-1AA21 SIMATIC S5 IP 240 counter and positioning module

The 6ES5 240-1AA21 is a SIMATIC S5 IP 240 module with two independent channels. It supports high-speed pulse counting, position decoding with incremental encoders, and positioning via cut-off points. The S5-115U also supports IP 252 expansion mode. Select the operating mode for each channel in the STEP 5 project.

Encoder signals, counting and positioning

In position decoding and positioning modes, A/B phase indicates direction and the Z mark provides a reference. Siemens specifies up to 500 kHz for 5 V differential RS-422A signals. In counting mode, the 5 V CLK input limit is 70 kHz. The 24 V input limit depends on cable length. Before selecting a differential encoder, match the encoder output type to the S4, S5 and S6 settings.

In counting mode, CLK receives the pulses. The gate that starts counting comes from the GT input or the STEP 5 STRT bit, according to the project settings. In positioning mode, IN is the reference precontact input. Check the drawings to distinguish it from the machine’s limit switch. Check a known distance on an axis with a linear scale. With a rotary encoder, inspect the coupling and mounting for play.

The front panel has 15-pin Sub-D connectors X2/X4 and screw terminals X3/X5. Siemens limits clock pulses through X3/X5 to 10 kHz. Label the cables and connectors by channel. Trace signals received directly by the IP 240 separately from the PLC’s digital inputs, and distinguish D1/D2 from the other digital outputs.

Installation, STEP 5 and replacement

The Siemens manual lists S5-115U, S5-135U, S5-150U and S5-155U arrangements for counting, position decoding and positioning. An adapter casing is required in the S5-115U. Verify the slot against the installed S5 rack, power supply and any expansion interface.

In STEP 5, FB169/170 are for position decoding, FB171/172 for counting and FB167/168 for positioning. Record the function module address, data block and channel mode from the existing project. The Siemens ST 50 catalog lists the 240-5AA11 configuring package separately as the German manual and standard block package.

Siemens identifies the 1AA21 as a replacement for the 240-1AA11 and 240-1AA12. For an upgrade from the 1AA11, check chapters 2–5 and 13 in particular. The IP 242 counter, IP 241 position decoder base module and IP 246 positioning module have different functions and connections.

Editor’s note

1. When buying used, ask for close-up photos of the 240-1AA21 label, X2/X4 and X3/X5. Ask whether the seller tested pulses and outputs on both channels.

2. Back up the STEP 5 project before replacement. Record each channel’s mode, module address, data block and reference settings.

3. Isolate cabinet and field supplies and verify that power is off. Label the connectors and photograph S4/S5/S6. Compare the replacement settings with the drawings.

4. If CLK pulses are present and the count stays fixed, check the GT input or STRT command first. If it matches the configured gate source, check the initial count.

5. If WB is lit, check the differential encoder’s A, B and Z pairs for opens or shorts. If position changes in the wrong direction, compare the A/B phase order and project direction setting.

6. If position reads correctly and the axis overshoots, observe the D1/D2 transition and the drive’s response separately at low speed. Identify which is delayed before changing the cut-off points.

To offer a 6ES5 240-1AA21 for sale, send the quantity, working condition, label photo and asking price to otomasyonavm@gmail.com.

Manuals and supporting documents

+ Siemens IP 240 manual, edition 03, 1AA21 technical data (EN)

+ Siemens IP 240 manual, 1AA21 technical data (DE)

+ Siemens 1AA21 product information, compatibility and wiring supplements (DE)

+ Siemens ST 50 catalog, IP 240 and 240-5AA11 ordering table (EN)

+ SIMATIC S5 PDF archive

Related topics

+ About Siemens S5 PLCs

+ SIMATIC S5 modules

Used Siemens equipment

+ S5 positioning modules

+ SIMATIC S5

+ Siemens S5 PLC

+ Used Siemens equipment home