PROGRAM IOMapping
IF NOT Test_Mode THEN
	Contactor_Status := DigitalInput_Status_0;
	Start_Button := DigitalInput_Status_1;
	Auto_Mode := DigitalInput_Status_2;
	Hand_Mode := DigitalInput_Status_3;
	LinearScale_Pressure(13107.0, 65535.0, Pressure_EU_Min, Pressure_EU_Max, ANY_TO_REAL(_IO_P1_AI_00));
	LinearScale_Flow(13107.0, 65535.0, Flow_EU_Min, Flow_EU_Max, ANY_TO_REAL(_IO_P1_AI_01));
	Pressure_In := LinearScale_Pressure.EU_Out;
	Flowrate := LinearScale_Flow.EU_Out;
END_IF;
END_PROGRAM