AutomateDirectUSAMotion LibraryIndustrial monitors & PCs

Explainer

What a network encoder receive block needs for conveyor sync

Servo and stepper motion Published 6 min read By AutomateDirectUSA engineering team

Short answer

Initialize the drive with MC_BR_InitReceiveNetworkEnc: it sets a drive to read encoder data over the network straight from the source device, so no SDC axis is needed for the receive path. If the conveyor count is too coarse for good following, filter it further in the PLC and command the axis with a cyclic velocity or cyclic position command.

On this page
  1. What the receive block does
  2. Why no SDC axis is needed
  3. Configuring the receive path
  4. When the count is too coarse to follow
  5. Receiving a 32-bit encoder count on an ACOPOS-2 drive
  6. Verifying before synchronization is enabled
  7. The decision
  8. Questions asked

Conveyor encoder data reaches an ACP10 drive through MC_BR_InitReceiveNetworkEnc. The block initializes the drive for reading encoder data over the network, and the drive reads that data from the device directly, so you do not set up an SDC axis for the receive path. Two conditions decide the rest: on an ACOPOS-2 drive the block requires ACP10 V5.02.1 or newer, and when the conveyor count is very coarse you filter it further in the PLC and command the axis with a cyclic velocity or cyclic position command instead. What follows is what the block does, how to configure the path, and the count arithmetic worked for an ACOPOS-2 project.

What the receive block does #

MC_BR_InitReceiveNetworkEnc is the ACP10 function block that initializes a drive for reading encoder data over a network — that is its documented purpose in the release notes, where the same description already appears under V2.52.0. Its published interface lists an Execute input of type BOOL next to a structure that carries the function block configuration. Once initialized, the drive itself fetches the encoder value from the source device over the network; for conveyor synchronization the source is the module counting the conveyor encoder. The value reaches the drive through one of its receive channels, and how the ACOPOS receive channels are assigned for MC_BR_InitReceiveNetworkEnc covers that assignment.

Why no SDC axis is needed #

The conventional route makes an external encoder part of ACP10 motion as a software axis — an SDC axis — with the count arriving through an encoder interface such as the ACP10SDC one. The receive block removes that step: because the drive reads the encoder data from the device directly over the network, there is no axis to configure on the receive side. You configure the block, execute it, and the count is present at the drive for the synchronization logic. Keep the SDC axis for projects where something else genuinely needs the encoder to exist as an ACP10 axis; receiving alone does not.

Configuring the receive path #

Four steps take the project from wiring to a usable count:

  1. Publish the count on the network. Configure the encoder module so the conveyor count is part of the cyclic data its station sends; the block reads device data, so a value the device does not transmit cannot be received.
  2. Add the block and its configuration structure. Fill the structure from the documentation of the Acp10_MC library installed with your ACP10 version, not from memory.
  3. Execute and confirm. Start the block through its Execute input and check that it completes without an application error; the drive is then initialized for reading encoder data over the network.
  4. Hand the received value to the synchronization logic as the master feedback, and verify it as described below before coupling the servo to it.

When the count is too coarse to follow #

Not every conveyor encoder produces a count fine enough to synchronize on directly. When the signal is very rough or coarse, do the extra filtering in the PLC — more than the drive offers — and command the axis with a simple cyclic velocity or cyclic position command computed from the filtered value. That is a change of architecture, not a tuning tweak: the axis now follows a commanded value instead of the raw encoder, and the choice between command types matters because velocity control behaves differently from positioning, a distinction covered in why cyclic velocity control is not positioning in ACP10. Filtering buys smoothness and costs lag, so validate during steady conveyor running and through acceleration, where lag shows up as following error. Whether the count is too coarse at all is a question of counts over the travel the servo must resolve, which is what limits counts per meter in robot conveyor tracking.

Receiving a 32-bit encoder count on an ACOPOS-2 drive #

The case: a conveyor encoder publishing its count as network device data, read by an ACOPOS-2 drive. Two questions decide whether the standard receive path works: does the full count fit the transmission, and does the block run on this drive? The arithmetic below is a calculation for the documented inputs, not a measurement.

Inputs #

  • Encoder count width: 32 bits — the ACP10 release notes document 32-bit encoders on the encoder interface (the V5.01.1 entry).
  • Transmission width on the network data path: 4 bytes — the width documented for the sibling block MC_BR_InitReceiveNetworkData.
  • Drive: ACOPOS-2 — the drive in this project.
  • ACP10 version: V5.02.1 — installed; its release notes state that MC_BR_InitReceiveNetworkEnc now also works for ACOPOS-2.

Rule #

