ANDRON Data Access
This chapter outlines all possible native addresses to read or write data. These addresses must be configured within the device configuration.
Format
A native ANDRON address has following format:
{memory base}.{memory type}.{data type}:{address}(.{bit}?)(°{axis}?)
{bit}
and {axis}
are optional.
Memory Base
The CNC control provides different bases for memory:
Memory Base | Description |
---|---|
Global | Global memory base. |
Nc1 | Nc1 memory base. For the ANDRON control driver is only the first Nc channel possible. |
Memory Type
Each memory base can have one or several memory types.
Memory Base | Memory Type | Description |
---|---|---|
Global | System | Global CNC Information |
Nc1 | Program | Program Information |
Axis | Axis positions and Speeds (absolute pos, machine pos, ...) | |
State | Running state of the machine | |
HParam | Manual Parameter | |
PLCParam | PLC Parameter |
Data Types
Data Type | Description | System Data Type |
---|---|---|
Bool | Bit information. 0 = not set; 1 = set | System.Boolean |
Uint8 | Byte information (unsigned 8bit integer) | System.Byte |
Uint16 | Word information (unsigned 16bit integer) | System.UInt16 |
Uint32 | DWord information (unsigned 32bit integer) | System.UInt32 |
Int32 | Signed integer (32bit) | System.Int32 |
Float64 | Floating point number (64bit) | System.Double |
Examples
"Nc1.Program.String:0" address of the current program name.
Global System Configuration
The global system configuration can only be read or monitored. Writing is not possible.
Address | Description | Data Type |
---|---|---|
Global.System.Int32:1 | Connection status of the control (0 = Disconnected; 1 = Connected) | System.Int32 |
Global.System.String:0 | Name of current control | System.String |
Nc Program Configuration
The Nc Program configuration can only be read or monitored. Writing is not possible.
Address | Description | Data Type |
---|---|---|
Nc1.Program.String:0 | Actual selected program name | System.String |
Nc1.Program.Int32:1 | Actual selected program path | System.Int32 |
Nc1.Program.Int32:2 | Actual selected program nesting | System.Int32 |
Nc1.Program.String:10 | Startup program name | System.String |
Nc1.Program.Int32:11 | Startup program path | System.Int32 |
Nc1.Program.Int32:12 | Startup program nesting | System.Int32 |
Nc1.Program.String:20 | Actual ident file name | System.String |
Nc1.Program.Int32:21 | Actual ident file path | System.Int32 |
Nc1.Program.Int32:22 | Actual ident file nesting | System.Int32 |
Nc1.Program.String:30 | Startup ident file name | System.String |
Nc1.Program.Int32:31 | Startup ident file path | System.Int32 |
Nc1.Program.Int32:32 | Startup ident file nesting | System.Int32 |
Nc1.Program.String:40 | Actual Nc set file name | System.String |
Nc1.Program.Int32:41 | Actual Nc set file path | System.Int32 |
Nc1.Program.Int32:42 | Actual Nc set file nesting | System.Int32 |
Nc1.Program.String:50 | Startup Nc set file name | System.String |
Nc1.Program.Int32:51 | Startup Nc set file path | System.Int32 |
Nc1.Program.Int32:52 | Startup Nc set file nesting | System.Int32 |
Nc State Configuration
The Nc State configuration can only be read or monitored. Writing is not possible.
Address | Description | Data Type |
---|---|---|
Nc1.State.Int32:0 | Running State (0 = Ready; 1 = Stop; 2 = Hold; 3 = Running) | System.Int32 |
Nc1.State.Int32:1 | Operation Mode (0 = MDI; 1 = Auto; 2 = Handle; 3 = Operation Mode not defined) | System.Int32 |
Nc1.State.Int32:2 | Alarm State (0 = No alarm; 1 = Alarm; 2 = Emergency Stop; 3 = Not operational) | System.Int32 |
Nc Axis Configuration
Reading the axis position and spindle speeds.
Address | Description | Data Type |
---|---|---|
Nc1.Axis.Float64:0 | Machine positions | System.Double[] |
Nc1.Axis.Float64:1 | Absolute positions | System.Double[] |
Nc1.Axis.Float64:2 | Relative positions | System.Double[] |
Nc1.Axis.Float64:3 | Distance to go | System.Double[] |
Nc1.Axis.Float64:4 | Spindle speed | System.Double[] |
Each of these memories can be also read by axis number:
Address | Description | Data Type |
---|---|---|
Nc1.Axis.Float64:0°{x} | Machine position of x-th axis | System.Double |
Nc1.Axis.Float64:1°{x} | Absolute position of x-th axis | System.Double |
Nc1.Axis.Float64:2°{x} | Relative position of x-th axis | System.Double |
Nc1.Axis.Float64:3°{x} | Distance to go of x-th axis | System.Double |
Nc1.Axis.Float64:4°{x} | Spindle speed of x-th axis | System.Double |
Manual Parameter
The manual parameter can be accessed by the HParam-memory type.
Address | Description | Data Type |
---|---|---|
Nc1.HParam.Float64:{x} | Manual Parameter {x} as floating point | System.Float64 |
Nc1.HParam.Int32:{x} | Manual Parameter {x} as integer | System.Int32 |
PLC Parameter
The PLC parameter accesses the PLC-NC memory channel.
Address | Description | Data Type |
---|---|---|
Nc1.PLCParam.Float64:{x} | PLC Parameter {x} as floating point | System.Float64 |
Nc1.PLCParam.Int32:{x} | PLC Parameter {x} as integer | System.Int32 |
IMPORTANT: This function is only available if the transparent data channel to PLC is ENABLE in the system configuration.
How to enable the transparent data channel:
- Start the tool
C:\Andron\SysConfig.exe
- Navigate to
->
"NC Server"->
"Allgemein" - Enable the option "Transparent Data Channel to SPS"
Example
For WALTER Machines, the integer parameter 0 and 1 are used to transmit the feedrate switch position (in %).
{
"Id": "39315EDF-9617-45D0-AA1D-82459BFD9D36",
"Name": "Current feedrate override",
"DataClass": "Event",
"DataType": "System.Double",
"Address": "Nc1.PLCParam.Int32:1",
"Access": {
"Receive": true
}
}