Before using any of these macros confirm you have copied ALL the macro files from C:\Mach3\macros\JustMacros to all the Mach3 profiles you are using.

Expansion Relay Smart MCodes

M410 Expansion Relay 1, Off
This will turn Expansion Relay 1 off
M411 Expansion Relay 1, On
This will turn Expansion Relay 1 on.

M420 Expansion Relay 2, Off
This will turn Expansion Relay 2 off
M421 Expansion Relay 2, On
This will turn Expansion Relay 2 on.

M430 Expansion Relay 3, Off
This will turn Expansion Relay 3 off
M431 Expansion Relay 3, On
This will turn Expansion Relay 3 on.

M440 Expansion Relay 4, Off
This will turn Expansion Relay 4 off
M431 Expansion Relay 4, On
This will turn Expansion Relay 4 on.

M450 Expansion Relay 5, Off
This will turn Expansion Relay 5 off
M451 Expansion Relay 5, On
This will turn Expansion Relay 5 on.

M460 Expansion Relay 6, Off
This will turn Expansion Relay 6 off
M461 Expansion Relay 6, On
This will turn Expansion Relay 6 on.

M470 Expansion Relay 7, Off
This will turn Expansion Relay 5 off
M471 Expansion Relay 7, On
This will turn Expansion Relay 7 on.

M480 Expansion Relay 8, Off
This will turn Expansion Relay 8 off
M481 Expansion Relay 8, On
This will turn Expansion Relay 8 on.

Smart WiFi Relay Smart MCodes

Confirm the the Smart WiFi Relays are enabled before attempting to use them. This is done from the Settings->Initial page as shown.


M490 Smart WiFi Relay, Off
This will turn a Smart Wifi Relay Off, it is used as follows:
    M490 P1001
    M490 P1002

The P parameter is automatically created when you set a Relay as Control Allowed in the SmartScreen Utility (NickName)

M491 Smart WiFi Relay, On
This will turn a Smart Wifi Relay On, it is used as follows:
    M491 P1001
    M491 P1002

The P parameter is automatically created when you set a Relay as Control Allowed in the SmartScreen Utility (NickName)

M492 Smart WiFi Relay, All Off, it is used as follows:
    M492

M493 Smart WiFi Relay, All Off, it is used as follows:
    M493

M494 Smart WiFi Relay, Time Delay On, it is used as follows:
    M494 P1000 Q10

The P parameter is automatically created when you set a Relay as Control Allowed in the SmartScreen Utility (NickName)
The Q parameter is the time delay in seconds

M495 Smart WiFi Relay, Time Delay Off, it is used as follows:
    M495 P1000 Q30

The P parameter is automatically created when you set a Relay as Control Allowed in the SmartScreen Utility (NickName)
The Q parameter is the time delay in seconds



Smart Program Stop and End MCodes

M300 Smart Program Stop and End

This is an enhanced version of M30, which confirms that all aspects Mach3, and SmartScreens are stopped. With Mach3 there could be some ancillary items still operating in the background. Then it rewinds the GCode, and provides a confirmation message that everything completed successfully.

Advanced Use: Smart Program Stop and End MCodes

M310 Smart Program Stop, Mach3 and Computer shutdown

This MCode will does all of the things that M300 does, then it displays a Timed Message that will confirm if you want to shutdown Mach3 and the computer.
The default answer will be NO, so if you do not answer it WILL NOT shutdown.

M311 Smart Program Stop, Mach3 and Computer shutdown

This MCode will does all of the things that M300 does, then it displays a Timed Message that will confirm if you want to shutdown Mach3 and the computer.
The default answer will be YES, so if you do not answer it WILL shutdown.

M320 Smart Program Stop, Mach3, Virtual Session, and Computer shutdown

This is used if you are running Mach3 and SmartScreens in a Virtual session like VMWare
This MCode will does all of the things that M300 does, then it displays a Timed Message that will confirm if you want to shutdown Mach3, the Virtual session, and then the computer.
The default answer will be NO, so if you do not answer it WILL NOT shutdown.

M321 Smart Program Stop, with Mach3, Virtual Session, and Computer shutdown

This is used if you are running Mach3 and SmartScreens in a Virtual session like VMWare
This MCode will does all of the things that M300 does, then it displays a Timed Message that will confirm if you want to shutdown Mach3, the Virtual session, and then the computer.
The default answer will be YES, so if you do not answer it WILL shutdown.

Plasma Specific Smart MCodes

M910 Torch Height Controller (THC), Off
This will turn the Torch Height Controller (THC), Off
M920 Torch Height Controller (THC), On
This will turn the Torch Height Controller (THC), On

M930 Probe in Contact, Test
Mach3 will fail during probing, this MCode is used to first test if the Probe is in contact, BEFORE probing

M931 Probe or Proximity, Test
This MCode is used confirm if it was the Proximity Sensor, or the Probing Sensor which was triggered, so the Plasma cutter can move to the correct Pierce Height