File

src/api/model/general.ts

Description

Class

Extends

Base

Index

Properties
Methods
Accessors

Constructor

constructor(generalRaw: any, cncKernelType: enums.CncKernelType)
Parameters :
Name Type Optional
generalRaw any No
cncKernelType enums.CncKernelType No

Properties

Public cncNodeIndex
Type : number
Default value : 0
Decorators :
@Listenable()
Public cncPaths
Type : any
Default value : {}

Configured paths of current cnc

Public cncType
Type : string
Default value : ""
Decorators :
@Listenable()

cncType.

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

naxis. total axes number with empty positions of the yielded axes

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

nchannel. number of channels

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

nspindle. number of spindles

Public protectionMode
Type : string
Default value : ""

CNC protection mode: ADMIN, SETUP, USER

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

simuspeed. Percentage of simulation speed (between 0% and 100%).

Methods

Public enterDiagnosticMode
enterDiagnosticMode()

Method that makes enter cnc in diagnostic mode

Public Async getCncId
getCncId()

Get cnc identification

Returns a promise. This promise is fulfilled with reply object ServiceResponse or is rejected with CncServiceOperationException when something goes wrong.

return object will contain the returnCode, if value is 0 everything went well, if not data will have the explanation of the error.

Public getCNCMessageSnapshot
getCNCMessageSnapshot()

Gets the current cnc message list

Returns a promise. This promise is fulfilled with reply object ServiceResponse or is rejected with CncServiceOperationException when something goes wrong.

return object will contain the returnCode, if value is 0 everything went well, if not data will have the explanation of the error.

Public getCncPaths
getCncPaths()

Method that returns all configured cnc paths.

Returns a promise. This promise is fulfilled with reply object ServiceResponse or is rejected with CncServiceOperationException when something goes wrong.

return object will contain the returnCode, if value is 0 everything went well, if not data will have the explanation of the error.

Public getCncType
getCncType()

Get cnc type

Returns a promise. This promise is fulfilled with reply object ServiceResponse or is rejected with CncServiceOperationException when something goes wrong.

return object will contain the returnCode, if value is 0 everything went well, if not data will have the explanation of the error.

Public Async getCncVersion
getCncVersion()

Get cnc version

Returns a promise. This promise is fulfilled with reply object ServiceResponse or is rejected with CncServiceOperationException when something goes wrong.

return object will contain the returnCode, if value is 0 everything went well, if not data will have the explanation of the error.

Public getErrorInfo
getErrorInfo(cncKernelType: number, errorPosition: number, language: string)

get error info It calls to CommHmiNodeServer to call appropiate REST API route.

Returns a promise. This promise is fulfilled with reply object ServiceResponse or is rejected with CncServiceOperationException when something goes wrong.

return object will contain the returnCode, if value is 0 everything went well, if not data will have the explanation of the error.

Parameters :
Name Type Optional Description
cncKernelType number No

real/simulation

errorPosition number No

number of the error which info must be retrieved

language string No

language in which the info must be retrieved

Public getErrorSnapshot
getErrorSnapshot()

Gets the current error/warning list

Returns a promise. This promise is fulfilled with reply object ServiceResponse or is rejected with CncServiceOperationException when something goes wrong.

return object will contain the returnCode, if value is 0 everything went well, if not data will have the explanation of the error.

Public getKernelMessage
getKernelMessage(messageID: number, language: string)

get kernel message text It calls to CommHmiNodeServer to call appropiate REST API route.

Returns a promise. This promise is fulfilled with reply object ServiceResponse or is rejected with CncServiceOperationException when something goes wrong.

return object will contain the returnCode, if value is 0 everything went well, if not data will have the explanation of the error.

Parameters :
Name Type Optional Description
messageID number No

ID of the message whose text is to be retrieved

language string No

language in which the text must be retrieved

Public getKernelMessageSnapshot
getKernelMessageSnapshot()

Gets the current kernel message list

Returns a promise. This promise is fulfilled with reply object ServiceResponse or is rejected with CncServiceOperationException when something goes wrong.

return object will contain the returnCode, if value is 0 everything went well, if not data will have the explanation of the error.

Public getMasterSlaveAxisInfo
getMasterSlaveAxisInfo()

Implements the getMasterSlaveAxisInfo service call. Method that returns the master/slave relationships of the axes It calls to CommHmiNodeServer to call appropiate REST API route.

Returns a promise. This promise is fulfilled with reply object if everything is ok or is rejected with CncServiceOperationException when something goes wrong.

Public getPLCMessageSnapshot
getPLCMessageSnapshot()

Gets the current PLC message list

Returns a promise. This promise is fulfilled with reply object ServiceResponse or is rejected with CncServiceOperationException when something goes wrong.

return object will contain the returnCode, if value is 0 everything went well, if not data will have the explanation of the error.

Public getSwOptions
getSwOptions()

Get sw options

Returns a promise. This promise is fulfilled with reply object ServiceResponse or is rejected with CncServiceOperationException when something goes wrong.

return object will contain the returnCode, if value is 0 everything went well, if not data will have the explanation of the error.

Public isFCASAllowed
isFCASAllowed()

Method that returns if FCAS is allowed or not.

Returns a promise. This promise is fulfilled with reply object ServiceResponse or is rejected with CncServiceOperationException when something goes wrong.

return object will contain the returnCode, if value is 0 everything went well, if not data will have the explanation of the error.

Public leaveDiagnosticMode
leaveDiagnosticMode()

Method that makes enter cnc in diagnostic mode

Public popSyntaxCheckErrors
popSyntaxCheckErrors(channel: number, language: string)
Parameters :
Name Type Optional
channel number No
language string No
Public Async readProtectionMode
readProtectionMode()

Method that reads the protection mode and stores it in the protectionMode property

Returns : any

Accessors

cncVersion
getcncVersion()

Returns cnc current version

cncId
getcncId()

Returns cnc current identification

cncSwOptions
getcncSwOptions()

Returns cnc software options

results matching ""

    No results matching ""