M94 M95 Names to number?

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

cncian
Posts: 45
Joined: Thu Mar 05, 2020 1:15 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: A81087B4FFCB-0712192265
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Farmington Hills, MI

Re: M94 M95 Names to number?

Post by cncian »

Ryan Patterson wrote: Sun Nov 03, 2024 2:20 pm This really is not needed but thought it would be nice to have the Wizard define the outputs by name.
Have a look at your PLC program (*.src), starting approx. line 2090. The Wizard is adding comments after each line.


Ryan Patterson
Posts: 63
Joined: Wed Oct 16, 2024 3:30 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: M94 M95 Names to number?

Post by Ryan Patterson »

Thank you. That is exactly what I was looking for. I scanned the PLC file earlier but did not see it, and my search terms did not produce a match.

Than you


suntravel
Community Expert
Posts: 3659
Joined: Thu Sep 23, 2021 3:49 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 6433DB0446C1-08115074
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Germany

Re: M94 M95 Names to number?

Post by suntravel »

Complete list of your machine is in your PLC

Example:

Code: Select all

;------------------------------------------------------------------------------
; M functions - The System Variables in this section inform the
; PLC that an M function has been requested.
;------------------------------------------------------------------------------
M3                            IS SV_M94_M95_1 ;(Spindle CW)
M4                            IS SV_M94_M95_2 ;(Spindle CCW)
M8                            IS SV_M94_M95_3 ;(Flood On)
M10L                          IS SV_M94_M95_4 ;SET OpenChuck, RST CloseChuck
M7                            IS SV_M94_M95_5 ;(Mist)
M11L                          IS SV_M94_M95_6 ;RST OpenChuck, SET CloseChuck
M6                            IS SV_M94_M95_7 ;
ManualLubePump_SV             IS SV_M94_M95_8 ;Activates LubePump Manually
;                             IS SV_M94_M95_9 ;
M10M                          IS SV_M94_M95_10; SET TurnClampOn, M11 RST TurnClampOn
;                             IS SV_M94_M95_11;
;                             IS SV_M94_M95_12;
M13                           IS SV_M94_M95_13; Cutoff On, M14 Cutoff Off
;                             IS SV_M94_M95_14;
M15                           IS SV_M94_M95_15; M15 Tool Unclamp On, M16 Tool Unclamp Off
;                             IS SV_M94_M95_16;

M18                           IS SV_M94_M95_18;

M19                           IS SV_M94_M95_19;(Spindle Orient), M20 Off
;                             IS SV_M94_M95_20;

M22                           IS SV_M94_M95_22; Turn on PartChute, M23 off
;                             IS SV_M94_M95_23;

M27                           IS SV_M94_M95_27; Turn on VacuumOn, M28 off

DustFootActivate_SV           IS SV_M94_M95_28; DustFootActivate Output
LaserAlignActivate_SV         IS SV_M94_M95_29; LaserAlignActivate Output
PopUpPins_SV                  IS SV_M94_M95_30; PopUpPins Output
SpindleCooling_SV             IS SV_M94_M95_31; SpindleCooling Output

M32                           IS SV_M94_M95_32; TailStockInOut On, M33 TailStockInOut Off

M35                           IS SV_M94_M95_35; SET DustCollectionOn, M36 RST DustCollectionOn
AirBlowNozzle_SV        IS SV_M94_M95_36; (AirBlowNozzle)

M37                           IS SV_M94_M95_37; Set Laser Enable
PWMSelect_SV                  IS SV_M94_m95_38; Set PWMSelect
LaserReset_SV                 IS SV_M94_M95_39; Set LaserReset

PutbackComplete_SV            IS SV_M94_M95_40;
M41                           IS SV_M94_M95_41 ;(Spindle Low Range)
M42                           IS SV_M94_M95_42 ;(Spindle Medium Low Range)
M43                           IS SV_M94_M95_43 ;(Spindle Medium High Range)

