IMDHMIControls LibraryShop main store

Selection guide

S7-300 vs Q series IEC 61131-3 language support

PLC programming Published 7 min read

Short answer

Both platforms meet IEC 61131-3 once you buy the right toolchain: S7-GRAPH gives the S7-300 sequential function chart with function block calls from steps, and GX Works3 gives the Q series the SFC nesting that IEC Developer V5.0 lacked. With languages equal, integrated motion decides: one QD77MS16 module synchronizes 16 axes over SSCNET III/H at a 0.222 ms cycle, while the S7-300's 4-axis FM 357-2 is discontinued. Choose Q with GX Works3 for new multi-axis machines; stay with Siemens only inside an installed S7-300 base.

On this page
  1. What IEC 61131-3 requires
  2. Language support, side by side
  3. SFC depth on the S7-300: S7-GRAPH
  4. SFC and function blocks on the Q series
  5. The servo integration gap
  6. Worked case: 12 synchronized axes on a 0.5 ms sync budget
  7. Lifecycle: new machine or installed base
  8. Operator interface without the vendor panel
  9. The decision, case by case
  10. Questions asked

Pick by toolchain, not by the CPU. On IEC 61131-3 languages these two platforms tie once the right software is on the desk: the S7-300 needs the S7-GRAPH option for sequential function chart, where steps call function blocks and conditions are written in LAD or FBD, while the Q series needs GX Works3, which delivers the SFC nesting that IEC Developer V5.0 could not. With the languages level, integrated motion decides it: one QD77MS16 module synchronizes 16 servo axes over SSCNET III/H at a 0.222 ms cycle, and the S7-300's 4-axis FM 357-2 motion module is discontinued. For a new multi-axis machine, take the Q series with GX Works3. Stay with the S7-300 only to extend machines that already run it, and drive motion over PROFINET IRT.

What IEC 61131-3 requires #

IEC 61131-3 sets the syntax and semantics of the five PLC languages — ladder diagram, function block diagram, structured text, instruction list and sequential function chart — and defines the function block as the reusable unit: an encapsulated block with a typed interface that you instantiate at each use rather than copy. Its SFC element exists to structure sequential behavior, with explicit support for synchronization and concurrency, so parallel branches must all complete before the sequence advances.

The standard does not police the parts that decide your day: whether one SFC can call another, whether a function block can be called from inside a step, and which languages you may write a transition in. Those are toolchain behavior, and they are where the S7-300 and the Q series genuinely differ.

Language support, side by side #

IEC 61131-3 element S7-300, STEP 7 with S7-GRAPH Q series, GX Works3
Ladder diagram Full LAD editor Full
Function block diagram Full, FB instances on instance DBs Full
Structured text SCL Full ST, same project as LD and FBD
Sequential function chart S7-GRAPH option, step and transition model SFC POUs, nestable
Instruction list STL, deprecated in TIA Portal from V17 Mnemonic list
FB called from an SFC step Yes, action of type CALL Yes in GX Works3, no in IEC Developer V5.0

Two details carry the table. Siemens ships SFC as the paid S7-GRAPH option rather than in the base package, and spells structured text SCL. Mitsubishi's caveat is a matter of software generation, and it is worth its own section.

SFC depth on the S7-300: S7-GRAPH #

S7-GRAPH is the sequential-function-chart package for the S7-300/400, sold as an option to STEP 7, with a long production history behind it. Its documented boundary is narrow but worth knowing before you design: conditions, the interlocks and transitions, are programmed in LAD or FBD only. When a transition needs math you would rather write in SCL, build the math as a function block, call the block from the step, and let the LAD transition test the block's outputs. Steps themselves call function blocks freely through an action of type CALL, so the encapsulation strategy works; it just routes through ladder on the way out. S7-GRAPH also exists inside TIA Portal for the newer Siemens CPUs, which matters for the lifecycle question below.

SFC and function blocks on the Q series #

