Machine Automation Forum
A forum addressing machine automation solutions for the complete machine lifecycle. Including offers like Machine Advisor, Modicon PLC/PacDrive, Lexium or Preventa. Discuss and share knowledge on offers relating to cloud-based service platforms, machine localization and monitoring, industrial operations control, motion products as well as safety function!
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-12-10 03:30 AM
This is the scenario. I have a working PLC and I want to add some new features. These new features require some new EEPROM variables and the variables which are present on the PLC may have been modified by the user. There are also some new Status variables which have been created.
Since I have modified the original program, I think I can not connect to the PLC and upload the EEPROM variables which are already on the PLC with the commissioning tab, because my table is actually different from the original table (because I have added some new variables).
What happens if I only download the PLC and HMI programs without using the download all feature ? What values do these new EEPROM variables take by default ? And what if during program upgrade some previously used EEPROM variables get assigned new addresses ?
I think you get the point, and maybe you can give me some tips on how to tackle this problem.
Thanks in advance.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-02-20 02:44 AM
Hi,
In case of M172 and M173O, when I refer to row number, I really refer to the row of the parameter table, not to the modbus address.
When you add a new line, the first unused register will be assigned, but you are free to change it.
About this:
If you are not in this case you should first export the PARAM.DAT to usb (or load settings and store them in a recipe), upload PLCIEC.COD and PARAM.BIN with default settings (or a download all), load the PARAM.DAT previously exported or write the recipe.
PARAM.DAT is the modbus table of the PLC, you can export it to usb pendrive from the PLC (this one will not include the new parameters, since you are still running the old version).
PARAM.BIN is a full copy of the EEprom created by ESME HVAC (this one will include the new parameters).
If you upload the new application with param.bin, you will load new version with default of all eeprom settings.
If you the upload the previously exported PARAM.DAT, you will have the controller with old eeprom settings + new eeprom parameters initialized at their default value
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-12-10 11:38 PM
Hi,
parameters of M172 are stored in the EEprom (Flash area in case of Secure Interface and M173O) based on the row order of the parameter table.
So if you add new parameters at the bottom of the table and you download just the plc code the older parameters will not change their value and the new ones will have value FFFFh (-1).
If -1 is out of the nominal range of the parameter, you can add few lines of code in the init task which autoinitialize the parameter.
If you are not in this case you should first export the PARAM.DAT to usb (or load settings and store them in a recipe), upload PLCIEC.COD and PARAM.BIN with default settings (or a download all), load the PARAM.DAT previously exported or write the recipe.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-12-12 01:52 AM
Hi Federico, thanks for your answer. I understand the first solution. However I would like to understand a little bit clerarer: when you say row number don´t you mean register number ? I thought actually the register is what actually identifies the data inside memory.
If I look at my EEPROM table data, I can see there are some data registers missing, variables I created and then deleted. I never re-arrange them so that they are in order (which maybe not good practice) so when I add a new variable, it is likely this unused registers will be used, what happens then ?
Regarding the second part, I wonder if you could explain it further or maybe point me to the right information.
Regards
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-02-20 02:44 AM
Hi,
In case of M172 and M173O, when I refer to row number, I really refer to the row of the parameter table, not to the modbus address.
When you add a new line, the first unused register will be assigned, but you are free to change it.
About this:
If you are not in this case you should first export the PARAM.DAT to usb (or load settings and store them in a recipe), upload PLCIEC.COD and PARAM.BIN with default settings (or a download all), load the PARAM.DAT previously exported or write the recipe.
PARAM.DAT is the modbus table of the PLC, you can export it to usb pendrive from the PLC (this one will not include the new parameters, since you are still running the old version).
PARAM.BIN is a full copy of the EEprom created by ESME HVAC (this one will include the new parameters).
If you upload the new application with param.bin, you will load new version with default of all eeprom settings.
If you the upload the previously exported PARAM.DAT, you will have the controller with old eeprom settings + new eeprom parameters initialized at their default value
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.