Page 1 of 1
Testing Outputs with MDI commands <Answered>
Posted: Sat Jun 28, 2025 11:44 pm
by RJS100
I am starting to bench test my carousel ATC. Two of the outputs that it uses are ATC_CarouselForwrad and ATC_CarouselReverse. I have these configured as output 6 and output 7 respectively. The Centroid wizard input and output document notes that using an M66 will turn on output 6 and M86 will shut it off. I have entered these commands via the MDI command prompt, and it does not activate the output. Is there something else that needs to be done to turn on and off these outputs.
I have also attached my recent report.
Best... Richard
Re: Testing Outputs with MDI commands
Posted: Sun Jun 29, 2025 12:38 am
by suntravel
Code: Select all
WorkLight IS OUT1
Mist IS OUT2
VFDDirection_O IS OUT3
VFDEnable_O IS OUT4
SpindleCooling_Fan IS OUT5
ATC_CarouselForward IS OUT6
ATC_CarouselReverse IS OUT7
M66/86 will activate Output6 not OUT6
It will only work if Output6 is assigned to OUT6
Code: Select all
;------------------------------------------------------------------------------
; Filename: mfunc66.mac
; Wizard OUTPUT6 M-code Macro: M66
; Description: User Customizable Macro
; Notes: Use Acorn Wizard i/o map to set Acorn Output 6 = to "OUTPUT6" then this macro mcode (M66) will turn on that output
; Requires:
; Please see TB300 for tips on writing custom macros.
;------------------------------------------------------------------------------
IF #50010 ;Prevent lookahead from parsing past here
IF #4201 || #4202 THEN GOTO 1000 ;Skip macro if graphing or searching
N100 ;Insert your code between N100 and N1000
M94 /66 ;Request OUTPUT6
N1000 ;End of Macro
By the way you are running the old 5.10
5.30 and the upcoming 5.40 will have a better implementation to set up ATC in the Wizard
I suggest updating to 5.40 after it is released.
You can use ALT+I for the PLC Diagnostic screen and turn ON/OFF Outputs by hand
Uwe
Re: Testing Outputs with MDI commands
Posted: Sun Jun 29, 2025 2:20 pm
by RJS100
Thanks Uwe. I will update to 5.40 as soon as it is released.
Just curious, how is this different than using the custom outputs shown in the attached, other than the the fact that you would map to the custom output instead of "OUTPUT 6"?
Re: Testing Outputs with MDI commands
Posted: Sun Jun 29, 2025 2:35 pm
by suntravel
This is default before there is something other assigned to Output6.
If this selection in the Wizard is not there after selecting all, do it in the PLC, or just use PLC Diagnostic to switch it by hand.
Uwe
Re: Testing Outputs with MDI commands
Posted: Sun Jun 29, 2025 2:52 pm
by RJS100
OK get it. Alternatively, I could assign M94M955111 to output 6 in the Wizard, then use the following to turn it off or on. For now, I will use the PLC diagnostic. Thanks for your help!
M94/111 turns on the output that “M94955111” is assigned to.
M95/111 turn off the output that “M94955111” is assigned to.
Re: Testing Outputs with MDI commands
Posted: Sun Jun 29, 2025 9:20 pm
by RJS100
Hello Uwe,
You suggested upgrading to version 5.40 when it is released. Do you know what additional features were added to support an ATC?
Richard
Re: Testing Outputs with MDI commands
Posted: Mon Jun 30, 2025 2:33 am
by suntravel
Release Notes 5.40
viewtopic.php?t=11654
Have a look also at the release notes from each version after your 5.10 here
https://www.centroidcnc.com/centroid_di ... loads.html
Uwe
Re: Testing Outputs with MDI commands
Posted: Mon Jun 30, 2025 5:28 pm
by RJS100
Thanks Uwe. I looked in the download section and beta section and could not find this. Thanks for these links.
Re: Testing Outputs with MDI commands
Posted: Tue Jul 01, 2025 4:18 pm
by cnckeith
fyi those are v5.40.0 early
change notes and will be edited with additional information and become the release notes, release notes will have more detail in them as they act as feature documentation as well.
