Encoder
ENC Registration
Description

Registration

One machine revolution is defined by selecting one encoder on smarty's dual encoder module, and setting a multiplier and a divider parameter.

The fraction of a revolution between a master and a slave event is measured. Events are selected from either of the two encoder z-channel markers, or the high-speed event inputs at terminals E4 and E5. The rising edge of the signal is associated with an exact encoder edge.

The setpoint is the desired fraction of a revolution at which the slave event is expected to occur. The function block output is the error from the setpoint. Both parameters range from 0.0000 to 0.9999 revolutions.

A window, 0.0000rev to 0.5000rev, is set up around the setpoint. If the error is outside of the window, it is clamped at + or - the window value depending on whether the error exceeds 0.5 times the measured period.

Note - The maximum error output is 0.5 times the measured period.

Out of Window and Missing Event outputs are provided. Missing Event is active if the master or slave events are not present during any cycle or where the measured period exceeds 3.3 revolutions. The error tracks at the last value prior to the missing event.

Application Example - Registration on Electronic Line-Shaft, Phase-Lock

Examples include print cylinder registration and mechanical cut-to-length. The material and print or cut head rotate precisely in sync while slower corrections are applied from the registration loops.

In the following one-page framework, the primary control is from a well-calibrated and tuned electronic line-shaft, phase-lock system.

Small registration errors feed a relatively slow PI that offset the position demand in the phase-lock loop.

If the registration PI output approaches saturation, a slow MOP begins to adjust the phase-lock ratio. This allows the system to compensate for unexpected slip or stretch in the material, for example.

Application Example - Registration on Motion Control, Servo Haul-Off

Examples include bag sealer-cutters with print registration, sheeters, and folders. The servo must haul-off the precise length of material during the allowable period after the cut and prior to the commencement of the next cut.

In the following one-page framework, the primary control is from a well-tuned motion control loop using Trapezoid Motion function block.

Small registration errors feed a relatively slow PI that offsets the cut length demand in the motion loop.

If the registration PI output approaches saturation, a slow MOP begins to scale the cut length. This allows the system to compensate for unexpected slip or stretch in the material, for example.

Availability
  • Available only in the dw2xx series products
  • Requires library: Encoder Control (option -11)
  • Requires: Dual Encoder
  • Singleton function block
  • Firmware versions 0x201A and later
savvy-SFD Graphic encRegistration5
Graphic with Parameters encRegistration5

Parameters

Encoder Input, Read-write, Enumerated (signed 16-bit integer)
0 = ENC1
1 = ENC2
Pulses Per Revolution Input, Read-write, Analog (signed 16-bit integer)
1 ppr to 30000 ppr
Multiplier Input, Read-write, Analog (signed 16-bit integer)
-3.2767 to 3.2767
Divider Input, Read-write, Analog (signed 16-bit integer)
0.0001 to 3.2767
Master Event Source Input, Read-write, Enumerated (signed 16-bit integer)
1 = ENC1 Marker
2 = ENC1 DIN
8 = ENC2 Marker
16 = ENC2 DIN
Slave Event Source Input, Read-write, Enumerated (signed 16-bit integer)
1 = ENC1 Marker
2 = ENC1 DIN
8 = ENC2 Marker
16 = ENC2 DIN
Setpoint Input, Read-write, Analog (signed 16-bit integer)
0.0000 revs to 0.9999 revs
Window Input, Read-write, Analog (signed 16-bit integer)
0.0010 revs to 0.5000 revs
Status Output, Read-only, Enumerated (signed 16-bit integer)
0 = OK
1 = Comms Fault
2 = Fault on ENC1 Z
3 = Fault on ENC2 Z
4 = Fault on ENC1 Z & ENC2 Z
5 = Illegal Master/Slave Combination
Out Of Window Output, Read-only, Boolean (signed 16-bit integer)
0 = No
1 = Yes
Missing Event Output, Read-only, Boolean (signed 16-bit integer)
0 = No
1 = Yes
Error Output, Read-only, Analog (signed 16-bit integer)
-3.2767 revs to 3.2767 revs
Master Measured Period Internal Parameter, Read-only, Analog (signed 16-bit integer)
0.0000 revs to 3.2767 revs
0 = None Found
32767 = Overflow
Slave Measured Period Internal Parameter, Read-only, Analog (signed 16-bit integer)
0.0000 revs to 3.2767 revs
0 = None Found
32767 = Overflow
Comms Errors Internal Parameter, Read-only, Analog (unsigned 16-bit integer)
0 to 65535