FUNCTION_BLOCK PMC_ReadPmcState
	IF Enable = TRUE THEN
		(* Statement section IF*)
		Valid := TRUE;
		memcpy(pDest := ADR(State),pSrc := ADR(FBin_pointer) + P2H_START + P2H_PMC_STATE_OFFSET,length := 1);
	ELSE
		Valid := FALSE;
	END_IF;
END_FUNCTION_BLOCK
