Okay, so let's rename these a bit:
Percentage -- no change
Hard --> Replace
Value --> Additive
New versions
Zip File -- https://drive.google.com/open?id=1Z1...zS-kR5bIoYmOCF
MSI Installer -- https://drive.google.com/open?id=1cz...VWZhf987stHXEJ
- - - - - - - - - -
Cube3Editor Scripting Idea:
SET [FIRMWARE|MINFIRMWARE|MODEL|E1|E2|E3] "value"FIRMWARE: sets ^Firmware: to "value"
example: set FIRMWARE "V1.14B"
MINFIRMWARE: sets ^Minfirmware: to "value"
example: set FIRMWARE "V1.14B"
MODEL: sets ^PrinterModel: to "value"
example: set MODEL "CUBE3"
E1: sets ^MaterialCodeE1: to "value"
example: set E1 "82"
E2: sets ^MaterialCodeE2: to "value"
example: set E2 "82"
E3: sets ^MaterialCodeE3: to "value"
example: set E3 "82"
MODIFY TEMPERATURE [LEFT | RIGHT | MID] <XXXX> BY [PERCENTAGE [+/-]<YYYY> | ADD [+/-]<YYYY> | REPLACE <YYYY>]This modifies all existing occurances of XXXX by one of the following methods:
PERCENTAGE [+/-]<YYYY>: adjusts XXXX by percentage. Increase can be specified by specifying a positive value for YYYY. Decrease can be specified by specifying a negative value for YYYY.
ADD [+/-]<YYYY>: adjust XXXX by YYYY. Increase XXXX by specifying a positive value for YYYY. Decrease YYYY by specifying a negative value.
REPLACE <YYYY>: Replace each occurance of XXXX with YYYY.
- Maximum temperature is 265. If any adjustment results in a larger value, it will be set back to 265.
- Minimum temperature is 0. If any adjust results in a negative value, it will be set back to 0.
If LEFT is specified, then only the left extruder is modified. If RIGHT is specified, then only the right extruder is modified. if MID is specified, then only the mid extruder is modified. If none of these are specified, then the temperature adjustment affects all entries that match the given <XXXX> temperature.
MODIFY RETRACTSTART <XXXX> BY [PERCENTAGE [+/-]<YYYY> | ADD [+/-]<YYYY> | REPLACE <YYYY>] This sets the P/S values of M227 command by percentage, addition or replacing the exising value with a new value.
PERCENTAGE [+/-]<YYYY>: adjusts XXXX by percentage. Increase can be specified
by specifying a positive value for YYYY. Decrease can be specified by
specifying a negative value for YYYY.
ADD [+/-]<YYYY>: adjust XXXX by YYYY. Increase XXXX by specifying a
positive value for YYYY. Decrease YYYY by specifying a negative value.
REPLACE <YYYY>: Replace each occurance of XXXX with YYYY.
If <YYYY> is calculated to be less than 0, then the value stored will be 0.
MODIFY RETRACTSTOP <XXXX> BY [PERCENTAGE [+/-]<YYYY> | ADD [+/-]<YYYY> | REPLACE<YYYY> ]
This sets the S values of M228 command by percentage, addition or replacing the existing value with a new value.
PERCENTAGE [+/-]<YYYY>: adjusts XXXX by percentage. Increase can be specified by specifying a positive value for YYYY. Decrease can be specified by specifying a negative value for YYYY.
ADD [+/-]<YYYY>: adjust XXXX by YYYY. Increase XXXX by specifying a positive value for YYYY. Decrease YYYY by specifying a negative value.
REPLACE <YYYY>: Replace each occurance of XXXX with YYYY.
If <YYYY> is calculated to be less than 0, then the value stored will be 0.
EXECUTE
EXECUTE causes the file indicated by the command line to be
- Loaded Encrypted file
- Decrypt
- Header Stripped (if present)
- Image Stripped (if present)
- Commands in Script run
- Encrypted
- Original file backed up.
- Saved Encryped file.
=====EXAMPLE=====
An example script may look like:
Code:
set FIRMWARE V1.14B
set MINFIRMWARE V1.14B
set MODEL CUBE3
set E1 82
set E2 -1
set E3 -1
set TEMPERATURE LEFT 210 BY REPLACE 195
set TEMPERATURE LEFT 265 BY REPLACE 215
set TEMPERATURE LEFT 250 BY REPLACE 210
set TEMPERATURE LEFT 240 BY ADD -35
set RETRACTSTART 450 BY PERCENTAGE -50
set RETRACTSTOP 450 BY PERCENTAGE -50
EXECUTE
and the command line may look like:
cube3editor example.cube3 example.scr
this would result in an updated example cube3 that has the updates specified in the script. If for any reason one of the lines in the script is badly formed, no changes will occur to the cube3 file.