6ES7312-5BF04-0AB0 is the compact CPU 312C of the SIMATIC S7-300 range, hardware functional status 01, firmware V3.3. Unlike the standard CPUs, it integrates the CPU, a 24 V DC power supply, digital I/O and technology functions in a single 40 mm wide module: the front connector provides 10 digital inputs and 6 transistor outputs at 24 V DC, plus two high-speed counters up to 10 kHz. For machines with a modest point count, it often runs with no signal modules at all — saving both wiring and cabinet space.
The CPU offers 64 KB of integrated work memory (not expandable) and 64 KB of retentive memory. Program and data are held on a plug-in Micro Memory Card (MMC, max. 8 MB) — battery-free, maintenance-free and fully retained on power loss. Beyond counting, it supports two frequency-measurement channels (up to 10 kHz), two period-measurement channels (up to 1 kHz), two PWM outputs (2.5 kHz) and alarm inputs on all digital inputs, so 24 V incremental encoders, control valves and heating elements can be wired directly.
On the communication side, an on-board MPI port (RS-485, 187.5 kbit/s) connects directly to a programming device, HMI or an S7-300/400 master. Together with the STEP 7 PID function blocks (FB 41/42/43) it can also handle closed-loop temperature and pressure control. Typical applications include packaging and labeling machines, conveyor and sorting lines, small pump stations, HVAC units and spare-part replacement on installed S7-300 lines.
I/O on board — 10 DI / 6 DO built into the CPU, so small machines need no signal module: one slot, one terminal set and one wiring job less.
Integrated technology — two 10 kHz counters, two frequency and two period measurement channels, two PWM outputs: shaft speed, flow counting and valve or heater control without extra hardware.
64 KB work memory — twice the standard CPU 312 (32 KB), roughly 21K instructions, enough for mid-sized programs, recipes and data records.
Battery-free — program and retentive data live on the MMC, so there is no backup battery to age out and no battery-driven downtime.
Deterministic and fast — 0.1 μs per bit instruction with a stable scan cycle; all digital inputs can act as alarm inputs to trigger interrupt responses in minimum time.
Ecosystem ready — compatible with the full S7-300 SM / FM / CP / IM range: up to 8 modules per rack, plus up to 3 expansion racks via IM 360/361.
Parameter | Specification |
|---|---|
General | |
Order number | 6ES7312-5BF04-0AB0 |
Product family / CPU type | SIMATIC S7-300, CPU 312C (compact) |
Hardware status / firmware | 01 / V3.3 |
Engineering software | STEP 7 V5.5 + SP1 or higher; or V5.3 + SP2 or higher with HSP 203 |
Memory | |
Work memory | 64 KB integrated, not expandable |
Retentive memory | 64 KB (for retentive data blocks) |
Load memory | Plug-in Micro Memory Card (MMC), max. 8 MB; data retention ≥ 10 years |
Backup | Battery-free; program and data secured by the MMC |
Performance | |
Execution time | Bit 0.1 μs | word 0.24 μs | fixed-point 0.32 μs | floating-point 1.1 μs |
Blocks / block size | Up to 1024 blocks in total (DB / FB / FC), max. 64 KB each |
Nesting depth | 16 levels per priority class, plus 4 within an error OB |
S7 counters | 256, counting range 0 – 999; IEC counters (SFB) limited only by memory |
S7 timers | 256, timing range 10 ms – 9990 s |
Integrated I/O | |
Integrated digital inputs | 10 channels, 24 V DC |
Integrated digital outputs | 6 channels, 24 V DC / 0.5 A, transistor |
Default I/O addressing | Input IB 124, output QB 124 (configurable in hardware configuration) |
Integrated analog I/O | None — add SM 331 / SM 332 modules |
Max. digital I/O | 256 DI / 256 DO |
Max. analog I/O | 64 AI / 64 AO |
Technology functions | |
High-speed counters | 2 channels, up to 10 kHz, with direction comparator; 24 V incremental encoders connect directly |
Frequency measurement | 2 channels, up to 10 kHz |
Period measurement | 2 channels, up to 1 kHz |
Pulse-width modulation | 2 outputs, 2.5 kHz sampling frequency, duty cycle modifiable at runtime |
Alarm inputs | All digital inputs usable as alarm inputs |
Communication | |
Interface | 1 × RS-485 (MPI, 9-pin Sub-D), 187.5 kbit/s |
Max. connections | 6 (PG / OP / S7 basic communication) |
Communication functions | PG/OP communication, global data communication, S7 basic communication, S7 communication (server) |
On-board DP / Ethernet | None — add CP 342-5 (PROFIBUS DP) or CP 343-1 (Ethernet / PROFINET) |
Electrical | |
Supply voltage | 24 V DC rated (permissible 19.2 – 28.8 V) |
Current consumption | 570 mA rated, approx. 90 mA idle, 5 A inrush |
Power loss | Typ. 8 W |
Power failure bridging | 5 ms, repetition rate ≥ 1 s |
Mechanical & environmental | |
Front connector | 1 × 40-pole (ordered separately, not included) |
Dimensions (W × H × D) | 40 × 125 × 130 mm, single slot width |
Net weight | Approx. 0.458 kg |
Protection / ambient temperature | IP20 | 0 °C to +60 °C |
Mounting | 35 mm DIN rail with bus connector |
Origin / EAN | Germany | 4025515079064 |
1Is a Micro Memory Card mandatory?
Yes. The CPU 312C has no integral load memory, so without a card the program cannot be downloaded and the CPU will not start. Use a SIMATIC MMC (max. 8 MB): program, symbols, comments and recipe data all reside on it. When replacing a unit, simply move the existing card to the new CPU.
2How does the CPU 312C differ from the standard CPU 312?
Three differences: (1) the 312C has 10 DI / 6 DO integrated, the standard 312 has none; (2) work memory is 64 KB versus 32 KB; (3) the 312C adds two 10 kHz counters and other technology functions, and requires a 40-pole front connector. Where the point count is small, the 312C saves a signal module.
3Do the integrated I/O occupy rack slots? How far can the system expand?
No. Integrated I/O is brought out on the 40-pole front connector, leaving all rack slots free. A single rack takes up to 8 signal, function or communication modules, and up to 3 expansion racks can be added via IM 360/361. The system maximum is 256 DI / 256 DO and 64 AI / 64 AO.
4Does the 312C include analog I/O?
No. The 312C provides digital I/O only; for analog signals add SM 331 (AI) / SM 332 (AO) modules. If integrated analog I/O is required, choose the CPU 313C (4 AI / 2 AO) or the CPU 314C family.
5Does it support PROFIBUS DP or PROFINET?
There is no on-board DP or Ethernet — this model provides MPI only. Add a CP 342-5 for PROFIBUS DP, or a CP 343-1 for Ethernet / PROFINET. If a DP master is required from the outset, consider the CPU 313C-2DP (6ES7313-6CF03-0AB0).
6Can the counters and PWM be used for positioning?
Counting, speed measurement, period measurement and PWM modulation are supported, but not pulse-output positioning — there is no positioning-axis function. Counters accept 24 V incremental encoders for shaft speed or throughput; PWM outputs suit control valves and heaters. Closed-loop control is available through the STEP 7 PID blocks FB 41 / FB 42 / FB 43. For single-axis positioning, choose the CPU 314C family.
7Is it a direct replacement for the earlier 6ES7312-5BF03-0AB0?
Yes. The 5BF04 is the successor to the 5BF03 with identical I/O configuration and wiring, and work memory increased to 64 KB. Before changeout, verify that your STEP 7 version supports the hardware (V5.5 + SP1 or higher, or V5.3 + SP2 with HSP 203), keep the original MMC content, check the front-connector type and terminal numbering, and record the MPI address and baud rate before downloading.
8What is the lifecycle status?
Siemens has announced phase-out (PM400) for this article effective 1 October 2023; units on the market are mainly stock and spare parts. It remains a valid replacement for installed S7-300 systems, but new projects should evaluate migration to the S7-1200 / S7-1500 platform.