PLUS+1 Software > General controls

Non-Volatile Memory - Set Default Value only editable through Service App

<< < (2/2)

sverreo:
The "Read" input should only be true if you want to read from the NV memory and set this to the output VAL.
I dont see any reason for this to always be TRUE?

If you set "In-enable" and don't "WRITE" this to NV memory, you can reset the output to the last written value using a positive transition on "Read"

spittet:
If you want the value to be modified only from Service Tool, I would suggest to simply use the "Non-volatile Memory Dynamic Input" component. With this component, you do not have to deal with anything about read/write/default.

Simply place the component in the program and use it's value where you need it.

After you downloaded the program into the controller, maybe it will have garbage in it, but simply setting a value with Service Tool will set it correctly (you are connected to Service Tool anyway as you are downloading the firmware to the controller, so it's not a big hassle).

Sam

GreaseMonkey:

--- Quote from: spittet on October 13, 2023, 02:45:41 PM ---If you want the value to be modified only from Service Tool, I would suggest to simply use the "Non-volatile Memory Dynamic Input" component. With this component, you do not have to deal with anything about read/write/default.

Simply place the component in the program and use it's value where you need it.

After you downloaded the program into the controller, maybe it will have garbage in it, but simply setting a value with Service Tool will set it correctly (you are connected to Service Tool anyway as you are downloading the firmware to the controller, so it's not a big hassle).

Sam

--- End quote ---

That solution would work, but it means the machine would not operate correctly unless you manually input all of the correct values using the service tool.  I'm controlling several pump EDC's, and I'm using the NVMe parameters to create modifier values that the user can use to adjust outputs up or down from their defaults.  All of these modifiers start at 100% by default, and then can be adjusted to increase or decrease the current flow to each EDC to tune machine operations.  On the vast majority of builds, these values will not change from their defaults.  By using the code I posted above, I am able to set defaults when I write the software, but easily edit them with the service tool. 

Marbek_Elektronik:
I have 1 NV which checks if the software is new and then it sets all connected values to default and itself.

Navigation

[0] Message Index

[*] Previous page

Go to full version