OscillationOn_SV              IS SV_M94_M95_46 ;(OscillationOn)

M51_SV                        IS SV_M94_M95_51 ;(C-Axis Enable)

M61                           IS SV_M94_M95_61; OUTPUT1 (NOT the same as OUT1), M81 Off
M62                           IS SV_M94_M95_62; OUTPUT2 (NOT the same as OUT2), M82 Off
M63                           IS SV_M94_M95_63; OUTPUT3 (NOT the same as OUT3), M83 Off
M64                           IS SV_M94_M95_64; OUTPUT4 (NOT the same as OUT4), M84 Off
M65                           IS SV_M94_M95_65; OUTPUT5 (NOT the same as OUT5), M85 Off
M66                           IS SV_M94_M95_66; OUTPUT6 (NOT the same as OUT6), M86 Off
M67                           IS SV_M94_M95_67; OUTPUT7 (NOT the same as OUT7), M87 Off
M68                           IS SV_M94_M95_68; OUTPUT8 (NOT the same as OUT8), M88 Off

SpindleSpeedVariation_SV      IS SV_M94_M95_70;

M80_SV                        IS SV_M94_M95_80; (CarouselIn)
M81_SV                        IS SV_M94_M95_81; (CarouselOut)


DisableAxis1Limit             IS SV_M94_M95_101
DisableAxis2Limit             IS SV_M94_M95_102
DisableAxis3Limit             IS SV_M94_M95_103
DisableAxis4Limit             IS SV_M94_M95_104
DisableAxisLimits             IS SV_M94_M95_105
AutoSquareRelay_SV      IS SV_M94_M95_106

M94M95111_SV                  IS SV_M94_M95_111
M94M95112_SV                  IS SV_M94_M95_112
M94M95113_SV                  IS SV_M94_M95_113
M94M95114_SV                  IS SV_M94_M95_114
M94M95115_SV                  IS SV_M94_M95_115
M94M95116_SV                  IS SV_M94_M95_116
M94M95117_SV                  IS SV_M94_M95_117
M94M95118_SV                  IS SV_M94_M95_118
M94M95119_SV                  IS SV_M94_M95_119
M94M95120_SV                  IS SV_M94_M95_120
M94M95121_SV                  IS SV_M94_M95_121
M94M95122_SV                  IS SV_M94_M95_122
M94M95123_SV                  IS SV_M94_M95_123
M94M95124_SV                  IS SV_M94_M95_124
M94M95125_SV                  IS SV_M94_M95_125
M94M95126_SV                  IS SV_M94_M95_126
Uwe


cncsnw
Community Expert
Posts: 4595
Joined: Wed Mar 24, 2010 5:48 pm

Re: M94 M95 Names to number?

Post by cncsnw »

A few points:

"OUTPUT1", "OUTPUT2", "OUTPUT3" etc. are function names provided by the Wizard and its supporting PLC program. They are not necessarily the same as OUT1, OUT2 and OUT3 on the Acorn board, which are physical relay output points. If you are using the standard Acorn PLC program, and you have not assigned "OUTPUT1" to any physical output via the Wizard, then M61 and M81 will not have any effect.

SV_M94_M95_nn are requests from the CNC program to the PLC program, and do not have any fixed connection to any particular physical outputs. It is up to the PLC program to decide what -- if anything -- to do with a particular SV_M94_M95_nn request.

In general, the PLC program, and the CNC macros that work with it, are free to allocate SV_M94_M95_nn requests for any purpose that may be needed.

Only a small handful have native support in CNC12: M3, M4, M7, M8 and M10. The rest are defined only by the particular PLC program and CNC macros.

There is not necessarily an SV_M94_M95_nn request that will control any particular physical or logic output. The author of the PLC program may decide that a given output is better handled directly by PLC logic, rather than by pass-through requests from a CNC macro.

The only sure way to know what a given SV_M94_M95_nn request does, or whether there is such a request for a given output, is to read the PLC program and macro files.


Post Reply