Page 2 of 2

Re: Upgrading V2XT DX32 Bridgeport Mill

Posted: Wed Mar 30, 2022 6:21 pm
by craigc
Thanks for the help. Does this look correct? I am 30 miles from the machine so I cant try and compile it right now.

;--Auto Spindle brake with VFD zero-speed
IF (Aux3Key_I || KbAux3Key_M || SkinAux3_M) THEN (Aux3PD)
IF (Aux3LED_O ^ Aux3PD) || OnAtPowerUp_M THEN (Aux3LED_O)
IF Aux3LED_O && !SpindleEnableOut THEN (SpindleBrake_O)

Re: Upgrading V2XT DX32 Bridgeport Mill

Posted: Wed Mar 30, 2022 8:46 pm
by cncsnw
Probably right. Some factory programs double up the "PD" suffix, so it is possible yours says "Aux3PD_PD" (go figure).

You can copy the PLC compiler, "mpucomp.exe", from the c:\cncm directory on the control computer, to whatever computer you like to work from. Then you can verify that PLC programs compile without error, even while working offline.

Regarding tokens, it is a matter of personal preference. I chose not to change my standard library of PLC programs when Centroid added the extra suffixes to theirs a few years ago. I feel that it is sufficiently obvious that "Aux3Key" and "Ax1PlusLimitOk" are inputs, and "Aux3LED" and "SpindleEnableOut" are outputs, without further adornment.