From b165821b5d2e1c28fc790d8051103b64841ce250 Mon Sep 17 00:00:00 2001 From: a3boot Date: Mon, 7 Jun 2021 18:16:11 +0300 Subject: [PATCH] v0.0.36 --- CHANGELOG.md | 8 +++++++- lib/interpretator.js | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c995a0..12e3468 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -91,4 +91,10 @@ #### v0.0.35 - $P_GG[29] - only for G group 29 (DIAMOF/DIAMON/DIAM90) - - fix some bugs \ No newline at end of file + - fix some bugs + +#### v0.0.36 + - FOR-ENDFOR with named variable + - calculation of RP perfomed in WCS + - calculation of ANG with MIRROR in WCS + - Circle end point tolerance increased \ No newline at end of file diff --git a/lib/interpretator.js b/lib/interpretator.js index 8273b6c..222182e 100644 --- a/lib/interpretator.js +++ b/lib/interpretator.js @@ -482,7 +482,7 @@ function parseRows(programText, programName, variables, firstCall) { View.sinumerikView.parseData.canvas.push(msg); } if (operator.type == 'M_func') { - if (operator.value === 30 || operator.value === 17) { + if (operator.value === '30' || operator.value === '17') { // console.log(View.sinumerikView.parseData) msg = { type: 'pause', @@ -491,7 +491,7 @@ function parseRows(programText, programName, variables, firstCall) { View.sinumerikView.parseData.canvas.push(msg); end_of_parse = 1; } - if (operator.value == 0 || operator.value == 1) { + if (operator.value === '0' || operator.value === '1') { var pause = { type: 'pause', value: `M${operator.value}` diff --git a/package.json b/package.json index 009e340..cb0299a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "sinumerik-highlight", "main": "./lib/sinumerik", - "version": "0.0.35", + "version": "0.0.36", "description": "Sinumerik highlight", "keywords": [], "activationCommands": {