IMDHMIControls LibraryShop main store

Explainer

Danfoss VLT5000 DeviceNet control words from a PLC-5

Industrial networks Published 6 min read

Short answer

The VLT5000 is not driven in a separate hexadecimal language: the values in the PLC-5 data table are the bit fields of the drive's selected DeviceNet I/O assembly. Decode the control word and reference from the assembly definition, map them through the scanner scan list, and set the drive's command source to the network before writing run logic.

On this page
  1. What the payload actually contains
  2. How the fields reach the PLC-5 data table
  3. Decoding the control word
  4. The reference field and its scaling
  5. Setting the command source on the drive
  6. Worked example: a 50 percent speed reference for one VLT5000
  7. Putting the chain together
  8. Questions asked

The hexadecimal values you see in the PLC-5 data table when controlling a Danfoss VLT5000 over DeviceNet are not a special Danfoss language. They are the plain bits of the I/O assembly that the drive's DeviceNet option publishes and consumes, mapped through your scanner's scan list. Read the assembly definition, decode each field bit by bit, map those fields to specific data-table words, and set the drive's command source to the network; then the run command is just logic setting individual bits in one word.

What the payload actually contains #

A DeviceNet connection to a VLT5000 exchanges cyclic I/O whose layout is defined by an assembly: which fields are present, their order and their width. With the Danfoss fieldbus profile selected, the produced and consumed data carries the control word, the main reference, the status word and the main actual value, each a 16-bit word. Danfoss documents this profile in the drive's DeviceNet manual and in the option manual for the fieldbus interface, and the drive supports both that profile and a PROFIdrive-style profile; the parameter 512 telegram profile setting chooses which one the control and status words follow.

That selection matters. The same 16 bits mean different things under the two profiles, so the first check is which profile the drive is set to, and the second is that the scanner connection's byte counts match the assembly definition. A correct node address with the wrong payload leaves the drive visible on the network but unusable for cyclic control.

How the fields reach the PLC-5 data table #

On the PLC-5 side, a DeviceNet scanner module decides what is exchanged through scan list configuration and the mapping functions of the configuration software. The scan list assigns each drive's produced data to input words and each consumed word to output words at specific data-table addresses. Directions are relative to the scanner: scanner outputs travel toward the drive, scanner inputs return drive status.

Build a mapping worksheet before writing logic. For each field record:

  • the PLC data-table address and width,
  • the direction (command toward the drive or status back from it),
  • the field's meaning from the assembly definition,
  • the scaling and representation.

Verify the map online, not just offline: an established I/O connection in the scanner diagnostics proves cyclic data is being exchanged, while an offline project only shows what you intended. Discovery of both nodes proves a device can respond; it does not prove the payload matches.

Decoding the control word #

The control word is one 16-bit word whose bits request state transitions: start, coast, quick stop, ramp selection, jog and reset. Which bit carries which meaning, and which bit combinations are legal, come from the assembly and profile definition in the drive's DeviceNet manual — the same field-by-field reading you would apply to the status word's ready, running, warning and fault indications.

In the PLC-5, write the control word from individual rungs rather than one unexplained constant. Each bit maps to one condition of the machine: a start permissive sets the start bit, a fault acknowledgement pulse sets the reset bit, and the finished word is what the scanner transmits. Never copy a hexadecimal constant from a manual example into run logic without decoding which bits it requests. If the drive ignores writes and the same arrangement worked on a different bus, the profile and command-source chain behaves the same way on DeviceNet as the ramp fault described in VLT5000 PROFIBUS PPO 8 ramp-not-starting fix — the data arriving is only half the chain.

The reference field and its scaling #

The main reference is a separate word in the assembly, and under the Danfoss profile it is scaled as a percentage of the drive's configured reference range: the word runs 0 to 4000 hex for 0 to 100 percent. That is a scaling convention, not a speed in rpm or hertz; the actual engineering value follows from the drive's reference minimum and maximum parameters. How you generate that percentage — from an analog input, a potentiometer station or a ratio between drives — is a separate design decision, covered for this drive family in VLT5000 potentiometer selection and master/slave speed ratio.

Setting the command source on the drive #

