PROGRAM MAIN
VAR
intA:INT;
strS:STRING;
strTemp:string;
END_VAR
CASE intA OF
1:strTemp:=’Motor’;
2:strTemp:=’Fan’;
3:strTemp:=’VVVF’;
4:strTemp:=’Power’;
END_CASE;
strS:=CONCAT( ‘intA.Value=’,INT_TO_STRING(intA));
strS:=CONCAT( strs,strTemp);