New user and CURA support almost integrated

New user in this forum can introduce yourself here. Pictures of new UP Printer, fresh prints from UP Printer, and more.
chazr33gtr
Posts: 11
Joined: Mon Mar 25, 2019 10:47 pm

New user and CURA support almost integrated

Post by chazr33gtr » Mon Mar 25, 2019 10:54 pm

Hi All,

Got an UPBOX+ for a great price from a local shop near me (I already have 3 other printers and use CURA heavily for those). I have developed a CURA Python Post Processing script that is almost there allowing the UPBOX+ to work using CURA 3.6 as the slicer.

The axes all home correctly, the Z height is calculated by the Python PostProcessing script correctly based on the height in upstudio for when the platform touches the nozzle. The only bit im struggling to get fine tuned is the extrusion. Does anyone know if the UPBOX firmware supports relative extrusion or absolute?

Ive followed the Simplify 3D tutorial and it would seem that the extrusion needs amultiplier of 20 and that at each mesh change the absolute extrusion value resets to 0?

Does anyone have an example Gcode file for the UPBOX+ i could use as a guide or point me to where the GCODE that UPstudio sends to the the printer is stored?

Cheers

bjorn
Posts: 172
Joined: Fri Aug 10, 2018 6:00 pm

Re: New user and CURA support almost integrated

Post by bjorn » Tue Mar 26, 2019 4:38 am

Interesting, will follow this thread.

I couldn't see a micro sd card socket on the internal pictures of the upbox+ on the fcc site, so unless you can get the gcode with f.ex. wireshark I'm guessing it won't be very easy. (Maybe there is a card socket under the CPU module?)

chazr33gtr
Posts: 11
Joined: Mon Mar 25, 2019 10:47 pm

Re: New user and CURA support almost integrated

Post by chazr33gtr » Tue Mar 26, 2019 8:55 am

bjorn thanks for the response.

I've sorted !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :D :D :D :D

I now can print CURA sliced models via transfer of CURA generated Gcode to the printer using UP Studio. All works great and even the M190 wait till bed gets to temp commands work, so the print doesnt start till bed is at temp.

Weird that you have to put such big extrusion multipliers into simplyfy 3d or CURA i.e. the factor of 20 as per the tutorial. But hey works so far on all the prints Ive done. I might force it do do it automatically by fudging the nozzle diammeter as at the moment ive got Materail Flow rates of 2000!!!

Anyone want a copy of the post processing script?

bjorn
Posts: 172
Joined: Fri Aug 10, 2018 6:00 pm

Re: New user and CURA support almost integrated

Post by bjorn » Tue Mar 26, 2019 9:49 am

I'm working on replacing the control board all together, but there have been more than one request for Cura in general so think it would be great if you could put it on github or something for others to use and learn from.

Great work, I like how the communities always find a way to work around manufacturers limitations, even for a "niche" market like tiertimes printers.

chazr33gtr
Posts: 11
Joined: Mon Mar 25, 2019 10:47 pm

Re: New user and CURA support almost integrated

Post by chazr33gtr » Tue Mar 26, 2019 11:41 am

Cheers :-)

will post on the forum later today with instructions how to use. I is weird how their axis systems are well a bit different... LOL!

Owen Sparks aka Marksman
Posts: 610
Joined: Tue Mar 15, 2016 9:56 am

Re: New user and CURA support almost integrated

Post by Owen Sparks aka Marksman » Wed Mar 27, 2019 8:33 am

Awesome, respecting nozzle height settings and a working pre-heat are both things we failed to do with GCODE the first time around, and that was with TT "support", so great progress, I'm really impressed.

Cheers,
Owen S.

bjorn
Posts: 172
Joined: Fri Aug 10, 2018 6:00 pm

Re: New user and CURA support almost integrated

Post by bjorn » Wed Mar 27, 2019 9:41 am

chazr33gtr wrote:
Tue Mar 26, 2019 11:41 am
Cheers :-)

will post on the forum later today with instructions how to use. I is weird how their axis systems are well a bit different... LOL!
LOL, tell me about it, i replaced the controller and tried keeping the axis like tiertime had them according to the pcb silkscreen, oddly enough parts came out mirrored...

JcCrespo
Posts: 1
Joined: Wed Mar 27, 2019 9:27 am

Re: New user and CURA support almost integrated

Post by JcCrespo » Wed Mar 27, 2019 10:08 am

There is another complimentary gift at EmbroideryDK. If it's not too much trouble discover it in the classification "New this week" and please see that it is just accessible until the sixteenth of March.
Last edited by JcCrespo on Mon Apr 01, 2019 10:12 am, edited 1 time in total.
arynews is a Pakistani news channel

bjorn
Posts: 172
Joined: Fri Aug 10, 2018 6:00 pm

Re: New user and CURA support almost integrated

Post by bjorn » Wed Mar 27, 2019 10:55 am

on the subject of LOL. Report this post -> 404

Owen Sparks aka Marksman
Posts: 610
Joined: Tue Mar 15, 2016 9:56 am

Re: New user and CURA support almost integrated

