IMDHMIControls LibraryShop main store

Selection guide

Selecting a PROFIBUS DP to CANopen gateway for S7-400 drives

Industrial networks Published 8 min read By IMDHMI controls team

Short answer

A mapped PROFIBUS DP to CANopen gateway exchanges a configured process image, not raw CAN frames the S7-400 builds. Select it on whether the gateway performs CANopen startup and node management for the drives, whether its PDO mapping covers the drive command and status objects, and whether it supports the consistent DP transfers SFC 14 and SFC 15 require. The 488-byte and 320-byte exchange figures on the shortlisted units decide only the byte headroom, not capability.

On this page
  1. What a DP to CANopen gateway actually exchanges
  2. The CANopen services that decide the selection
  3. Selection criteria and what each decides
  4. Consistent data access from the S7-400
  5. Worked example: sizing the DP exchange area for two CANopen drives
  6. Commissioning and failure behavior
  7. The decision
  8. Questions asked

Select the PROFIBUS DP to CANopen gateway that runs the CANopen network itself: it must perform NMT startup and node supervision for the drives, map the drives' command and status objects into fixed PDOs, and transfer each command record consistently into the S7-400 process image. The two units on your shortlist report different exchange capacities, and at two drives that difference decides nothing; both figures exceed the requirement by more than an order of magnitude, so capability, not byte count, separates them. A mapped gateway exchanges a configured process image, so the PLC program never constructs raw CAN frames. Buy the candidate that documents the CANopen master role, mapping coverage for your drive objects and consistent record lengths at least as wide as your drive telegrams.

What a DP to CANopen gateway actually exchanges #

A mapping gateway works as an interpreter between the two networks, not as a pipe of raw CAN traffic. The S7-400 writes command fields into its DP output area; the gateway moves those bytes into the configured CANopen process messages on its CAN side. Data received from the drives lands in the gateway's CAN input buffers and the gateway places them into the DP input area, where the CPU reads them like any other slave data. The gateway handles CAN framing, arbitration, bit timing and protocol processing. The PLC handles only the meaning of the mapped fields: control words, references, status words, actual values and validity flags.

So the instinct to build a CAN telegram in the DP output area and decode one in the input area is wrong for this class of device. The DP interface is preformatted: the module layout you configure defines which bytes hold which field, and both sides treat the shared area as plain process data. Only a message-oriented gateway would push protocol construction into the PLC, and you should reject that interface class here. The same division of work applies on other controllers; the approach in running CiA 402 CANopen drives from an S7-1500 through a gateway transfers directly to an S7-400 installation.

The CANopen services that decide the selection #

CANopen is specified in CiA DS 301, which defines the object dictionary, the service data objects, the process data objects and network management. Four points from that profile matter when you compare gateways:

  • Network management (NMT) runs as master and slaves. One node commands the communication state of the others, which moves through initialization, then pre-operational, then operational or stopped. Only in the operational state does a node exchange PDOs. Establish in writing which device is the NMT master: a DP slave port alone says nothing about whether the gateway can start and supervise your drives.
  • Process data objects (PDOs) carry the cyclic command and status data. Their mapping, meaning which object dictionary entries ride in which byte of the PDO, is set by SDO writes to the mapping entries, normally done once by the gateway's configuration tool rather than by PLC code.
  • Service data objects (SDOs) give read and write access to the object dictionary for configuration and diagnostics, so check whether the SDO channel is available from the gateway tool, from the PLC, or both.
  • A drive reaching the NMT operational state is not a running drive. The CiA 402 state machine inside the drive still needs its own enable sequence, and the command source must be switched from the terminals to the network before mapped commands do anything.

Selection criteria and what each decides #

