6ES5 240-1AA12
Siemens SIMATIC S5 6ES5 240-1AA12 – IP 240 counter and positioning module
The 6ES5 240-1AA12 (IP 240) handles high-speed counting, position decoding and positioning on two independent channels. In position decoding mode it can compare actual position with setpoints. Among the S5 positioning modules, the 1AA11 is an earlier IP 240 and the 1AA21 is Siemens’ later development. The IP 241 basic module is a separate model with its own encoder matching modules.
Pulse inputs, power and outputs
Encoder inputs The X2 and X4 15-pin Sub-D connectors accept 5 V differential RS-422A A/B/Z or 24 V single-ended A*/B*/Z* incremental signals. In position decoding and positioning, the differential input limit is 500 kHz. For 24 V pulses, Siemens specifies 100 kHz at 25 m and 25 kHz at 100 m with encoder output resistance up to 1 kΩ and cable capacitance up to 100 pF/m. When choosing S5 cables and connectors, check shielding, cable capacitance and encoder output type.
Counting and referencing In counting mode the 24 V pulse is connected to CLK and the gate to GT. In position modes IN receives the reference precontact and Z carries the encoder zero mark. When tracing field digital inputs, confirm the corresponding physical channel on the IP 240.
Power and outputs The S5 system supply provides 5 V via the backplane. An external supply feeds X6 when the card supplies a 24 V encoder. On the 1AA12, a PTC protects this encoder feed against overload. The card has four isolated 24 V outputs, two per channel, rated at up to 0.5 A each. Trace D1/D2 and their supply separately from other digital outputs in the cabinet.
Rack, addressing and STEP 5
For the S5-115U, Siemens lists the 6ES5 491-0LB12 two-module adapter casing. Check slot and interrupt-line assignments for the installed S5 rack, such as a CR 700-0LB, CR 700-2 or CR 700-3. The 6ES5 135-3UA11 and 6ES5 135-3UA21 are examples of S5-135U central controllers. On an expansion unit, check the backplane type and the installed interface modules.
The IP 240 reserves 16 bytes of I/O address space. S2.5 selects the P/Q area and S3 sets the base address. STEP 5 uses FB171/FB172 for counting, FB169/FB170 for position decoding and FB167/FB168 for positioning. The IP 240 software, S5 function modules and Siemens S5 PLC guide pages help match program and hardware records. Compare channel and input functions with the IP 242A if you are evaluating a separate counter module.
Editor’s note
When buying used, check the complete 1AA12 label, X2/X4 sockets and X6 power connector. Ask for a bench test of counting on both channels and a separate test of the D1/D2 outputs.
Isolate power before removing the card. Record the S2/S3 address and S4–S6 settings. Check the STEP 5 address table for overlaps across the replacement card’s full 16-byte range.
When replacing an encoder, check S4 for the channel’s differential or single-ended signal type. The 1AA12 replacement pages specify the 24 V setting on S5/S6 for A*/CLK, B*/GT, Z* and IN.
If WB is lit, check the affected differential encoder supply, A/B/Z pairs and connector. Check a single-ended line by measuring its signal because WB monitors differential signals.
If counts drop at higher speeds, check cable length, capacitance and the signal level at the card input first. Apply the frequency limit for the installed cable length.
If position referencing fails, put the machine in safe test conditions and trace the IN precontact and Z pulse separately. If counting fails to start, check the GT gate together with CLK.
If a D1 or D2 LED is lit and the load stays off, check the output group’s external 24 V supply and D+/D− wiring. Isolate power before checking the output fuse.
Siemens PDF documents
+ IP 240 manual – 6ES5 998-0TB22, Edition 03 (EN)
+ 6ES5 240-1AA12 replacement pages – Edition 03 (EN)
+ SIMATIC S5 shared PDF archive
Related topics
+ IP 240 6ES5 240-1AA21 version
+ IP 240 6ES5 240-5AA11 configuration software