NUM AXIUM Commands
NUM Axium Control Driver offers several commands to control and manage the CNC devices.
These commands can cause unwanted behavior on the CNC machine. The PLC is overwritten when sending these commands! Caution when doing so.
Overview
Command | Description |
---|---|
Cnc{c}.Nc{n}.activateProgram | Activates a program for an independent axis channel |
Cnc{c}.Common.activateProgram | Activates a program for common axis channels |
Cnc{c}.Nc{n}.resetCnc | Resets the Cnc for an independent axis channel |
Cnc{c}.Common.resetCnc | Resets the Cnc for common axis channels |
Cnc{c}.Nc{n}.startCnc | Starts the Cnc for an independent axis channel |
Cnc{c}.Common.startCnc | Starts the Cnc for common axis channels |
Cnc{c}.Nc{n}.stopCnc | Stops the Cnc for an independent axis channel |
Cnc{c}.Common.stopCnc | Stops the Cnc for common axis channels |
Cnc{c}.Nc{n}.writeCncMode | Writes the Cnc mode for an independent axis channel |
Cnc{c}.Common.writeCncMode | Writes the Cnc mode for common axis channels |
Cnc{c}.Cnc.writeParameter | Writes 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.
Argument | Description | Data Type |
---|---|---|
ProgramName | Program 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.
Argument | Description | Data Type |
---|---|---|
CncMode | Cnc 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.
Be careful when writing E-Parameters. Some of these values contain relevant machine configuration data.
Argument | Description | Data Type |
---|---|---|
Address | E Parameter address in Format "Exxxxx" | System.String |
Value | Value for this parameter | System.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.
Be careful when writing PLC-Parameters. Some of these values contain relevant runtime data.
Argument | Description | Data Type |
---|---|---|
Address | PLC Parameter address in Format "Yxxxxx" ** | System.String |
Value | Value 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:
Format | Example | Description |
---|---|---|
Boolean (0..7) | M0.0 | Write the first Bit of Address M0 |
Byte (.B) | M0.B | Write the first Byte (8 Bits) of Address M0 |
Word (.W) | M0.W | Write the first Word (16 Bits) of Address M0 |
Manipulating I or Q data can be dangerous, as it can impact the machines moving parts directly.