Selection item What to verify What it decides
CANopen role The gateway, not the PLC, performs NMT startup, node management and supervision of the drives Whether the drives reach the operational state at all
PDO mapping The configuration tool can map the drive's command and status objects into fixed-length PDOs Which drive functions the PLC can reach cyclically, including diagnostics
DP data consistency Documented consistent record lengths per module, accessible with SFC 14 and SFC 15 Whether a control word and its reference arrive as one snapshot
Parameter access An SDO channel from the gateway tool or the PLC Commissioning and runtime diagnostics without disturbing cyclic traffic
Exchange capacity One shortlisted unit documents 488 bytes, the other 320 bytes; confirm whether each figure is combined, per direction, or reduced by module allocation Headroom for drive count and telegram width; nothing else
Failure behavior Output state on DP loss, on CANopen node loss and on restart Which interlocks and validity checks the PLC program must add
Mounting format Stand-alone DP slave or an ET 200S module, with station compatibility confirmed Cabinet layout; never a substitute for a missing function

Treat the two capacity figures as reported values from the vendor documentation, and get the vendor's definition of each before comparing them. Count the allocated interface length, not the useful payload: module allocation and alignment can consume bytes that the mapping sheet does not show. Neither a larger buffer nor a convenient mounting arrangement compensates for missing CANopen management functions.

Consistent data access from the S7-400 #

A drive command record is a multi-byte set that must arrive as one snapshot; a control word from one transmission cycle next to a reference from another is worse than either alone. Siemens documents SFC 14 "DPRD_DAT" to read a DP standard slave's data consistently and SFC 15 "DPWR_DAT" to write it consistently, instead of direct access to the process image. The decision: configure the gateway's DP modules so each drive record sits inside one module, and access any record wider than 4 bytes through SFC 14 and SFC 15 in the program. Check the documented maximum consistent length per module against your telegram widths before purchase, because that limit, not the total exchange capacity, is what a wide diagnostic telegram can hit first.

Also plan for staleness. After a connection loss, the input image can keep showing plausible drive values. Read the gateway's communication-valid status and check data freshness in the program rather than trusting the numerical value. Reading drive fault and alarm codes over the DP link, as in the MICROMASTER 440 PROFIBUS fault code mapping article, only works when the status bytes themselves are known fresh.

Worked example: sizing the DP exchange area for two CANopen drives #

Inputs: two drives, as in this installation. Per drive, an illustrative command record of 4 bytes and a status record of 4 bytes, the width of a 16-bit control or status word plus a 16-bit reference or actual value; take the real widths from your drive's process-data description. Gateway control and status fields, illustrative at 2 bytes per direction from the module layout.

Rule: required bytes per direction equals the sum of mapped drive fields plus gateway fields in that direction, then compare the per-direction total against the documented per-direction capacity.

Arithmetic, output direction: 2 drives x 4 bytes = 8 bytes of commands, plus 2 bytes of gateway control = 10 bytes. Input direction: 8 bytes of status plus 2 bytes of gateway status = 10 bytes. Total exchange area = 10 + 10 = 20 bytes.

Result: 10 bytes per direction, 20 bytes total. Both documented capacities, the 488-byte and the 320-byte figure, exceed 10 bytes per direction many times over even under the worst reading of their definitions, so capacity does not discriminate between the two candidates at this scale. The threshold where it would: once the per-direction requirement approaches the smaller documented capacity, 320 bytes, the smaller unit binds first. At this requirement that means roughly thirty drives of this size, which is far past what one CANopen segment should carry in any case. For this installation the selection therefore falls on the CANopen master role, mapping coverage and consistent record lengths, and the byte figures only confirm headroom.

Commissioning and failure behavior #

Build the mapping sheet before configuring either network. For every field, record source, destination, length, byte order, signedness, engineering units, scaling and validity condition, and state input and output directions relative to the PLC so drive transmit and receive data cannot be reversed. Then walk the chain in order: DP configuration and GSD module layout, CANopen node IDs and bus settings with termination at both cable ends as the gateway and drive manuals require, PDO mapping, drive command source, drive enable sequence. A healthy PROFIBUS connection proves only the first links of that chain. For the cabling and termination faults that appear as intermittent DP drops after the gateway is installed, the checks in the S7-400 intermittent PROFIBUS fault article apply unchanged.

