{ --- matrix calculation for left side --- }
    !AMBL_calculate_matrix( {index} #m_Jeti_L, {TargetMatrixNr} 2, {SourceGainFactorMatrixNr} 2)   {MES0 contains: MAX}	{MES1 contains: MIN}
   	!check_value({idx} 0, {stepName} L_Mtx1, {lowlim}  0.0,  {highlim}   255, {unit} ##) {MATRIXRR}
   	!check_value({idx} 1, {stepName} L_Mtx2, {lowlim}  0.0,  {highlim}   255, {unit} ##) {MATRIXGR} 
   	!check_value({idx} 2, {stepName} L_Mtx3, {lowlim}  0.0,  {highlim}   255, {unit} ##) {MATRIXBR}
   	!check_value({idx} 3, {stepName} L_Mtx4, {lowlim}  0.0,  {highlim}   255, {unit} ##) {MATRIXRG}
   	!check_value({idx} 4, {stepName} L_Mtx5, {lowlim}  0.0,  {highlim}   255, {unit} ##) {MATRIXGG}
   	!check_value({idx} 5, {stepName} L_Mtx6, {lowlim}  0.0,  {highlim}   255, {unit} ##) {MATRIXBG}
   	!check_value({idx} 6, {stepName} L_Mtx7, {lowlim}  0.0,  {highlim}   255, {unit} ##) {MATRIXRB}
   	!check_value({idx} 7, {stepName} L_Mtx8, {lowlim}  0.0,  {highlim}   255, {unit} ##) {MATRIXGB}
   	!check_value({idx} 8, {stepName} L_Mtx9, {lowlim}  0.0,  {highlim}   255, {unit} ##) {MATRIXBB}
   	!case(3SIDE_AL_1_0_1)
   	%MT58U_Send_command(AMBMTX1_MTK5593 = @MES:00_@MES:01_@MES:02_@MES:03_@MES:04_@MES:05_@MES:06_@MES:07_@MES:08_@MES:200_@MES:200_@MES:200)
	!delay(#mtx_comm_Delay)
	!check_value({idx} 0, {stepName} AMBMTK1, {lowlim} 0, {highlim} 0, {unit} ##)
	!if_begin(CMD_Fail)
			!Set_variable( STR, 51, " No UART communication, please check cable  ")
			!Call(1900)
	!if_end
	%MT58U_Send_command(AMBEXEC_MTX_MTK5593)
	!delay(#mtx_store_Delay)
	!check_value({idx} 0, {stepName} MTX1_EXEC, {lowlim} 0, {highlim} 0, {unit} ##)
	!if_begin(CMD_Fail)
			!Set_variable( STR, 51, " No UART communication, please check cable  ")
			!Call(1900)
	!if_end
	
	!case(3SIDE_AL_1_2_1 or 3SIDE_AL_1_3_1 or 3SIDE_AL_2_3_2)
	%MT58U_Send_command(AMBMTX1_MTK5593 = @MES:00_@MES:01_@MES:02_@MES:03_@MES:04_@MES:05_@MES:06_@MES:07_@MES:08_@MES:200_@MES:200_@MES:200)
	{%MT58U_Send_command(AMBMTX9_MTK5593 = @MES:00_@MES:01_@MES:02_@MES:03_@MES:04_@MES:05_@MES:06_@MES:07_@MES:08_@MES:200_@MES:200_@MES:200)
	!delay(#mtx_comm_Delay)
	!check_value({idx} 0, {stepName} AMBMTK1, {lowlim} 0, {highlim} 0, {unit} ##)
	!if_begin(CMD_Fail)
			!Set_variable( STR, 51, " No UART communication, please check cable  ")
			!Call(1900)
	!if_end
	%MT58U_Send_command(AMBEXEC_MTX_MTK5593)
	!delay(#mtx_store_Delay)
	!check_value({idx} 0, {stepName} MTX1_EXEC, {lowlim} 0, {highlim} 0, {unit} ##)
	!if_begin(CMD_Fail)
			!Set_variable( STR, 51, " No UART communication, please check cable  ")
			!Call(1900)
	!if_end
	!case(3SIDE_AL_1_4_1)
	%MT58U_Send_command(AMBMTX1_MTK5593 = @MES:00_@MES:01_@MES:02_@MES:03_@MES:04_@MES:05_@MES:06_@MES:07_@MES:08_@MES:200_@MES:200_@MES:200)
	!delay(#mtx_comm_Delay)
	!check_value({idx} 0, {stepName} AMBMTK1, {lowlim} 0, {highlim} 0, {unit} ##)
	!if_begin(CMD_Fail)
			!Set_variable( STR, 51, " No UART communication, please check cable  ")
			!Call(1900)
	!if_end
	%MT58U_Send_command(AMBEXEC_MTX_MTK5593)
	!delay(#mtx_store_Delay)
	!check_value({idx} 0, {stepName} MTX1_EXEC, {lowlim} 0, {highlim} 0, {unit} ##)
	!if_begin(CMD_Fail)
			!Set_variable( STR, 51, " No UART communication, please check cable  ")
			!Call(1900)
	!if_end
	!case()	
 	!get_fs_parameter_int({fs_variable_name}product_status)			{ stores the value of a fs integer in MES[0] }
 	!evaluate_value({idx}0, {stepName}product_status, {lowlim}0, {highlim}0, {unit}#)
	!If_begin(CMD_Fail)
		!Set_variable( STR, 51, " Left bottom matrix calculation Error!                         ")
		!Call(1900)
	!If_end
	
	