File

src/api/model/channel/activeToolProperties.ts

Extends

Base

Index

Properties
Methods

Properties

Public d
Type : Variable
Default value : <Variable>{}
Decorators :
@Listenable()

d. The active offset

Public dSubType
Type : Variable
Default value : <Variable>{}
Decorators :
@Listenable()

dSubType. Active tool. Code of the tool offset subtype.

Public dType
Type : Variable
Default value : <Variable>{}
Decorators :
@Listenable()

dType. Active tool. Code of the tool offset type.

Public nominalLife
Type : Variable
Default value : <Variable>{}
Decorators :
@Listenable()

nominalLife. Tool offset being prepared. Nominal life.

Public nxt
Type : Variable
Default value : <Variable>{}
Decorators :
@Listenable()

nxt. The Next active tool

Public remLife
Type : Variable
Default value : <Variable>{}
Decorators :
@Listenable()

remLife. Tool offset being prepared. Remaining life.

Public t
Type : Variable
Default value : <Variable>{}
Decorators :
@Listenable()

t. The active tool

Public tofl1
Type : Variable
Default value : <Variable>{}
Decorators :
@Listenable()
Public tofl2
Type : Variable
Default value : <Variable>{}
Decorators :
@Listenable()
Public tofl3
Type : Variable
Default value : <Variable>{}
Decorators :
@Listenable()
Public toflw1
Type : Variable
Default value : <Variable>{}
Decorators :
@Listenable()
Public toflw2
Type : Variable
Default value : <Variable>{}
Decorators :
@Listenable()
Public toflw3
Type : Variable
Default value : <Variable>{}
Decorators :
@Listenable()

Methods

createListener
createListener(props: Array)

This method will return a custom listener object designed for listening to changes on some concrete properties. Pooling can be avoived, so it can represent a significant better performance.

const listener1 = cnc.getChannel(1).activeToolProperties.createListener(['t', 'd']);
listener1.start((activeToolPoroperties, props) => {
console.log(`"t" or "d" (or both) have changed: ${props.join(',')} (within the last 500 ms)`)})
}, { debounceTime: 500 });
Parameters :
Name Type Optional Description
props Array<string> No

Array containing string with current objects propeties (@Listenables) names

Returns : Listener
deleteListener
deleteListener(props: Array)

This method will remove the props listenar from current active tool properties entity. The properties listener has certain cost and must be un-plugged when is no longer needed.

// Considering previous example
const listener1 = cnc.getChannel(1).activeToolProperties.createListener(['t', 'd']);
listener1.start((activeToolProperties, props) => {
console.log(`"t" or "d" (or both) have changed: ${props.join(',')} (within the last 500 ms)`)})
}, { debounceTime: 500 });


cnc.getChannel(1).activeToolProperties.deleteListener(listener1);
// After calling deleteListener "listener1"  will be null, ready for garbage collector.
Parameters :
Name Type Optional Description
props Array<string> No

Array containing string with current objects propeties (@Listenable()) names

Returns : void

results matching ""

    No results matching ""