One safety note: the network path replaces the start, reference and diagnostic wiring, never the safety function. Keep the drive's hardwired safe-stop path, contactor or drive-integrated STO, independent of the gateway, the DP network and the PLC program, and verify it with the drives in network control.

The decision #

For a two-drive installation moving off discrete I/O: buy the gateway documented as a CANopen master that starts and supervises the drives, whose tool maps your drive's command and status objects into fixed PDOs, and whose DP modules support consistent transfers at least as wide as your records, read with SFC 14 and written with SFC 15. At 20 bytes total, either shortlisted capacity covers the load, so exchange capacity breaks no tie here; it only becomes the deciding number if the drive count grows toward the smaller figure. Reject any candidate that requires the PLC to construct CAN frames, and take the ET 200S-mountable option only when your station format demands it, after an explicit compatibility check against that station's interface and engineering configuration.

Questions asked

Do I have to build the CANopen telegram inside the DP output area?

Not with a mapping gateway. Its configuration tool maps the drive objects into fixed PDOs, and the PLC only writes and reads the process image; CAN framing, arbitration and network management stay inside the gateway. A message-oriented interface would put request-and-response logic in the PLC program, and that interface class is the wrong choice for drive control on an S7-400.

What happens to the drives when the PROFIBUS link drops?

Whatever the gateway's documented failure mode says: some units hold the last outputs, some drive them to a defined state, some release them. Read the DP-loss, CANopen-node-loss and restart behaviors in the manual before purchase, then add a communication-valid bit and a PLC-side command inhibit so a drive never runs on stale data.

Does the gateway need a GSD file on the S7-400 project?

Yes. The gateway appears on PROFIBUS DP as a standard slave configured from its GSD file, and the module layout in that file defines the input and output byte blocks. Keep the module layout in the PLC hardware configuration identical to the layout configured in the gateway tool, because a mismatch appears as shifted or missing process data rather than an obvious error.

Do two drives need two gateways?

No. One gateway serves both drives on one CANopen segment; unique node IDs distinguish them and each drive keeps its own mapped fields inside the shared process image. Size the exchange area for the total of both drives plus any gateway control and status fields, and confirm the gateway can supervise both nodes independently so one failed drive does not take the other offline.

Keep reading

  • How-to

    Configuring S7-300 PROFIBUS control for an MM420 drive

    Hardware configuration alone moves no drive data. An S7-300 reads and writes an MM420's cyclic PROFIBUS area with SFC14 and SFC15 whenever the consistent area is too large for direct access, maps every control-word and status-word bit to the configured telegram, and switches the drive's command and setpoint sources to the fieldbus before the first enable. Judge drive readiness from the status word, not from a completed bus transfer.

    Drives and motion

  • Troubleshooting

    Control a Modbus drive from a PLC over PROFIBUS DP

    Yes — a PROFIBUS DP master controls a Modbus-only drive through a protocol-converting gateway, and the gateway, not the drive, is the DP slave. It works when the gateway runs DP slave plus Modbus RTU master, the drive is in Modbus mode with fieldbus command source, the GSD module lengths match the mapping, the register map is byte-order tested, and the PLC sequences the control word with a defined bus-loss stop.

    Industrial networks

  • How-to

    Connect an S7-300 to a DCM drive over PROFIBUS or PROFINET

    Yes: an S7-300 controls a DCM over PROFIBUS or PROFINET by installing the drive's GSD or GSDML description, selecting the same supported telegram on both sides — standard telegram 1 (PZD-2/2) is the safe first choice — exchanging the 4-byte records with SFC14 and SFC15, and trusting the link only once cyclic exchange runs fault-free. A clean link still will not move the motor while the drive's command source is local or an enable is missing.

    Drives and motion