6ES5 521-8MB12

Siemens 6ES5 521-8MB12 — CP 521 BASIC serial communications processor

Siemens 6ES5 521-8MB12 is the CP 521 BASIC communications processor for S5-90U, S5-95U and S5-100U systems. This Siemens S5 communication module has its own processor and BASIC interpreter for serial data exchange, data processing and printer/terminal applications.

Assess it separately from 6ES5 521-8MA21 and 6ES5 521-8MA22 CP 521 SI. The BASIC application associated with the 8MB12, fitted memory and startup settings are part of a replacement plan.

CPU compatibility and rack position

Check the complete S5 CPU number and revision. The CP manual excludes 6ES5 100-8MA01 CPU 100 versions up to and including revision 5. Early processors such as 6ES5 103-8MA01 also have slot restrictions.

The module normally uses slots 0–7; some early CPU 102/103 revisions cannot use slot 7. Compare the rack layout with the manual for the installed CPU. Set the bus unit’s mechanical coding element to 6 before fitting the CP 521 BASIC.

Serial interfaces and wiring

There is one bidirectional RS-232C/V.24 or 20 mA TTY interface and one unidirectional RS-232C/V.24 output. The latter serves applications such as printer output. Signals share a 25-pin D-sub connection; prepare the cable and connector from the pin diagram for the interface used.

The transmission range is 110–9600 baud. Record speed, character format and handshake settings for both ends. For TTY, verify active/passive operation and the current source from the wiring diagram. RS-232 and TTY require different electrical arrangements.

S5-100U addressing: eight input and eight output bytes

The CP occupies eight input bytes and eight output bytes in the analog-module address area. For S5-100U, the starting address is 64 + 8 × slot number. Examples are slot 0: 64–71, slot 3: 88–95, and slot 7: 120–127.

Byte numbers in the manual are relative to the module’s starting address. Thus byte 2 in slot 3 is CPU address 90. This area carries communication data and requests; it does not represent physical analog measurement channels.

BASIC application, COM 521 and memory

COM 521 BASIC supports BASIC program editing, transfer and archiving. Preserve the CP’s BASIC files separately from the PLC programming project. A STEP 5 backup of the PLC CPU does not establish that the CP application has also been saved.

Siemens’ ST 50 catalogue specifies 32 KB internal RAM. External memory submodules have their own types and capacities, including 6ES5 375-0LC31 — 8 KB EEPROM, 6ES5 375-0LC41 — 16 KB EEPROM and 6ES5 375-0LD31 — 32 KB RAM. Verify the fitted memory and its contents separately from the label.

The module has battery-backed RAM and a real-time clock. Check the BAT indication, clock data and program behaviour after a power interruption. Do not assume RAM contents remain valid after a battery or clock failure; secure a readable backup before intervention.

CPU data exchange and application testing

Trace CPU/CP requests and responses through the application. The conversion of a digital input event into a serial message, and the effect of the reply on digital output conditions, should be identifiable in the machine project. Serial baud rate is not the same as the effective rate of data exchange through PLC cycles.

For PLC debugging, record transmitted and received data, CP status bytes and the connected device’s response together. Putting the CPU in STOP does not automatically stop the BASIC application. Check CPU and CP operating states separately.

Editor’s note

When buying used, the MB12 identity and BASIC program matter together. In S5 maintenance, fitting a similar-looking SI module does not complete the replacement. Record memory, application and connection settings before removing the original CP.

A saved CPU project is not a complete CP backup. Preserve the BASIC source and, where available, a full memory-submodule dump. Confirm that the saved files can actually be read.

Do not connect a ready-made serial cable solely because the plug has 25 pins. Check data, handshake and TTY supply connections against the drawing. Record the device type at each end.

If BAT is indicated, preserve the contents before relying on a battery replacement. Check the clock and which application starts after power-up. Do not insert or remove the memory submodule under power.

Do not assume the CP is inactive because the CPU is in STOP. Its BASIC application may continue on the serial side. At the end of testing, check the CPU, CP and connected device using their own indications.

For used Siemens equipment, ask for more than flashing TxD/RxD lights. Send known data, obtain a reply and verify that it reaches the correct CPU address. Record completed tests separately from unused interfaces.

OtomasyonAVM resources and documentation

+ 6ES5 521-8MB12 model page · Second-hand Siemens S5 models · About Siemens S5 PLCs.

The CP 521 BASIC manual, S5-100U system manual and manufacturer catalogue are linked in the Siemens references below.

Related topics and equipment

+ 6ES5 521-8MA21 and 6ES5 521-8MA22: CP 521 SI versions for functional comparison. Do not assume direct replacement of a BASIC application.

+ 6ES5 375-0LC31 and 6ES5 375-0LD31: memory options with different types and capacities, to be selected against the software and retention requirements.

Browse SIMATIC S5

S5 communication modules · S5 memory submodules · S5 cables and connectors · SIMATIC S5 CPUs · Second-hand Siemens products

Siemens and external references

+ Siemens CP 521 BASIC Manual — 6ES5 998-0UW21, EWA 4NEB 812 6071-02a, English PDF. Chapters 1–3: scope and connection; Section 4.5: addressing; Chapters 5–6: BASIC and data exchange.

+ Siemens S5-100U System Manual — 6ES5 998-0UB23, English PDF. System layout, CPUs and function modules.

+ Siemens ST 50, 1998 — manufacturer catalogue, English PDF hosted by ACOMEE. Printed pages 2/70–2/71: CP 521 BASIC functions, memory and ordering information.