Skip to main content
Version: 3.2

HEIDENHAIN iTNC 530 Nodes

Read an iTNC 530 control's run state, programs and overrides from a pipeline.

Operations
Read Tag · Read Status
Requests
One per tag, four per status
Writes
None: the connector is read only

Use HEIDENHAIN iTNC 530 controls in pipelines. Each function authored on an iTNC 530 connection is available as a matching node in the Pipeline Designer: HEIDENHAIN iTNC 530 Read Tag and HEIDENHAIN iTNC 530 Read Status.

For connection setup and the tags, see the HEIDENHAIN iTNC 530 connection guide.

A control does not send data on its own, so there is no trigger node: to poll one, drive the reads from a Schedule trigger.

Configuration Quick Reference​

FieldWhat you chooseDetails
ParametersConnection, Function, Function Parameters, Timeout OverrideSelect the iTNC 530 connection, pick a function, bind parameters with expression support, and optionally override the timeout.
SettingsDescription, Timeout (seconds), Retry on Timeout, Retry on Fail, On ErrorNode description, maximum execution time, retry behaviour and error strategy. All execution settings default to pipeline-level values.

Every node shares the same Parameters: Connection (the iTNC 530 connection profile), Function (a function of the node's type on that connection), Function Parameters and an optional Timeout Override in seconds. Neither function takes a ((parameter)): the tag is chosen when the function is saved.

The call's own facts ride along under _metadata next to the four every connected node carries. Every iTNC 530 node delivers _metadata.method (the operation that ran, e.g. heidenhain530.read.tag), _metadata.connectionId (the connection it ran over) and _metadata.protocol (heidenhain530).


HEIDENHAIN iTNC 530 Read Tag nodeHEIDENHAIN iTNC 530 Read Tag node

Read Tag node

HEIDENHAIN iTNC 530 Read Tag Node​

Supported Function Types:

NodeFunctionPurposeCommon Use Cases
HEIDENHAIN iTNC 530 Read Tag (connected.heidenhain530.read.tag)heidenhain530.read.tagRead one run-state value of the controlWhether a program runs, the feed override, the current block

The node reads the tag the function names, with one LSV2 request. See Tags.

Output Structure​

{
"result": {
"tag": "running",
"value": true,
"quality": "good"
}
}
KeyMeaning
result.tagThe tag read
result.valueThe value: true/false for running; a whole number for executionMode, programStatus and programBlock; text for the two names and the two programs; a percent number for the overrides
result.qualitygood. A value the control did not give fails the node instead of storing one, so a value that reached the result is the control's own

Read a value with $node["Spindle Override"].result.value.


HEIDENHAIN iTNC 530 Read Status nodeHEIDENHAIN iTNC 530 Read Status node

Read Status node

HEIDENHAIN iTNC 530 Read Status Node​

Supported Function Types:

NodeFunctionPurposeCommon Use Cases
HEIDENHAIN iTNC 530 Read Status (connected.heidenhain530.read.status)heidenhain530.read.statusRead every run-state value of the control in four requestsA machine-status tile, mode, program and overrides recorded together

The node reads all eleven tags and returns each by its name. The control answers four kinds of run information, and each is asked for once: the mode, the program state (which also gives running), the programs with the block number, and the three overrides. A tag the control does not give is reported by name without failing the others; the node fails only when the link fails or the control refuses a request. See Read Status.

Output Structure​

When every tag was read:

{
"result": {
"count": 11,
"values": {
"executionMode": 4,
"executionModeName": "AUTOMATIC",
"programStatus": 0,
"programStatusName": "STARTED",
"running": true,
"programBlock": 42,
"mainProgram": "TNC:\\NC_PROG\\PART1.H",
"currentProgram": "TNC:\\NC_PROG\\SUB.H",
"feedOverride": 100,
"spindleOverride": 80,
"rapidOverride": 50
},
"quality": "good",
"totalTags": 11,
"totalReads": 4
}
}

When a tag was not read, it is missing from values, its reason is in errors under its name, and quality is bad. A program state of 8 (undefined) is the usual case: it gives running no value.

{
"result": {
"count": 10,
"values": { "programStatus": 8, "programStatusName": "UNDEFINED", "feedOverride": 100 },
"errors": {
"running": "lsv2: running has no value: the control reports the program state as undefined (8)"
},
"quality": "bad",
"totalTags": 11,
"totalReads": 4
}
}
KeyMeaning
result.valuesEvery tag that was read, by its name
result.errorsThe reason for each tag that was not read, by its name. Present only when a tag was not read
result.countHow many tags were read
result.totalTagsHow many tags a status has: eleven
result.totalReadsHow many requests were sent: one per kind of run information, four
result.qualitygood when every tag was read, bad when one was not

Read a tag with $node["Mill Status"].result.values.feedOverride. Check $node["Mill Status"].result.errors before relying on every tag being present.


Errors​

ErrorMeaningRetried by the node settings?
tag must be one of [executionMode … rapidOverride], got …Shown when the function is saved: it names no tag of this connector, so it is not savedNo
the control refused … with T_ER, error type N, code MThe control refused the request, with its code (and pyLSV2's name for it when known). The connection is opened againYes
running has no valueThe program state is 8 (undefined)Yes
no answer from the control, or the connection closed after the request was sentThe request was sent and its answer did not come; the connection is opened againYes
the control's data cannot be readThe answer arrived whole, but not in the layout of its kindYes
not connectedThe connection is downYes

The full list, with what to change for each, is in the guide's Troubleshooting.


Settings Tab​

All iTNC 530 node types share the same Settings tab:

SettingTypeDefaultDescription
DescriptionText-Optional description displayed on the node
Timeout (seconds)NumberPipeline defaultMaximum time the node may run before timing out
Retry on TimeoutTogglePipeline defaultAutomatically retry the node if it times out
Retry on FailTogglePipeline defaultAutomatically retry the node if it fails. Every iTNC 530 node is a read, so running it again changes nothing on the control
On ErrorSelectionPipeline defaultError strategy: Pipeline Default (the pipeline's Error Handling setting), Stop Pipeline or Continue Execution

When left at their defaults, these settings inherit from the pipeline-level execution configuration. The retry settings do not retry a request refused before it was sent, such as an unknown tag (see Errors).

Test before wiring

Use the Test button in the function form (on the connection page) to run every iTNC 530 function against the control before wiring it into a pipeline.