The Q CPU's weakness was never the hardware; it was the software generation. IEC Developer V5.0 cannot call an SFC POU from another SFC POU, which breaks the master-chart-calls-phase-charts pattern that makes SFC worth using on a multi-station machine. GX Works3 fixes exactly that: SFC POUs nest, and full structured text sits in the same project as ladder and FBD. Function blocks declare their interface in VAR_INPUT, VAR_OUTPUT and VAR_IN_OUT sections, compile with type checking, and instantiate from any program, FB or SFC action block — the reuse model the standard intends. So the old memory that Mitsubishi cannot do IEC SFC is a version memory: order GX Works3 and it is settled.

The servo integration gap #

The S7-300's integrated-motion story has ended: the FM 357-2 positioning module handled 4 axes and is discontinued, so new S7-300 motion goes through SINAMICS drives on PROFINET IRT, whose isochronous cycle reaches 250 µs. The Q series takes the other architecture: the QD77MS16 simple motion module drives up to 16 axes on one card over SSCNET III/H, an optical network running 150 Mbps with a 0.222 ms synchronization cycle in fast-sync mode, and the synchronization is handled in the card hardware rather than in the CPU scan.

Both platforms expose motion as PLCopen function blocks, which keeps the motion logic portable: GX Works3 serves MC_MoveAbsolute, MC_Home and MC_GearIn against the QD77 modules, and the TIA side maps the same style of blocks onto its technology objects. If you are carrying older MR-J2S amplifiers onto a current SSCNET III/H controller, replacing MR-J2S amplifiers with a Q172DSCPU motion controller documents that conversion. One boundary to keep straight either way: synchronized servo motion is not a safety function, and safe stop belongs to the amplifier's safety circuit or a safety controller, not to the chart.

Worked case: 12 synchronized axes on a 0.5 ms sync budget #

Inputs, each with its unit and source:

  • 12 axes — the machine's axis count in this example, an illustrative requirement, not a catalog value.
  • 0.5 ms — the synchronization cycle the machine specification sets, also an example input.
  • 16 axes per QD77MS16 — documented module capacity.
  • 0.222 ms — documented SSCNET III/H fast-sync cycle.
  • 250 µs, that is 0.250 ms — documented PROFINET IRT isochronous cycle.
  • 4 axes — documented FM 357-2 capacity, discontinued.

The rule in words: divide the axis count by the per-module capacity and round up for the module count; compare the network cycle against the specification; the margin is the specification minus the cycle.

Mitsubishi route:

12 axes ÷ 16 axes per module = 0.75, rounded up = 1 QD77MS16 module. Cycle check: 0.222 ms against a 0.5 ms specification leaves 0.5 − 0.222 = 0.278 ms of margin. Pass.

Siemens routes:

Classic S7-300: 12 axes ÷ 4 axes per FM 357-2 = 3 modules, and the module is discontinued, so this route is closed for a new design. Current Siemens route, SINAMICS on PROFINET IRT: 12 drives on the IRT segment, 0.250 ms against the same 0.5 ms specification leaves 0.5 − 0.250 = 0.250 ms of margin. Pass.

The two network cycles sit 0.250 − 0.222 = 0.028 ms apart, so at a 0.5 ms specification the speed difference is irrelevant; what differs is integration, one motion module and optical hardware sync on the Q side versus twelve drives and an engineered IRT schedule on the Siemens side. Decision: both platforms pass, and the Q route does it with a single module in the rack, which is why it wins this case. Above 16 synchronized axes, budget the second QD77MS module from day one.

Lifecycle: new machine or installed base #

For a machine specified today, the S7-300 is an installed-base platform: its classic CPUs are phased out of the current Siemens lineup, and the honest new-design comparison is the Q series against the S7-1500 in TIA Portal, where SCL carries structured text and S7-GRAPH carries SFC. If you want Siemens for a new machine, choosing an S7 PLC family for a machine is the current-generation decision to make.

The Q series remains a current MELSEC platform with the iQ-R class above it; selecting a Mitsubishi MELSEC PLC family for your application places Q against iQ-R and iQ-F by application. Extending an existing S7-300 machine is the one case for staying on it: buy the S7-GRAPH option for the SFC work and take the PROFINET route to the drives. Once a Q rack is configured, how Q series PLC addressing works for I/O and analog modules fixes where each of your signals lands.

Operator interface without the vendor panel #

