MVP 2023 Flex727 Posted February 4, 2020 MVP 2023 Report Posted February 4, 2020 Am I the only one who would love to see VisiLogic download a starting value for a numeric operand without the Power-Up checkbox being checked? In other words, it would place a value in the operand that could be overwritten by ladder, but not by start up. This behavior would be exactly like what happens with Timer Presets.
MVP 2023 Ausman Posted February 13, 2020 MVP 2023 Report Posted February 13, 2020 On 2/5/2020 at 1:23 AM, Flex727 said: Am I the only one Yes. 😀 Getting serious (🤓) now, why? Is it to have a program that tailors it's parameters from a basic set of numbers on startup? And rebooting loses all the tailored amounts? In that case wouldn't normal memory retention be OK? However, I can see that if you need basic parameters to get things going initially, perhaps a "manual initiate" screen that loads all the relevant operands with the basics. After doing that the program can run and then if it has power failure the normal retention will maintain things. Or add them all into an indexed data table that is periodically saved? So that it can be recalled, perhaps by the "manual initiate" screen? This way would get around battery failure as well. cheers, Aus
MVP 2023 Flex727 Posted February 13, 2020 Author MVP 2023 Report Posted February 13, 2020 No, what I am saying is for there to be beginning values for integer registers exactly like what happens with timer presets. Whatever timer preset is entered into VisiLogic, even without the Power-Up checked, is transferred to the PLC when the program loads. This value is retained, can be changed, but does not have any power-up application. Often times I have programs with a large number of settings that must be entered by the customer before the program will run properly. Those settings cannot be power-ups because that may need to be changed from time-to-time and the new setting needs to be retained. If the customer enters most of the parameters but forgets some, or makes a typo while entering them, problems will ensue. I'd like to have default values entered that will allow the program to run properly without the customer intervening unless a minor tweak needs to be done. There is a workaround - I can have a ladder rung initiated by SB 2 that checks to see if the MI = zero, then store direct my value if true, but that's cumbersome.
MVP 2023 kratmel Posted February 13, 2020 MVP 2023 Report Posted February 13, 2020 I always check all the settings used, and if it goes beyond the range, the default is loaded. Yes that's cumbersome, but as a result, it saves me time in future. After all settings is done, I use Export PLC operand to the file and use Import PLC operand if user does something wrong. When a recipes present in project - user can use #1 to #N table row #0 row used as default value that is possible to correct only with password entered.
MVP 2023 Flex727 Posted February 13, 2020 Author MVP 2023 Report Posted February 13, 2020 Good information and advice, @kratmel.
MVP 2023 Joe Tauser Posted February 15, 2020 MVP 2023 Report Posted February 15, 2020 On 2/13/2020 at 10:59 AM, kratmel said: I use Export PLC operand to the file and use Import PLC operand if user does something wrong. This is what I do as well, but I have to remind myself to do it. On 2/12/2020 at 10:25 PM, Ausman said: On 2/4/2020 at 8:23 AM, Flex727 said: Am I the only one Yes. 😀 Play nice, you two. Don't make me call your father. 😤 The timer "interrupt" in the download sequence allows each timer to be uploaded or downloaded separately. This would be extremely tedious for all other memory types and is not practical. @Cara Bereck Levy A better solution would be to integrate the Export / Import PLC Operands in two places: 1. Call the Export PLC Operands as an option dialog when the file is saved. Then you get a real and true full copy of the PLC as it is at that point in time. 2. Conversely, call the Import PLC Operands as part of the Download chain, like Timers does now. A simple Yes/No checkbox would be fine. Joe T.
MVP 2023 kratmel Posted February 15, 2020 MVP 2023 Report Posted February 15, 2020 28 minutes ago, Joe Tauser said: This is what I do as well, but I have to remind myself to do it. Good advice! But... Generally operand export must be performed when setup and fine tuning for all parameters is done. It is the last step in my PLC programming job. That is the main problem : sometimes you can not know correct value for all operand when project is downloaded to PLC. And i think - PLC operand export is not useful integration option (p.1 ) . But 47 minutes ago, Joe Tauser said: simple Yes/No checkbox in Properties--Messages for ask or not ask user to import operand values from the files after download project is good idea. P.S. Operand description and operand value is exported separatly. Maybe it is useful option to export both into csv? User can easly check what parameter or operand is wrong in current configuration and change it (Like CNC machine parameter file).
MVP 2023 Ausman Posted February 15, 2020 MVP 2023 Report Posted February 15, 2020 21 hours ago, Joe Tauser said: Don't make me call your father. I thought that was you, Joe. ☺️ I still don't quite understand why my 2nd & 3rd sentences aren't an easily done, onboard solution. Using row 0 which Kratmel spoke of is part of this. Machine has enough to get going by using row 0, can be tailored to suit, can easily bring up any of the saved tailoring by day or week depending on frequency of save, and consequently replace a change that isn't working with one that is known to be good. The save frequency could be when a certain number of parameters changed reaches a "new record needs to be done" amount. Write the table to SD when appropriate, which then lets the system be easily recovered from a battery failure. Isn't the primary aim the KISS principle? cheers, Aus
MVP 2023 Flex727 Posted February 17, 2020 Author MVP 2023 Report Posted February 17, 2020 On 2/13/2020 at 10:59 AM, kratmel said: I use Export PLC operand to the file and use Import PLC operand if user does something wrong. @Cara Bereck Levy, I can find nothing at all in the help file about this function. Am I looking in the wrong place?
DanT Posted February 17, 2020 Report Posted February 17, 2020 Hi; VisiLogic -- Under the Connection Tab, Just above Communications & OS - Choice of Text or Binary File Handy if you have to change out a PLC and want to restore the data to the new one - like timers that have been changed, or MI/ML/etc. that are used like constants IP Addresses, ASCII Strings, Data Table Pointers, etc. Useful in troubleshooting, or preserving data before making a major change. DanT
MVP 2023 Flex727 Posted February 17, 2020 Author MVP 2023 Report Posted February 17, 2020 Thanks, DanT. I do know about this function and have used it in the past, but I am always reluctant to put something like this into regular use until I fully understand how it works. There should be an entry in the Help file on this function and I do not see it. I also notice that it doesn't include any System Operands, which is important for the programmer to know in advance (one reason why I'd like to see information in the Help file).
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now