src/api/model/general.ts
Class
Base
Properties |
Methods |
|
Accessors |
constructor(generalRaw: any, cncKernelType: enums.CncKernelType)
|
|||||||||
|
Parameters :
|
| 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 simuspeed |
Type : Variable
|
Default value : <Variable>{}
|
Decorators :
@Listenable()
|
|
simuspeed. Percentage of simulation speed (between 0% and 100%). |
| 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.
Returns :
Promise<interfaces.ServiceResponse>
|
| 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.
Returns :
Promise<interfaces.ServiceResponse>
|
| 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.
Returns :
Promise<interfaces.ServiceResponse>
|
| 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.
Returns :
Promise<interfaces.ServiceResponse>
|
| 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.
Returns :
Promise<interfaces.ServiceResponse>
|
| 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 :
Returns :
Promise<interfaces.ServiceResponse>
|
| 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.
Returns :
Promise<interfaces.ServiceResponse>
|
| 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 :
Returns :
Promise<interfaces.ServiceResponse>
|
| 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.
Returns :
Promise<interfaces.ServiceResponse>
|
| 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.
Returns :
Promise<interfaces.ServiceResponse>
|
| 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.
Returns :
Promise<interfaces.ServiceResponse>
|
| 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.
Returns :
Promise<interfaces.ServiceResponse>
|
| Public popSyntaxCheckErrors |
popSyntaxCheckErrors(channel: number, language: string)
|
|
Returns :
Promise<interfaces.ServiceResponse>
|
| cncVersion |
getcncVersion()
|
|
Returns cnc current version
Returns :
interfaces.CncVersion
|
| cncId |
getcncId()
|
|
Returns cnc current identification
Returns :
interfaces.CncIdentification
|
| cncSwOptions |
getcncSwOptions()
|
|
Returns cnc software options
Returns :
interfaces.SwOptions
|