Post by Owen Sparks aka Marksman » Wed Mar 27, 2019 11:41 am

bjorn wrote:
Wed Mar 27, 2019 10:55 am
on the subject of LOL. Report this post -> 404
Yeah, that bug was reported a while ago too. :roll:

I'm wondering if TT closed down a few months ago and we didn't notice. ;) Blue TT PLA is now out of stock for a 2 months+ lead time, X5 never happened, 1kg spools never happened, loads of sales at the end of last year, bugs not addressed etc?

O.S.

chazr33gtr
Posts: 11
Joined: Mon Mar 25, 2019 10:47 pm

Re: New user and CURA support almost integrated

Post by chazr33gtr » Wed Mar 27, 2019 8:38 pm

Ok so heres whats needed:

1) Add a new printer in CURA and select Custom FFF Printer
2) in Printer Settings Set X to 205, Y to 250 Z to 205 (weird that X and Y axes are wrong way round in my head but hey)
3) Build Plate shape = Rectangular, tick heated Bed
4) G-Code Flavour RepRap
5) Start Code =
G28 Z-27; home
M204 F1500

6) End Gcode =
M109
M191
G28 Z-27

7) Gantry height 40, Extruders =1
8) Print head settings leave as is

9) In Extruder 1 Set Nozzle size to 0.4, 0.5 or 0.6 depending what you have fitted (this opens up the use now even bigger or smaller nozzles if you can get them or drill out your nozzles with 0.8 or 1.0mm drills!)
10 Compatible material = 1.75

Thats all the printer Settings done now close CURA. Open a text file and copy and paste the Python Script below into a file and save as "_UPPostProcess.py" the name and _ are critical. Now copy this file into "C:\Program Files\Ultimaker Cura 3.6\plugins\PostProcessingPlugin\scripts" or where ever you have CURA installed.


from ..Script import Script
import re

# from cura.Settings.ExtruderManager import ExtruderManager


class _UPPostProcess(Script):

def __init__(self):
super().__init__()
self.Ypattern = re.compile("Y\d+")
self.Zpattern = re.compile("Z\d+")



def getSettingDataString(self):
return """{
"name":"Up PostProcess",
"key": "UpPostProcess",
"metadata": {},
"version": 2,
"settings": {
"UP_profile":
{
"label": "Profile",
"description": "Convert CURA to UP gcode",
"type": "enum",
"options": {
"UP":"UP"
},
"default_value": "UP"
},
"UP_Zvalue":
{
"label": "Z offset in Up Studio",
"description": " Z height when bed at nozzle",
"type": "float",
"default_value": 205
}
}
}"""

def execute(self, data: list):

version = "0.1 C Jackson"

self.UPProfile = self.getSettingValueByKey("UP_profile")
self.UPZmax = self.getSettingValueByKey("UP_Zvalue")
self.selectedTool = ""
self.valveClosed = True

index = 0
for active_layer in data:

self.output = ""
#if index == 0:
self.output += "; Selected profile: " + self.UPProfile + ", ZMax set at " + str(self.UPZmax)
self.output += "; version " + version + "\n"

lines = active_layer.split("\n")
#self.output += "; Number of lines to be processed " + str(lines) +"\n"
for line in lines:
commentIndex = line.find(";")
if commentIndex >= 0:
comment = line[commentIndex + 1:]
line = line[0:commentIndex]
else:
comment = ""

if self.UPProfile == "UP":
self.UPGcodeParse(line, comment)
else:
self.output += ";" + "\n"

data[index] = self.output
index += 1
return data
#
# End of Main Loop
#
def UPGcodeParse(self, line, comment):

hasY = re.search(self.Ypattern, line)
hasZ = re.search(self.Zpattern, line)
# There is 'Sxxx' in the line and second tool is selected and line doesn't contain both
if hasY:
line = line.replace("Y", "Y-") # Replace "Sxxx" with "Txxx "
if hasZ:
#CBJ Pseudo Code needs to find the Zvlaue on the line i.e. Z0.3
#CBJ then subtract this value from the UPZvalue provide by the user e.g. 205
#CBJ replace theZvalue in the line with UPZvalue - Zvalue e.g. 204.7
LayerZ = line.rpartition('Z')[-1]
LayerZ = str(LayerZ)
A = float(self.UPZmax)
B = float(LayerZ)
UPLayerZ = A-B
UPLayerZ = str(UPLayerZ)
line = line.partition('Z')[0] + "Z-" +UPLayerZ

# Write the modifed line to file.
if comment != "":
self.output += line + ";" + comment + "\n"
else:
self.output += line + "\n"

Now launch CURA again and go to Extensions->PostProcessing->Modify Gcode

1) Click Add A script and select UP PostProcess from the list of available scripts
2) Set profile to be UP
3) Set the Z offset in Up Studio to be whatever the Z Nozzle height value is typically around 210 but i set it at 205 in the script to be safe.

Add models, tweak cura profiles, material settings etc save gcode and then run the gcode through Up Studio.. and enjoy!

Owen Sparks aka Marksman
Posts: 610
Joined: Tue Mar 15, 2016 9:56 am

