Changes made for Pathfinder 5226 controllers.
Purpose: Jouanel press brakes with dual-drive clamping beams (separate left and right motors) can drift out of alignment over many bend cycles. This feature periodically triggers the external drive hardware to resynchronize both sides using its own reference sensors. The BlackBox controller does not control the sync motion itself - it signals the external hardware to perform the operation and monitors for completion.
Parameters Setup Parameters (via Foldbus 0x0001/0x0002 - PID system):
PID Name Type Default Description 353 Bends Before Clamping Beam Sync uint16 0 (disabled) Number of clamp operations between syncs. 0 = feature disabled. 354 Maximum Clamping Beam Sync Start Position float 50.0 mm Max clamp height to allow sync. If clamp is above this, sync is skipped silently.
Generic Parameters (via Foldbus 0x0003 - Attribute ID system):
Attribute ID Name Type Default Description 0x205D Sync Clear Timeout uint16 (ms) 5000 Time allowed for I_122 to turn OFF after O_125 is turned ON (handshake clear phase). 0x205E Sync Complete Timeout uint16 (ms) 10000 Time allowed for I_122 to turn ON after it has cleared (actual sync operation). 0x205F Sync Motion Timeout uint16 (ms) 2000 Time allowed for initial upward beam movement to be detected after sync starts.
I/O: Function Type Description O_125_CLAMPING_BEAM_SYNC Output Turned ON to signal external hardware to begin sync operation. Turned OFF when sync completes or on error. I_122_CLAMPING_BEAM_SYNC_COMPLETE Input External hardware signals sync completion by turning this ON. Polled in the sync function (no interrupt processing needed).
Status Reporting: Flag Location Bit Description Clamping_Beam_Sync_Active Status dFlag (0x00000080) Bit 7 Reported to Pathfinder every status poll. TRUE while sync operation is in progress.
Logic Flow
- Counter Management (in LoadSheetWithClamp) Two file-level static variables track sync state across function calls:
sClampCountdown (uint16) - starts at 0 on power-up sbSyncNeeded (bool) - starts false After every clamp operation completes (end of LoadSheetWithClamp), if PID 353 > 0 and mode is AUTOMATIC or higher:
If sClampCountdown == 0: sets sbSyncNeeded = true and resets counter to PID 353 value Otherwise: decrements sClampCountdown Since the counter initializes to 0 at power-up, the very first clamp operation will flag a sync.
- Sync Execution (in Release_Part_To_Operator) After the part is released and bending beams have moved, the code checks sbSyncNeeded. If true and mode is AUTOMATIC:
Waits for bending beam motion to complete Clears the flag Calls SB_Perform_Clamping_Beam_Sync() with the current operation's clamp open height If sync fails, returns FALSE to abort the cycle 3. The Sync Function (SB_Perform_Clamping_Beam_Sync) Pre-sync validation:
Sets gRun.ClampingBeamSyncActive = TRUE I/O config check - O_125 and I_122 must both be defined (or both undefined). Mismatch triggers E471. Position check - If clamp is above PID 354 (max start position), skips silently and returns TRUE.
Handshake sequence:
STEP 1 - Turn ON output O_125 (tells external hardware to start sync).
STEP 2 - Wait for I_122 to turn OFF (clear previous state). Timeout = Attribute 0x205D (default 5s). If I_122 doesn't clear, turns off O_125 and triggers E470 (input stuck on).
STEP 3 - Wait for I_122 to turn ON (actual sync completion). Timeout = Attribute 0x205E (default 10s). During this wait, a nested motion detection check runs: if no upward beam movement is detected within Attribute 0x205F (default 2s), turns off O_125 and triggers E469 (motion timeout). This catches wiring issues, drive faults, or controller output failures early rather than waiting the full completion timeout.
STEP 4 - Turn OFF output O_125.
STEP 5 - If beam is below the target clamp open height, raise it using SB_Jog_Clamp_Up(). If already at or above target, do nothing (never lowers).
Cleanup - Sets gRun.ClampingBeamSyncActive = FALSE at every exit point (success and all error paths).
Abort conditions - All wait loops also check gRun.eMode >= RMT_AUTOMATIC, so switching out of automatic mode during sync will exit the loops cleanly.
| Model | Version | Released |
|---|---|---|
| 5226BB Rev G. | 5.00.21 | 2/13/2026 |