short getSetAxesTypeMad(int cmdPt) throws ScriptException {
		if (cmdPt == 2)
			checkLength3();
		if (cmdPt == 1)
			checkLength2();

		int tok = statement[cmdPt].tok;
		short mad = 0;
		switch (tok) {
		case Token.on:
			mad = 1;
		case Token.off:
			break;
		case Token.integer:
			int diameterPixels = statement[cmdPt].intValue;
			if (diameterPixels < -1 || diameterPixels >= 20)
				numberOutOfRange(-1, 19);
			mad = (short) diameterPixels;
			break;
		case Token.decimal:
			float angstroms = floatParameter(cmdPt);
			if (angstroms < 0 || angstroms >= 2)
				numberOutOfRange(0.01f, 1.99f);
			mad = (short) (angstroms * 1000 * 2);
			break;
		case Token.dotted:
			mad = -1;
			break;
		default:
			booleanOrNumberExpected("DOTTED");
		}
		return mad;
	}