FUNCTION "FC_NumberToWorkstation" : String
{ S7_Optimized_Access := 'TRUE' }
VERSION : 0.1
   VAR_INPUT 
      nInWorkstation : Int;
   END_VAR


BEGIN
	#"FC_NumberToWorkstation" := '';
	
	IF #nInWorkstation <= 0 THEN
	    RETURN;
	END_IF;
	
	CASE #nInWorkstation OF
	    101:
	        #"FC_NumberToWorkstation" := 'GOH-PWS-101';
	    102:
	        #"FC_NumberToWorkstation" := 'GOH-PWS-102';
	    103:
	        #"FC_NumberToWorkstation" := 'GOH-PWS-103';
	    104:
	        #"FC_NumberToWorkstation" := 'GOH-PWS-104';
	    105:
	        #"FC_NumberToWorkstation" := 'GOH-PWS-105';
	    106:
	        #"FC_NumberToWorkstation" := 'GOH-PWS-106';
	    107:
	        #"FC_NumberToWorkstation" := 'GOH-PWS-107';
	    108:
	        #"FC_NumberToWorkstation" := 'GOH-PWS-108';
	    ELSE
	        #"FC_NumberToWorkstation" := 'GOH-PWS-UNKNOWN';
	END_CASE;
END_FUNCTION

