small bug fix

This commit is contained in:
Infineon\StieberD 2025-01-13 15:48:52 -07:00
parent 59ee7c83fc
commit 8b25784ba3
2 changed files with 6 additions and 2 deletions

View File

@ -187,7 +187,7 @@ end service
Service PrintReactorLabel(ReactNo, LoadLockSide=LOAD_LOCK_SIDE) Service PrintReactorLabel(ReactNo, LoadLockSide=LOAD_LOCK_SIDE)
If ( (ReactNo NE '') and (LoadLockSide NE '') ) then If ( (ReactNo NE '') and (LoadLockSide NE '') ) then
BaseZpl = '^XA^LH10,10^FO70,20^BY2^B3N,,80,N^FD10SR{ReactNo}.{LoadLockSidePrefix}^FS^FO10,120^A045,90^FB400,1,,C^FDR{ReactNo} {LoadLockSide}^FS^XZ' BaseZpl = '^XA^LH10,10^FO70,20^BY2^B3N,,80,N^FD10SR{ReactNo}.{LoadLockSidePrefix}^FS^FO10,120^A045,90^FB400,1,,C^FDR{ReactNo} {LoadLockSide}^FS^XZ'
Convert 'R' to '' in ReactNo Convert 'R' to '' in ReactNo
@ -211,7 +211,10 @@ Service PrintReactorLabel(ReactNo, LoadLockSide=LOAD_LOCK_SIDE)
Swap '{LoadLockSide}' with LoadLockSide in Zpl Swap '{LoadLockSide}' with LoadLockSide in Zpl
end end
Labeling_Services('PrintLabel', Zpl, '\\messp1003.infineon.com\MESZBRPRT008') Labeling_Services('PrintLabel', Zpl, '\\messp1003.infineon.com\MESZBRPRT008')
end else
Error_Services('Add', 'Error in ':Service:' service. Null ReactNo or LoadLockSide passed in.')
end end
end service end service

View File

@ -78,7 +78,7 @@ Event PUB_PRINT.CLICK()
ReactNo = Get_Property(@Window:'.COB_REACTOR', 'TEXT') ReactNo = Get_Property(@Window:'.COB_REACTOR', 'TEXT')
LLSide = Get_Property(@Window:'.COB_LOAD_LOCK_SIDE', 'TEXT') LLSide = Get_Property(@Window:'.COB_LOAD_LOCK_SIDE', 'TEXT')
Labeling_Services('PrintReactorLabel', ReactNo, LoadLockSide) Labeling_Services('PrintReactorLabel', ReactNo, LLSide)
If Error_Services('HasError') then Error_Services('DisplayError') If Error_Services('HasError') then Error_Services('DisplayError')
end event end event
@ -95,3 +95,4 @@ EnablePrintButton:
return return