Re: Looking for help with a Mitsubishi Inverter
Posted: Fri Jul 16, 2021 5:23 pm
I think the analog output is only capable of +/-10V. Make sure you VFDs maximum frequency limit is set to a sensible value, say 65Hz, then you never have to worry it will over speed the motor.
You could try set both high and low range max RPM to 3000, then in the MDI and do M3 S1500. You should see 5V output (if your gear ratio is 1:1).
If you really want to do some advanced debugging, open the PLC inspection (Ctrl+E) on the main CNC12 screen and add SpinSpeedCommand_FW (usually FW6) to the watch list. That will tell you the spindle speed that CNC12 is commanding. SpinRangeAdjust_FW shows the current gear ratio used. Refer to the code snippet below.
If you have set gear ratios that are not 1:1 then the commanded RPM at the motor will be what it needs to be to get the correct spindle RPM. Set gear ratios back to 1:1 if you just want to get them motor going at the commanded speed first.
You could try set both high and low range max RPM to 3000, then in the MDI and do M3 S1500. You should see 5V output (if your gear ratio is 1:1).
If you really want to do some advanced debugging, open the PLC inspection (Ctrl+E) on the main CNC12 screen and add SpinSpeedCommand_FW (usually FW6) to the watch list. That will tell you the spindle speed that CNC12 is commanding. SpinRangeAdjust_FW shows the current gear ratio used. Refer to the code snippet below.
Code: Select all
;------------------------------------------------------------------------------
ZeroTo5Or10Stage
;------------------------------------------------------------------------------
;----------------------------------------------------------------
; Convert Spindle "S" command to 16 bit value for output to DAC
;----------------------------------------------------------------
; Commanded Spindle speed (includes override factor) is sent down from CNC11
; in SV_PC_COMMANDED_SPINDLE_SPEED. This value needs to be converted to a
; 16 bit value (0-65535) where full scale = SV_PC_CONFIG_MAX_SPINDLE_SPEED.
;Display calculated RPM value on PC
IF True_M THEN SV_PLC_SPINDLE_SPEED = SpinSpeedCommand_FW
;Convert RPM to 16 bit value
IF True_M THEN SixteenBitSpeed_FW = SpinSpeedCommand_FW/RPMPerBit_FW
; Factor in gear range
IF True_M THEN SixteenBitSpeed_FW = (SixteenBitSpeed_FW/SpinRangeAdjust_FW)
;Convert to integer word for DAC & I/O display
IF True_M THEN SixteenBitSpeed_W = SixteenBitSpeed_FW
; Bound min to 0, max to 65535
IF SixteenBitSpeed_W < 0 THEN SixteenBitSpeed_W = 0
IF SixteenBitSpeed_W > 65535 THEN SixteenBitSpeed_W = 65535
; Only output to DAC here if spindle orient is not working otherwise spindle orient stage drives DAC
IF !SpindleOrientFastStage THEN WTB SixteenBitSpeed_W SpinAnalogOutBit0_O 16