NUM FLEXIUM Commands
NUM Flexium Control Driver offers several commands to control and manage the CNC devices.
These commands can cause unwanted behavior on the CNC machine. The target device 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}.Common.resetCnc | Resets the Cnc for common axis channels |
Cnc{c}.Nc{n}.startCnc | Starts the Cnc for an independent axis channel |
Cnc{c}.Nc{n}.resetCnc | Resets 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 Parameter (E Parameter, ...) |
ActivateProgram
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 name 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"
}
]
}
writeParameter
Writes a Parameter.
Be careful when writing E-Parameters. These values can contain relevant machine configurations.
Argument | Description | Data Type |
---|---|---|
Address | Parameter address in Format "Yxxxxx" | System.String |
Value | Value for this parameter. Caution: Only the Flexium+ CNC Series accept floating point values. | 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.Double",
"Type": "Input"
}
]
}