A healthy DeviceNet connection can coexist with a drive that ignores the PLC. The VLT5000 must take its start commands and its reference from the bus: the drive's configuration selects the command source and reference source, and any local override, active fault or external inhibit stops the command path after the network transfer has already succeeded. Set both sources to the fieldbus, clear faults through the mapped status and reset bit, and confirm the machine's safety permissives at the drive's hardware inputs — they stay in the circuit regardless of the network. Compare the word your logic assembled against the drive's received-data diagnostic where the option provides one, so you can see whether the bits that left the scanner are the bits the drive received.

Worked example: a 50 percent speed reference for one VLT5000 #

Inputs, and where each comes from: the reference scaling rule, 0 to 4000 hex for 0 to 100 percent, is documented in Danfoss's fieldbus application note for the VLT 5000; the percentage target of 50 percent is this example's own case; the drive's reference minimum and maximum parameters define what the percentage means in engineering units.

The rule in words: under the Danfoss profile the reference word is linear, so the transmitted value equals the percentage multiplied by the full-scale word value of 4000 hex (16384 decimal) and divided by 100.

The arithmetic:

full scale = 4000 hex = 16384
target = 50 %
reference = 16384 * 50 / 100 = 8192 decimal
8192 decimal = 2000 hex

The result: the PLC-5 writes the value 2000 hex into the reference word mapped by the scan list, alongside the assembled control word.

The decision: any reference percentage converts the same way — percent times 16384 divided by 100. If the drive instead runs the PROFIdrive-style profile selected by the telegram profile parameter, the scaling differs, so confirm the profile before trusting a converted constant. Above this, at the machine where you also want visualization or logging of that reference and actual value, the computer that displays them sits beside the controller in the cabinet as an industrial mini PC for the gateway or logger.

Putting the chain together #

The full path for every command is: logic assembles the bits in a data-table word, the scanner transmits it as part of the configured assembly, the drive's DeviceNet option receives it, and the drive's selected command source lets it act. The path back is the status word and actual value through the scanner's input map. Configure the scan list online, decode every field from the installed profile's documentation, scale the reference with the profile's own rule, and set the command and reference sources to the network. Once those four steps hold, there is no hex language left to learn — only bits and scaling you can check field by field.

One safety note: the drive's hardware safety interlocks and stop categories remain valid independently of the network; DeviceNet control words are an operating interface, never a substitute for the machine's documented safety function.

Questions asked

Why does the drive manual show hexadecimal values for the control word?

Hexadecimal is only a display format. Sixteen bits occupy one word, and a hex display shows those sixteen bits as four characters. The meaning of each bit comes from the I/O assembly definition in the drive's DeviceNet manual, not from the number system. Decode the bits with the assembly table and build the control word in the PLC logic from individual conditions, never from a copied constant.

How do I convert a speed percentage into the reference word the VLT5000 expects?

With the Danfoss fieldbus profile the reference word spans 0 to 4000 hex, which corresponds to 0 to 100 percent of the reference chosen in the drive parameters. Multiply the percentage by 16384 and divide by 100. For a 50 percent reference that is 8192, written as 2000 hex. Scale in the PLC against the drive's configured minimum and maximum reference so the engineering units match.

The scanner shows a good connection but the drive still will not start. What is the next check?

Verify the drive's command source and reference source selections. A DeviceNet connection can be established and cyclic data exchanged while the drive still takes its start and speed commands from local controls or a different reference input. Set the command and reference sources to the network, confirm no external inhibit or fault is active, and check that the control word bits are being assembled correctly in the PLC logic.

Keep reading

  • How-to

    How to map a 1747-SDN scanner for DeviceNet drive control

    Seeing the drive in an RSNetWorx browse is not an I/O connection. Put the drive in the 1747-SDN scanlist, read the M-file words the scanner mapping assigns, and reference those mapped words in the SLC 5/04 ladder. A node address is not an integer-file offset: the mapping view, not node 10, decides where each command and status word lives.

    Industrial networks

  • 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

  • Troubleshooting

    Fix missing setpoint and control word writes to a PROFIBUS drive

    A working transmit path proves the bus is fine; the receive half is unfinished. Verify the PLC writes the configured output words, the words arrive in the receive buffer with a matching PZD length, the free-BICO receive connections exist, and control-word bit 10 is 1. Check the boundaries in order so an address fault is not mistaken for a BICO or authority fault.

    Drives and motion