Operator-panel cost was the original reason to look past the vendors' own HMI families, and the integration question is purely protocol now. A third-party terminal that speaks Mitsubishi MC protocol over Ethernet, with the 3E frame for a direct Q CPU connection, and Siemens S7 communication covers both CPUs; Weintek's cMT line is one family documented with both. If you would rather drop terminals entirely and run PC-based visualization at the machine, the hardware for that is an industrial panel PC, and choosing HMI software for a new control system covers the criteria that decision turns on.

The decision, case by case #

  • New machine, sequence-heavy logic, four or more coordinated axes: Q CPU with GX Works3, one QD77MS16 per 16 axes, SSCNET III/H amplifiers, and the function block library written once in ST and ladder.
  • New machine in a plant standardized on PROFINET: Siemens, but the current generation, meaning S7-1500 with SCL, S7-GRAPH and SINAMICS on IRT. Do not restart an S7-300 line for it.
  • Existing S7-300 machines to extend: stay on the platform, add the S7-GRAPH option, and reach the drives over PROFINET.
  • Motion logic you want to keep portable: PLCopen function blocks on either side; they are the one layer that moves between the vendors.

The tie on languages is real, and the motion difference is decisive — that is the whole selection.

Questions asked

Can I nest a function block inside another function block?

Yes on both. On the S7-300, declare the called FB as a static variable in the parent's interface and the instance data nests inside the parent's instance DB. In GX Works3, an FB instantiates in any program, FB or SFC action block, so the parent-child chain builds the same way. Write the child once and instantiate it everywhere.

Which Mitsubishi software do I order for proper SFC?

GX Works3 for a Q CPU. IEC Developer V5.0 is the release with the SFC limitation, and GX Works3 is the release that resolves SFC nesting and full structured text. Standardize the whole plant on GX Works3 so every chart and every function block opens in one package.

How far does each servo family scale in power?

The MR-J4 amplifier line reaches 55 kW per axis, with the FR-A800 inverter range above that for non-servo loads. On the Siemens side, SINAMICS S120 booksize drives reach 250 kW per axis. For a machine of coordinated mid-size axes it never matters; it decides only when one or two very large axes dominate the machine.

Will a third-party terminal talk to both PLCs?

Yes, if its driver list covers Mitsubishi MC protocol with the 3E frame for a direct Q CPU connection and Siemens S7 communication over Ethernet. Weintek's cMT series carries both. The Beijer terminals once rebranded for Mitsubishi have since become the iX panel series, so verify the current model's driver sheet before standardizing on it.

Is instruction list still worth using?

Treat it as read-only legacy. The standard defines it and both vendors implemented it, but Siemens deprecated STL in TIA Portal from V17 onward, which signals where the ecosystem is heading. Write new logic in ladder, FBD or structured text and keep instruction list only for maintaining programs already written in it.

Keep reading

  • Troubleshooting

    When a CODESYS TON works in structured text but not ladder

    The structured text routine counts because its four statements run in sequence inside one scan; the ladder version fails when the reset network clears Timer.Q before the addition samples it, or an unconditional reset restarts the timer every cycle. Put the call, the Q test, the addition and the reset of the same TON instance in one ladder network, left to right in that order, and it counts exactly one B per interval.

    PLC programming

  • How-to

    Build a reusable VFD function block in Sysmac Studio

    Yes: define one function block and instantiate it once per 3G3M1 inverter. IEC 61131-3 gives every instance its own data, so pump logic stays identical while each drive keeps separate state. Before reuse, verify the configured EtherCAT device matches the installed inverter, read the mapped process data, and check the Sysmac Library covers your device before writing your own block.

    PLC programming

  • Selection guide

    How to choose a Delta DVP PLC family for an application

    Match the machine to the family by scope: the SS2 is the fast 14-point base for small standalone stations, the ES2 line is the default for mainstream machines, SA2 and SX2 buy performance and high-speed headroom, and the SV2 is the integrated-motion family — any servo or stepper axis under PLC control lands there. Replace installed units like-for-like, and pull exact point counts, program capacity and module support from Delta's current catalog before ordering.

    PLC programming