Comments (2)
Hi there,
to port it the way the manufacturer intended, you can have a look at their source code. Basically they do three things:
Modifying G5 GCode to initialize power loss resume: https://github.com/ANYCUBIC-3D/I3-MEGA/blob/master/Marlin_TFT_CR_V1.1.1/Marlin_main.cpp#L4163
Implement a function to save current position, stop motors and heaters: https://github.com/ANYCUBIC-3D/I3-MEGA/blob/master/Marlin_TFT_CR_V1.1.1/Marlin_main.cpp#L849
And finally a function to clear current values held in EEPROM and write the new position data: https://github.com/ANYCUBIC-3D/I3-MEGA/blob/305b0a041e99b0c964d1f7b20a15ae45da92718e/Marlin_TFT_CR_V1.1.1/configuration_store.cpp#L1052
Baking it straight into Marlin_main.cpp and using GCode as initialization is not the most beautiful way to do it imo, but it works. There are other ways to implement it, e.g. using the Creality power loss feature that got introduced to Marlin officially a while back.
Since I do not experience power outages, this feature is not really high up on my list of priorities but please let me know if you decide to have a go at porting it.
from marlin-ai3m.
Closing due to lack of response. Feel free to get in touch again later on.
from marlin-ai3m.
Related Issues (20)
- [BUG] After first layer extruder stops giving material HOT 1
- hotend temperature is incorrect HOT 1
- [BUG] HOT 1
- Arduino Ide
- [BUG] M23 for file in folder give "open failed" error HOT 1
- [BUG] fastio.h:84:32: error: 'DIO31_RPORT' was not declared in this scope HOT 1
- STARTUP_CHIME Anycubic Meg HOT 2
- Question: Mega Pro Support?
- [BUG] No way to stop experimental M888
- Vref voltages on TMC2208 FAQ (E1 and E0 ?) HOT 1
- [BUG] Lack of filament error with stock firmware 1.4.6 on Mega S HOT 3
- [BUG] Filament Sensor not working HOT 1
- [BUG]Octo print manual bed level info not saving without SD card in HOT 1
- TMC2208 X-Axis HOT 1
- New Hex for TMC2208?[BUG]
- [FR] 2.1.x?
- Extruder motor stops working[BUG] HOT 3
- [FR] z-jump not working
- [FR] Stock drivers reversed hex HOT 1
- [BUG] Unresponsive motherboard after trying to flash OG firmware HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from marlin-ai3m.