File

src/api/model/channel/machiningConditionsProperties.ts

Extends

Base

Index

Properties
Methods

Properties

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

_feedhol. True if axis stopped but spindles keep spinning. (This variable reflects the status of the mark _FEEDHOL of the PLC. If the PLC turns this mark off, the channel stops the axes, but keeps the spindles turning. The status of this mark does not affect the independent axes.)

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

incjogidx. Position selected at the switch. 1 Position 1. 2 Position 10. 3 Position 100. 4 Position 1000. 5 Position 10000.

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

cncmanmode. Type of movement selected at the switch for all the axes. 1 Handwheel mode. 2 Continuous jog mode. 3 Incremental jog mode.

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

cncmpgidx. Position selected at the switch. 1 Position 1. 2 Position 10. 3 Position 100.

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

cncmsg Last active cnc message.

Public collisionoff
Type : Variable
Default value : <Variable>{}
Decorators :
@Listenable()
Public collisionperf
Type : Variable
Default value : <Variable>{}
Decorators :
@Listenable()
Public dynovr
Type : Variable
Default value : <Variable>{}
Decorators :
@Listenable()

dynovr. Percentage applicable to all the dynamics variables of all the axes of the channel.

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

extorg. The active origin [7-99] when G159 is active

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

feed. Feedrate active in G94.

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

fix. Activa fixture

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

fman. Jogging feedrate in G94

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

fprev. Feedrate active in G95.

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

fprman. Function G95 admitted in jog mode

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

freal. The real feedrate

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

frealpr. The programmed feedrate

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

fro. Active feedrate (feed override) percentage.

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

ftime. Machining time in G93 (in seconds).

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

geoconfig. Channels's plane configuration (0 = plane, 1 = trihedral)

Public gsBits
Type : any
Default value : {}
Decorators :
@Listenable()

Data estructure resolving Gs bit values TODO: define type

Public gsHash
Type : string
Decorators :
@Listenable()

Generated hash based on Gs and highlevel instructions values (for fast change detection)

Public highLevelInstructions
Type : any
Default value : {}
Decorators :
@Listenable()

Data estructure resolving Gs bit values in map type

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

incjogidx. Active position for all the axes. 1 Position 1. 2 Position 10. 3 Position 100. 4 Position 1000. 5 Position 10000.

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

kinId. Number of the active kinematics. If no kinematics is active, the variable will return a ꞏ0ꞏ value

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

manfpr. Jogging feedrate in G95

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

manmode. Type of movement active for all the axes. 1 Handwheel mode. 2 Continuous jog mode. 3 Incremental jog mode.

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

mpgidx. Active position for all the handwheels. 1 Position 1. 2 Position 10. 3 Position 100.

Public msBits
Type : any
Default value : {}
Decorators :
@Listenable()

Data estructure resolving Ms bit values TODO: define type

Public msHash
Type : string
Decorators :
@Listenable()

Generated hash based on Ms values (for fast change detection)

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

prgf. Feedrate by program in G94.

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

prgfpr. Feedrate by program in G95.

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

progs. Speed active by program for G97. ( a or sp prgs in manual)

Public toi
Type : number
Default value : 0
Decorators :
@Listenable()

toi. Tool being prepared. Radius wear (desgaste).

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

tok. Tool being prepared. Length wear (desgaste)

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

tol. Tool being prepared. Length.

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

tor. Tool being prepared. Radius.

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).machiningConditionsProperties.createListener(['freal', 'frealpr']);
listener1.start((activeToolPoroperties, props) => {
console.log(`Changes on  ${props.join(',')} (within the last 250 ms)`)})
}, { debounceTime: 250 });
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 machining conditions properties. The properties listener has certain cost and must be un-plugged when is no longer needed.

// Considering previous example
const listener1 = cnc.getChannel(1).machiningConditionsProperties.createListener(['freal', 'frealpr']);
listener1.start((activeToolPoroperties, props) => {
console.log(`Changes on  ${props.join(',')} (within the last 250 ms)`)})
}, { debounceTime: 250 });


cnc.getChannel(1).machiningConditionsProperties.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 ""