Electric Kiln/Usage/Program Structure

From Fat Cat Fab Lab
Revision as of 18:31, 31 May 2024 by AMD (talk | contribs) (Created page with "<span id="preparing-programs"></span> = Preparing programs = Preparing program is easy. This are simple text files with comments and program data. <span id="comments"></span> == Comments == You can write as many comment lines as you want to, they all must start with '#' sign. First comment line is treated as short, program description - make it short and meaningful, so you will later know what you are going to run. You can also add comments after program line. <code...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Preparing programs

Preparing program is easy. This are simple text files with comments and program data.

Comments

You can write as many comment lines as you want to, they all must start with '#' sign. First comment line is treated as short, program description - make it short and meaningful, so you will later know what you are going to run.

You can also add comments after program line.

120:10:10 # This is inline comment

Program

Each line of the program represents it's single step, that consists of three natural numbers (so no real numbers or negative values) separated with colon (:) sign. First number is the temperature in Celsius degrees, we would like to acquire in this step. Second value tells how long it should take - in minutes. Third value is time we would like to stay on target temperature - dwell - also in minutes. Any of both time values can be 0 - but they still must be present.

Example program:

# Short, clear description of the program.
# Full description on as many lines you wish -
#   just remember about default program limit - 10KiB
# Program parameters target temperature in Celsius:minutes to achieve this temperature:dwelling time in minutes
95:30:20
134:20:30
# You can add as many comments as you wish
97:80:30
360:180:20
600:100:30 # You can even comment each line
970:120:50
600:90:0 # But in program you can use only numbers and : sign. Max value for temperature is 1350C

By default, program size is limited to 10KiB and 40 lines of actual steps. Both values can be changed in "PIDKiln.h" - they are just for sane reason.

Operating on programs

When editing program you can place it directly in programs directory "data/programs", and upload to ESP32 with other SPIFFS data. You can also upload programs with WWW interface.

After program is uploaded to ESP disk, you can browse it, delete it or load. When you load program it became ready to run and is detached from disk data (changes on drive does not influence on what's already loaded).