Re: New user and CURA support almost integrated

Post by Owen Sparks aka Marksman » Thu Mar 28, 2019 7:44 am

Outstanding 8-)

Have you got to printing models yet? Any photos you can share?

Cheers, Owen S.

chazr33gtr
Posts: 11
Joined: Mon Mar 25, 2019 10:47 pm

Re: New user and CURA support almost integrated

Post by chazr33gtr » Thu Mar 28, 2019 8:44 am

Yeah a good few pics but cant share on this forum easily??? Is there a way of embedding an image in the post.

Ive also notice that the python script text has lost all its indenting etc.. so likley not to work as CURA is extremley fussy about processing python scripts. IS there a way I can embedd the file on here or if someone wants to give me their email I can via a private message I can send the file if they have a better place to access it

Thanks for the kind words. Cheers :-)

Owen Sparks aka Marksman
Posts: 610
Joined: Tue Mar 15, 2016 9:56 am

Re: New user and CURA support almost integrated

Post by Owen Sparks aka Marksman » Thu Mar 28, 2019 9:37 am

chazr33gtr wrote:
Thu Mar 28, 2019 8:44 am
Yeah a good few pics but cant share on this forum easily??? Is there a way of embedding an image in the post.
Good news.

If you click on the attachments tab below the text enty field on the forum post you can add pics and files. Once uploaded there is an "place inline" button to include the picture in the post rather than just as an attachment.
Pic.JPG
Pic.JPG (58.47 KiB) Viewed 1549 times
It can be flakey if many pics are put in one post and helpfully excludes some file types, .stl included for example :roll:

Thanks for the file offer, I'm probably going to be tied up until mid next week but should be free-ish after that.

Cheers, Owen S.

bjorn
Posts: 172
Joined: Fri Aug 10, 2018 6:00 pm

Re: New user and CURA support almost integrated

Post by bjorn » Thu Mar 28, 2019 10:21 am

Images should work as attachments no problem. at least jpg. python file you probably have to add to a .zip file and upload that as an attachment.

Owen Sparks aka Marksman
Posts: 610
Joined: Tue Mar 15, 2016 9:56 am

Re: New user and CURA support almost integrated

Post by Owen Sparks aka Marksman » Thu Mar 28, 2019 5:05 pm

Hi again.

Just had a look at the Cura download site and say that V3.6 has been superseded by by V4.0, should we stick with the 3.6 or try the latest?

Cheers, Owen S.

chazr33gtr
Posts: 11
Joined: Mon Mar 25, 2019 10:47 pm

Re: New user and CURA support almost integrated

Post by chazr33gtr » Thu Mar 28, 2019 6:35 pm

The script should work with CURA 4.0 no problem but best using on 3.6 to start with to rule out any gremlins or quirks.

I've attached the script to this as a Zip file and also a starter profile which you can import into CURA by going to manage profiles and selecting import. Please let me know how you get on. Ill put up some pictures in a bit of couple of prints I've done of test boxes that show some of the varying infill etc.
Attachments
UP_Box_Starter_profile.zip
(987 Bytes) Downloaded 30 times
_UPPostProcess.zip
(1.26 KiB) Downloaded 29 times

chazr33gtr
Posts: 11
Joined: Mon Mar 25, 2019 10:47 pm

Re: New user and CURA support almost integrated

Post by chazr33gtr » Thu Mar 28, 2019 7:10 pm

As requested a few basic prints of a Box but.... with the Varying Density infill option of CURA enabled.. printed in Colorfabb NGEN Silver
Attachments
IMG_20190328_185952.jpg
IMG_20190328_185952.jpg (192.67 KiB) Viewed 1529 times
IMG_20190328_185941.jpg
IMG_20190328_185941.jpg (154.68 KiB) Viewed 1529 times
IMG_20190328_185938.jpg
IMG_20190328_185938.jpg (109.97 KiB) Viewed 1529 times
IMG_20190328_185320.jpg
IMG_20190328_185320.jpg (134.25 KiB) Viewed 1529 times
IMG_20190328_185315.jpg
IMG_20190328_185315.jpg (147.16 KiB) Viewed 1529 times
IMG_20190328_185120.jpg
IMG_20190328_185120.jpg (138.88 KiB) Viewed 1529 times
IMG_20190328_184645.jpg
IMG_20190328_184645.jpg (129.4 KiB) Viewed 1529 times

chazr33gtr
Posts: 11
Joined: Mon Mar 25, 2019 10:47 pm

Re: New user and CURA support almost integrated

Post by chazr33gtr » Fri Apr 05, 2019 12:24 pm

Sooo... has anyone else given this a go yet? Be interested to hear thoughts on it :-)

Owen Sparks aka Marksman
Posts: 610
Joined: Tue Mar 15, 2016 9:56 am

Re: New user and CURA support almost integrated

Post by Owen Sparks aka Marksman » Mon Apr 08, 2019 6:59 am

Sorry real work has got in the way so I've not got to it yet and it looks like the machines will be flat out this week. I still think it's awesome work and am keen to give it a go.
Owen S.

Post Reply