diff --git a/src/utils/errorCodeHelpers.ts b/src/utils/errorCodeHelpers.ts index d2e932c..57bceab 100644 --- a/src/utils/errorCodeHelpers.ts +++ b/src/utils/errorCodeHelpers.ts @@ -53,6 +53,202 @@ interface ErrorInfo { * Only errors with verified solutions are included here */ const ERROR_DETAILS: Record = { + [SewingMachineError.NeedlePositionError]: { + title: 'The Needle is Down', + description: 'The needle is in the down position and needs to be raised before continuing.', + solutions: [ + 'Press the needle position switch to raise the needle', + ], + }, + [SewingMachineError.SafetyError]: { + title: 'Safety Error', + description: 'The machine is sensing an operational issue.', + solutions: [ + 'Remove the thread on the top of the fabric and then remove the needle', + 'Remove the thread on the underside of the fabric and clean the bobbin case of all threads', + 'Check the bobbin case for scratches or contamination', + 'Insert the embroidery needle', + 'Check that the bobbin is inserted correctly', + ], + }, + [SewingMachineError.LowerThreadSafetyError]: { + title: 'Lower Thread Safety Error', + description: 'The bobbin winder safety device is activated.', + solutions: [ + 'Check if the thread is tangled', + ], + }, + [SewingMachineError.LowerThreadFreeError]: { + title: 'Lower Thread Free Error', + description: 'Problem with lower thread.', + solutions: [ + 'Slide the bobbin winder shaft toward the front', + ], + }, + [SewingMachineError.RestartError10]: { + title: 'Restart Required', + description: 'A malfunction occurred.', + solutions: [ + 'Turn the machine off, then on again', + ], + }, + [SewingMachineError.RestartError11]: { + title: 'Restart Required (M519411)', + description: 'A malfunction occurred. Error code: M519411', + solutions: [ + 'Turn the machine off, then on again', + 'If the problem persists, note error code M519411 and contact technical support', + ], + }, + [SewingMachineError.RestartError12]: { + title: 'Restart Required (M519412)', + description: 'A malfunction occurred. Error code: M519412', + solutions: [ + 'Turn the machine off, then on again', + 'If the problem persists, note error code M519412 and contact technical support', + ], + }, + [SewingMachineError.RestartError13]: { + title: 'Restart Required (M519413)', + description: 'A malfunction occurred. Error code: M519413', + solutions: [ + 'Turn the machine off, then on again', + 'If the problem persists, note error code M519413 and contact technical support', + ], + }, + [SewingMachineError.RestartError14]: { + title: 'Restart Required (M519414)', + description: 'A malfunction occurred. Error code: M519414', + solutions: [ + 'Turn the machine off, then on again', + 'If the problem persists, note error code M519414 and contact technical support', + ], + }, + [SewingMachineError.RestartError15]: { + title: 'Restart Required (M519415)', + description: 'A malfunction occurred. Error code: M519415', + solutions: [ + 'Turn the machine off, then on again', + 'If the problem persists, note error code M519415 and contact technical support', + ], + }, + [SewingMachineError.RestartError16]: { + title: 'Restart Required (M519416)', + description: 'A malfunction occurred. Error code: M519416', + solutions: [ + 'Turn the machine off, then on again', + 'If the problem persists, note error code M519416 and contact technical support', + ], + }, + [SewingMachineError.RestartError17]: { + title: 'Restart Required (M519417)', + description: 'A malfunction occurred. Error code: M519417', + solutions: [ + 'Turn the machine off, then on again', + 'If the problem persists, note error code M519417 and contact technical support', + ], + }, + [SewingMachineError.RestartError18]: { + title: 'Restart Required (M519418)', + description: 'A malfunction occurred. Error code: M519418', + solutions: [ + 'Turn the machine off, then on again', + 'If the problem persists, note error code M519418 and contact technical support', + ], + }, + [SewingMachineError.RestartError19]: { + title: 'Restart Required (M519419)', + description: 'A malfunction occurred. Error code: M519419', + solutions: [ + 'Turn the machine off, then on again', + 'If the problem persists, note error code M519419 and contact technical support', + ], + }, + [SewingMachineError.RestartError1A]: { + title: 'Restart Required (M51941A)', + description: 'A malfunction occurred. Error code: M51941A', + solutions: [ + 'Turn the machine off, then on again', + 'If the problem persists, note error code M51941A and contact technical support', + ], + }, + [SewingMachineError.RestartError1B]: { + title: 'Restart Required (M51941B)', + description: 'A malfunction occurred. Error code: M51941B', + solutions: [ + 'Turn the machine off, then on again', + 'If the problem persists, note error code M51941B and contact technical support', + ], + }, + [SewingMachineError.RestartError1C]: { + title: 'Restart Required (M51941C)', + description: 'A malfunction occurred. Error code: M51941C', + solutions: [ + 'Turn the machine off, then on again', + 'If the problem persists, note error code M51941C and contact technical support', + ], + }, + [SewingMachineError.NeedlePlateError]: { + title: 'Needle Plate Error', + description: 'Check the needle plate cover.', + solutions: [ + 'Reattach the needle plate cover', + 'Check the bobbin case (for misalignment, scratches, etc.) and then reattach the needle plate cover', + ], + }, + [SewingMachineError.ThreadLeverError]: { + title: 'Thread Lever Error', + description: 'The needle threading lever is not in its original position.', + solutions: [ + 'Return the needle threading lever to its original position', + ], + }, + [SewingMachineError.UpperThreadError]: { + title: 'Upper Thread Error', + description: 'Check and rethread the upper thread.', + solutions: [ + 'Check the upper thread and rethread it', + 'If the problem persists, replace the embroidery needle, then check the upper thread and rethread it', + ], + }, + [SewingMachineError.LowerThreadError]: { + title: 'Lower Thread Error', + description: 'The bobbin thread is almost empty.', + solutions: [ + 'Replace the bobbin thread', + 'Wind the thread onto the empty bobbin in the correct way, then insert the bobbin', + ], + }, + [SewingMachineError.UpperThreadSewingStartError]: { + title: 'Upper Thread Error at Sewing Start', + description: 'Check and rethread the upper thread.', + solutions: [ + 'Press the Accept button to resolve the error', + 'Check the upper thread and rethread it', + 'If the problem persists, replace the embroidery needle, then check the upper thread and rethread it', + ], + }, + [SewingMachineError.PRWiperError]: { + title: 'PR Wiper Error', + description: 'PR Wiper Error.', + solutions: [ + 'Press the Accept button to resolve the error', + ], + }, + [SewingMachineError.HoopError]: { + title: 'Hoop Error', + description: 'This embroidery frame cannot be used.', + solutions: [ + 'Use another frame that fits the pattern', + ], + }, + [SewingMachineError.NoHoopError]: { + title: 'No Hoop Detected', + description: 'No hoop attached.', + solutions: [ + 'Attach the embroidery hoop', + ], + }, [SewingMachineError.InitialHoopError]: { title: 'Machine Initialization Required', description: 'The hoop needs to be removed and an initial homing procedure must be performed.', @@ -65,6 +261,20 @@ const ERROR_DETAILS: Record = { ], isInformational: true, // This is a normal initialization step, not an error }, + [SewingMachineError.RegularInspectionError]: { + title: 'Regular Inspection Required', + description: 'Preventive maintenance is recommended. This message is displayed when maintenance is due.', + solutions: [ + 'Please contact the service center', + ], + }, + [SewingMachineError.Setting]: { + title: 'Settings Error', + description: 'Stitch count cannot be changed.', + solutions: [ + 'This setting cannot be modified at this time', + ], + }, }; /**