Hello Guest it is September 19, 2020, 08:22:35 AM

Author Topic: List of Control States?  (Read 1188 times)

0 Members and 1 Guest are viewing this topic.

List of Control States?
« on: February 08, 2018, 01:15:11 PM »
Hi All,
have had reason recently to consider Machs control states, I've had my nose rubbed in 'Idle' but I'm not sure what all the other states are or what they mean.
Is there a list or explanation somewhere?

Craig
My wife left with my best friend...
     and I miss him!

Offline Chaoticone

*
  • *
  •  5,628 5,628
  • Precision Chaos
    • View Profile
Re: List of Control States?
« Reply #1 on: February 08, 2018, 03:09:33 PM »
These could be stuffed into a table (like the mcErrorCheck module) pretty quick using notepad++.
Code: [Select]
MC_STATE_IDLE =                   0,
MC_STATE_HOLD =                   1,
MC_STATE_FRUN_SUB =               2,
MC_STATE_MRUN_SUB =               3,
MC_STATE_JOG =                    4,
MC_STATE_DRYRUN =                 5,
MC_STATE_HOME =                   6,
MC_STATE_CONFIG =                 7,
MC_STATE_FRUN =                   100,
MC_STATE_FRUN_FH =                101,
MC_STATE_FRUN_PROBE =             102,
MC_STATE_FRUN_PROBE_FH =          103,
MC_STATE_FRUN_THREAD =            104,
MC_STATE_FRUN_THREAD_FH =         105,
MC_STATE_FRUN_FH_JOG =            106,
MC_STATE_FRUN_TAP =               107,
MC_STATE_FRUN_MACROH =            108,
MC_STATE_FRUN_MACROH_JOG =        109,
MC_STATE_FRUN_SINGLE_BLOCK =      110,
MC_STATE_FRUN_RETRACT =           111,
MC_STATE_FRUN_HOMING =            112,
MC_STATE_FRUN_SINGLE_BLOCK_HOLD = 113,
MC_STATE_FRUN_END =               199,
MC_STATE_MRUN =                   200,
MC_STATE_MRUN_FH =                201,
MC_STATE_MRUN_PROBE =             202,
MC_STATE_MRUN_PROBE_FH =          203,
MC_STATE_MRUN_THREAD =            204,
MC_STATE_MRUN_THREAD_FH =         205,
MC_STATE_MRUN_TAP =               206,
MC_STATE_MRUN_MACROH =            207,
MC_STATE_MRUN_MACROH_JOG =        208,
MC_STATE_MRUN_RETRACT =           209,
MC_STATE_MRUN_HOMING =            210,
MC_STATE_MRUN_END =               299,
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!
Re: List of Control States?
« Reply #2 on: February 08, 2018, 03:43:14 PM »
Code: [Select]
mcStateCheck = {
[0] = "MC_STATE_IDLE",
[1] = "MC_STATE_HOLD",
[2] = "MC_STATE_FRUN_SUB",
[3] = "MC_STATE_MRUN_SUB",
[4] = "MC_STATE_JOG",
[5] = "MC_STATE_DRYRUN",
[6] = "MC_STATE_HOME",
[7] = "MC_STATE_CONFIG",
[100] = "MC_STATE_FRUN",
[101] = "MC_STATE_FRUN_FH",
[102] = "MC_STATE_FRUN_PROBE",
[103] = "MC_STATE_FRUN_PROBE_FH",
[104] = "MC_STATE_FRUN_THREAD",
[105] = "MC_STATE_FRUN_THREAD_FH",
[106] = "MC_STATE_FRUN_FH_JOG",
[107] = "MC_STATE_FRUN_TAP",
[108] = "MC_STATE_FRUN_MACROH",
[109] = "MC_STATE_FRUN_MACROH_JOG",
[110] = "MC_STATE_FRUN_SINGLE_BLOCK",
[111] = "MC_STATE_FRUN_RETRACT",
[112] = "MC_STATE_FRUN_HOMING",
[113] = "MC_STATE_FRUN_SINGLE_BLOCK_HOLD",
[199] = "MC_STATE_FRUN_END",
[200] = "MC_STATE_MRUN",
[201] = "MC_STATE_MRUN_FH",
[202] = "MC_STATE_MRUN_PROBE",
[203] = "MC_STATE_MRUN_PROBE_FH",
[204] = "MC_STATE_MRUN_THREAD",
[205] = "MC_STATE_MRUN_THREAD_FH",
[206] = "MC_STATE_MRUN_TAP",
[207] = "MC_STATE_MRUN_MACROH",
[208] = "MC_STATE_MRUN_MACROH_JOG",
[209] = "MC_STATE_MRUN_RETRACT",
[210] = "MC_STATE_MRUN_HOMING",
[299] = "MC_STATE_MRUN_END",
}

Chaoticone put it in code tags so the formatting would be correct.
« Last Edit: February 08, 2018, 03:45:42 PM by Chaoticone »
Re: List of Control States?
« Reply #3 on: February 08, 2018, 04:27:29 PM »
Hi Guys,
very kool indeed. Will need to spend some time trying to digest what they all mean.....its a learning hobby!

Craig
My wife left with my best friend...
     and I miss him!
Re: List of Control States?
« Reply #4 on: February 08, 2018, 04:30:54 PM »
like:
MRUN
FRUN
FH

the rest 'seem' straight forward

RT

Offline Chaoticone

*
  • *
  •  5,628 5,628
  • Precision Chaos
    • View Profile
Re: List of Control States?
« Reply #5 on: February 08, 2018, 05:43:20 PM »
Look at all the options for enabled states for a button in screen editor. That may help.
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!
Re: List of Control States?
« Reply #6 on: February 08, 2018, 06:14:57 PM »
Hi,
just clicked,
MRUN= MDI run
FRUN= File run

Craig
My wife left with my best friend...
     and I miss him!