Jump to content

Gringotuerto

Dormant
  • Posts

    3
  • Joined

  • Last visited

Gringotuerto's Achievements

1

Reputation

  1. I discovered something else very bizarre. MERELY REFERENCING A VARIABLE NAME CAN ALTER THE GCODE. In other words, you might think that if your toolchange_prime_distance is a certain number, then you can type that number, or type [toolchange_prime_distance], and either way, that number will get inserted into the Gcode. And that generally works for that immediate variable reference. BUT ...it can cause the slicer SW to behave differently later. In other words, it "remembers" the fact that it resolved the variable name, and that memory might cause it to do something else. In my particular case, referencing [toolchange_prime_distance] caused the software to believe that it had done a prime movement. If I merely put G1 E12 for example, this was not "remembered" as a prime movement. But if I put equivalently G1 E[toolchange_prime_distance}, then the software counted this as a prime movement, and behaved differently later (in my case, deleting a different, later prime movement). The whole sad story is posted here: https://forum.simplify3d.com/viewtopic.php?f=9&t=12966&p=49691#p49691 So - beware variable names. They are useful, but you have to verify they aren't messing up anything. The only way I know to do that is case-by-case, generate Gcode with and without the variable name and compare them.
  2. I recently discovered another thing by trial and error...you can do logic operations with "&&" and also inequalities work. For example: {IF NEWTOOL=1 && [current_layer] = 1} Gxxxx whatever Gcode you want, will be inserted only if both conditions are met. I didn't try || as a logical "OR" operator, but I would guess if && works then || also works. Also, inequalities do work, for example: {IF NEWTOOL=1 && [current_layer] < 10} Gxxxx Also, I tried several ways of referencing the Primary Layer Height, and struck out on all of them. I don't know if that exists as a variable, but I can tell you these are NOT valid variables: [primary_layer_height]; [layer_height]; [first_layer_height]; [prime_layer_height]; [layer_height_z]; [delta_z] (OK clearly I was getting desperate here).
×
×
  • Create New...