A counter n bits wide wraps after 2^n counts, and one byte carries 8 bits; a transmission carries a count whole when its width in bits equals the count width.

Arithmetic #

  • Frame width: 4 bytes × 8 bits per byte = 32 bits, equal to the count width, so one transmission carries the whole count.
  • Wrap point: 2^32 = 4,294,967,296 counts.

Result #

The drive receives the complete count, valid modulo 4,294,967,296. Any velocity the PLC derives from count differences must be taken modulo that wrap, or the first wrap reads as a huge reversal.

Decision #

Proceed with MC_BR_InitReceiveNetworkEnc and create no SDC axis: the installed version already supports ACOPOS-2, so the version threshold is met. On an ACOPOS-2 drive running anything older, update the technology package first — the block does not run there. Handle the count as modular in the PLC either way.

Verifying before synchronization is enabled #

Check in this order, cheapest first:

  • The block completed without an application error after Execute. If it did not, confirm the count is truly in the cyclic data the station sends, then compare the configuration structure against the installed Acp10_MC documentation, then confirm the drive and ACP10 version pair supports the block.
  • With the conveyor at steady speed, the received value changes continuously, in the correct direction, at a stable rate; reverse the conveyor and the sign of the change follows.
  • The value stays continuous across a counter wrap; a jump there means the modular handling is missing.
  • Couple the servo only after those pass, and enable it first at reduced conveyor speed with the guarding your machine's risk assessment calls for — a synchronized axis starts moving the moment coupling goes active.
  • With the count proven, the synchronizing axis still needs its loop closed on that feedback; what an external encoder position loop needs to close covers that side of the job.

The decision #

  • Encoder count published as network device data, on an ACOPOS drive or an ACOPOS-2 drive with ACP10 V5.02.1 or newer: configure MC_BR_InitReceiveNetworkEnc, create no SDC axis, feed the received value to the synchronization logic, and treat it as modular at the wrap.
  • ACOPOS-2 drive with ACP10 older than V5.02.1: update the technology package before configuring the receive path; the block is not available on that drive before that release.
  • Count too coarse even after drive-side filtering: filter further in the PLC and command the axis with a cyclic velocity or cyclic position command, validated at constant speed and through speed changes.

Questions asked

What did ACP10 V5.01.1 fix for 32-bit encoders?

On the ACP10SDC encoder interface, an overflow of the incremental counter caused an error calculating absolute position with 32-bit encoders, and the V5.01.1 release corrected it. If an older version derives absolute position from such a count on that interface, update before trusting the value. The network receive path is not that interface, but the habit carries over: treat the received count as modular whenever it is differenced into a speed.

Errors show up after connecting an EnDat 2.2 encoder; where do I look first?

The ACP10 V5.16.2 release notes record that with EnDat 2.2 the errors occurred only when the configuration of the encoder interface did not match the configuration of the encoder itself. Compare the two configurations line by line and make them identical before changing wiring or hardware; that mismatch is the documented trigger.

Is MC_BR_InitReceiveNetworkEnc the same block as MC_BR_InitReceiveNetworkData?

No. MC_BR_InitReceiveNetworkEnc initializes a drive to read encoder data over a network, so the drive treats the value as an encoder count. MC_BR_InitReceiveNetworkData only reads a 4-byte transmission sent from a POWERLINK station to a drive, with no encoder meaning attached. Use the encoder block for conveyor synchronization; use the data block when the drive just needs four raw bytes.

Keep reading

  • Explainer

    What a simulated conveyor sync axis needs in K-ROSET

    Simulate the conveyor sync axis in K-ROSET first: build the robot with a conveyor axis through the external-axis wizard, pair it by axis number in the conveyor settings dialog, and verify tracking against the installed Paint CV Sync Manual. Leave the Auxiliary Function 11 Handling/Palletizing activation on the real controller to the vendor-documented procedure, and connect the physical encoder only after the simulation tracks a moving part correctly.

    Servo and stepper motion

  • Explainer

    What a Conveyor Tracking Retrofit Needs Beyond an Encoder

    Conveyor tracking works only when the robot controller has the licensed tracking software option and a matching encoder interface unit reading a real encoder driven by the conveyor. An encoder alone, a faster robot program, or a timer estimate changes nothing, because position error equals conveyor speed multiplied by timing error.

    Servo and stepper motion

  • Explainer

    What an External Encoder Position Loop Needs to Close

    The axis reference an encoder block returns is a measurement, not a loop: an external encoder closes the servo position loop only where the drive or motion controller documents a secondary feedback assignment for the commanded axis. Verify direction, scaling, motion-block compatibility and encoder-loss faulting before you enable, and tune for the reversal transient the backlash now creates inside the loop.

    Servo and stepper motion