Mappingmodel

Slide 1

CD Mapping & Control

Paper Machine Cross-Direction Control

PRBS Identification • Adaptive Shrinkage • MPC Control

Vremsoft

Slide 2

System Architecture

Two-process architecture over ZeroMQ REQ/REP

automap4.py: REP controller — S-curve discovery, PRBS, MPC control

machinedriver.py: site bridge to real paper machine (STEC/Multiverse)

modelstdcom.py: lab paper-machine simulator (replaces deprecated modeldriver.py)

automap4 discovers everything from setpoints + observed profiles

S-curve / mapping, transport delay, gain, response width

Hard-gated commissioning order: S-curve discovery → PRBS → control

Message schema identical for simulator and live machine

Slide 3

Mapping Matrix G[i,j]

gain = √(2π) × σ

(opening valve decreases basis weight)

G[i,j] = response of actuator i at databox j

Slide 4

PRBS Identification

u(t) = clamp(50 + A × PRBS(t), 0, 100)

Slide 5

Cross-Correlation & Response Extraction

(prevents divergence feedback loop)

r_i = sign(PRBS_i) × Δy[c_i - W : c_i + W]

Slide 6

EWMA Update Rules

G_i[window] = (1-α) × G_i[window] + α × response

G_i ← (1 - α) · G_i + α · r_i / Σ(r_i)

Slide 7

Shrinkage Model (S-Curve)

(NOT learned model — prevents divergence)

s(x) = -0.4x³ + 0.95x

Slide 8

Transport Delay Auto-Estimation

delay = argmax(corr(Δact, Δmeas))

Slide 9

Coordinate System & Normalisation

x_norm = linspace(left_edge, right_edge, N_box)

profile_norm = interp(x_norm, raw_profile)

norm_idx = (raw_pos - left) / (right - left) × 499

(previously missed responses by 40+ databoxes)

Slide 10

MPC Supervisory Control

One-step SLSQP optimiser with analytic Jacobian

Objective: Q·Σ(error²) + R·Σ(Δu²) + S·Σ(move bending²) + T·Σ(profile curvature²)

Alpha-shaped error target: speed knob without changing R/S/T

R/S/T auto-derived from the learned model (post-PRBS tuning)

Post-solve max_delta_u rate limit and fixed_mask (manual + off-sheet)

Simple-zone mode: ignore actuator footprint, control per-zone mean

Dilution mode: drop the slice-lip bending constraint

Edge move suppression and optional anchor gain for slow drift

Slide 11

Post-PRBS Tuning

Post-PRBS tuning auto-applies when PRBS is accepted

Simple-zone ON, throttle OFF, auto-tune OFF, Q=1, α=0.70

Integral = 0, decay = 0.98, max_delta_u = 9.53

R = S = T = Q · 0.002 · s_max² (≈ 0.02–0.07 on UTP2)

T = curvature of the absolute actuator profile

Operator controls aggressiveness with α only

Legacy grades without control_T get R/S/T re-derived on load

Slide 12

Commissioning & Operator Aids

Preferences preset: Reset to Discovery Defaults loads full run recipe

Commissioning: S-Curve Discovery → PRBS Identification → Control

PRBS: 30–40 scans with a verified discovery seed

Save Grade (Ctrl+Shift-S) captures mapping, tuning, and preferences snapshot

Edge-free sheet frame from bumps + current data extent

Help → Operator Guide (PDF) opens embedded automap4.pdf (F6)

Help → Tuning Procedure (F5) shows the current operator runbook

Slide 13

Wander Detection & Feed-Forward

Slide 14

Stale Scan Protection

Slide 15

Setpoint Ownership & Bumpless Transfer

(first_after_init=True in setpoint_poll)

prbs_vals[manual_mask] = 0

Slide 16

CSV Tuning Log

estimated_gain, width, tau, tc

Slide 17

Key Parameter Relationships

Slide 18

modelstdcom Simulator Constants

N_act = 96, N_box = 500 (defaults)

FOOTPRINT_STD_DEV = 4.5 databoxes

S-curve: C₃ = -0.4, C₁ = 0.95

Wander/noise from evidence-derived site recordings or zeroed presets

machine_speed and paper length set transport delay τ = L / speed

Beam-extension virtual actuators for realistic edge coverage

Trim front/back moves paper only — headbox never slides

These are the simulator's secrets; automap4 discovers them online

Slide 19

Field Report Example

This is the auto report generated during the PRBS phase.

Slide 20

S-Curve Discovery

Hard-gated first commissioning step (no default S-curve prior)

Centre-anchor-first parallel bump groups (~105–145 scans)

Feedback-anchored τ probe with operator skip-tau question

SNR / support gates reject noisy or off-sheet responses

Cubic fit with monotonicity / RMSE gates + holdout verification

Outputs: discovered centres, σ, τ, and provisional mapped profile

Lab: centre RMSE 0.35–0.7 db, σ 4.93 vs 4.9 truth, τ exact

Slide 21

Edge-Free Frame & Paper-Aware Profiles

Sheet frame from bumps + current non-zero data extent (edge-free)

Identity ruler 0..N-1; scanner edges are display-only

A 0 databox means no paper — never treated as 0 g/m²

Off-sheet zones are pinned: no error, no gain, no move

Trim front/back narrows the mapped profile; headbox stays fixed

Mapped profiles (.prbs / .simple) computed over paper only

Optional actuator-anchored frame tracker for sheet wander

Slide 22

Actuator Level & Bumpless Transfer

CD control never sets the array mean — it is a free variable

Every control move is zero-mean over counted zones (on paper, not manual)

Counted mean walks toward Preferences → Actuator target level (%)

Maximum walk per move = Level ramp step (%/move)

Bumpless transfer at control enable: level seeds from current mean

Manual zones and off-sheet zones are excluded from level counting

Toolbar readouts: Act level (amber while ramping, green on target)