Skip to main content
Version: 2.7

NUM AXIUM Commands

NUM Axium Control Driver offers several commands to control and manage the CNC devices.

danger

These commands can cause unwanted behavior on the CNC machine. The PLC is overwritten when sending these commands! Caution when doing so.

Overview

CommandDescription
Cnc{c}.Nc{n}.activateProgramActivates a program for an independent axis channel
Cnc{c}.Common.activateProgramActivates a program for common axis channels
Cnc{c}.Nc{n}.resetCncResets the Cnc for an independent axis channel
Cnc{c}.Common.resetCncResets the Cnc for common axis channels
Cnc{c}.Nc{n}.startCncStarts the Cnc for an independent axis channel
Cnc{c}.Common.startCncStarts the Cnc for common axis channels
Cnc{c}.Nc{n}.stopCncStops the Cnc for an independent axis channel
Cnc{c}.Common.stopCncStops the Cnc for common axis channels
Cnc{c}.Nc{n}.writeCncModeWrites the Cnc mode for an independent axis channel
Cnc{c}.Common.writeCncModeWrites the Cnc mode for common axis channels
Cnc{c}.Cnc.writeParameterWrites an E/L or PLC Parameter

Activate Program

Activates a program. There are two possibilities to activate a program:

  • Activate a Program for an independent axis channel, then the NC channel is required.
  • Activate a Program for common axis channels.

You must choose the option with the command address.

ArgumentDescriptionData Type
ProgramNameProgram number to activate. Example: NUM File %123.0 equals program name "123.0"System.String

Example:

{
"Id": "<generate your own id>",
"Name": "Activate Program",
"Type": "CommandNode",
"Address": "Cnc0.Common.activateProgram",
"Arguments": [
{
"Name": "ProgramName",
"DataType": "System.String",
"Type": "Input"
}
]
}

resetCnc

Resets the Cnc. There are two possibilities to reset the Cnc:

  • Reset Cnc for an independent axis channel, then the NC channel is required.
  • Reset Cnc for common axis channels.

You must choose the option with the command address. This function does not require any arguments.

Example:

{
"Id": "<generate your own id>",
"Name": "Reset Cnc ",
"Type": "CommandNode",
"Address": "Cnc0.Common.resetCnc",
"Arguments": []
}

startCnc

Starts the Cnc. There are two possibilities to start the Cnc:

  • Start Cnc for an independent axis channel, then the NC channel is required.
  • Start Cnc for common axis channels.

You must choose the option with the command address. This function does not require any arguments.

Example:

{
"Id": "<generate your own id>",
"Name": "Start Cnc ",
"Type": "CommandNode",
"Address": "Cnc0.Common.startCnc",
"Arguments": []
}

stopCnc

Stops the Cnc. There are two possibilities to stop the Cnc:

  • Stop Cnc for an independent axis channel, then the NC channel is required.
  • Stop Cnc for common axis channels.

You must choose the option with the command address. This function does not require any arguments.

Example:

{
"Id": "<generate your own id>",
"Name": "Stop Cnc ",
"Type": "CommandNode",
"Address": "Cnc0.Common.stopCnc",
"Arguments": []
}

writeCncMode

Writes the Cnc mode. There are two possibilities to write the Cnc mode:

  • Write Cnc mode for an independent axis channel, then the NC channel is required.
  • Write Cnc mode for common axis channels.

You must choose the option with the command address.

ArgumentDescriptionData Type
CncModeCnc mode to activate. See Dynamic information.System.Int32

Example:

{
"Id": "<generate your own id>",
"Name": "Select Cnc mode",
"Type": "CommandNode",
"Address": "Cnc0.Common.writeCncMode",
"Arguments": [
{
"Name": "CncMode",
"DataType": "System.Int32",
"Type": "Input"
}
]
}

writeEParameter

Writes an E Parameter.

caution

Be careful when writing E-Parameters. Some of these values contain relevant machine configuration data.

ArgumentDescriptionData Type
AddressE Parameter address in Format "Exxxxx"System.String
ValueValue for this parameterSystem.Double, System.Int32

Example:

{
"Id": "<generaze your own id>",
"Name": "Write E Parameter",
"Type": "CommandNode",
"Address": "Cnc0.Cnc.writeParameter",
"Arguments": [
{
"Name": "Address",
"DataType": "System.String",
"Type": "Input"
},
{
"Name": "Value",
"DataType": "System.Int32",
"Type": "Input",
"MinMaxConstraint": {
"MinValue": 0,
"MaxValue": 32000
}
}
]
}

writePLCParameter

Writes a PLC Parameter.

caution

Be careful when writing PLC-Parameters. Some of these values contain relevant runtime data.

ArgumentDescriptionData Type
AddressPLC Parameter address in Format "Yxxxxx" **System.String
ValueValue for this parameter (define limits for the specified data type manually)System.Double, System.UInt32, System.Boolean

Address Format: **

Y can be:

  • I = PLC Input-Var
  • Q = PLC Output-Var
  • W = PLC write MEM-Var
  • M = PLC write MEM-Var

Address must be written like this:

{Type + AddressOffset + DataFormat}

Available data formats are:

FormatExampleDescription
Boolean (0..7)M0.0Write the first Bit of Address M0
Byte (.B)M0.BWrite the first Byte (8 Bits) of Address M0
Word (.W)M0.WWrite the first Word (16 Bits) of Address M0
caution

Manipulating I or Q data can be dangerous, as it can impact the machines moving parts directly.