Cscape 10 retained variables

I have a "legacy" Horner Cscape program that has been converted from register-based into variable-based ladder by someone else, last edited in Cscape 9.90. When I opened it in Cscape 10, I saw some variables in the setpoints table. After downloading the program, I could tell that the setpoints values didn't make it into the variables. While online, I opened the setpoints table and forced it to send. There I did see the values change to match the setpoints table.

However, they didn't survive a power cycle - values all went back to zero.

This isn't a problem with blank new programs in Cscape 10. Does anyone have a clue where I can look for what is broken in this program?

There were a few memory addresses still assigned to a handful of variables. I deleted the addresses just in case they caused a problem.
 
Do not know Cscape but on many PLC's there are a number of methods, one is on PLC's that use symbolic based addressing (i.e. no actual addresses) then you have to assign them as Retain i.e. they retain their data on power down, on certain PLC's although you can use symbolic only the compiler automatically assigns them to actual addresses but they are not known & only done at compile time so like Mitsubishi FX & Q series you need to assign them to actual addresses in the "Latched" area (on mitsubishi these can be set within the PLC parameters, I believe that OMRon use something like HR registers that are retentive.
So I would assume either the symbols need to be set as retained, or if older type hardware will need to be given an actual physical address in the latched or what ever they call their retained memory.
 
Do not know Cscape but on many PLC's there are a number of methods, one is on PLC's that use symbolic based addressing (i.e. no actual addresses) then you have to assign them as Retain i.e. they retain their data on power down, on certain PLC's although you can use symbolic only the compiler automatically assigns them to actual addresses but they are not known & only done at compile time so like Mitsubishi FX & Q series you need to assign them to actual addresses in the "Latched" area (on mitsubishi these can be set within the PLC parameters, I believe that OMRon use something like HR registers that are retentive.
So I would assume either the symbols need to be set as retained, or if older type hardware will need to be given an actual physical address in the latched or what ever they call their retained memory.

I get what you're saying but every single thing seems identical between the old program that I tried to download and the new programs created from scratch. I even check the download box for clearing out the variables. In Cscape when you use the variable method it reassigns the memory addresses on the fly during the download.

Since I posted yesterday I recreated the entire old program, mostly via copy-paste, in a fresh blank program, and there's no problem with the retained variables anymore.

I just wish I knew how to identify what the issue is! I can't always take the time to recreate old programs, I need to be able to use them.
 
It sounds like the conversion to symbol based tags that are allocated on compile time so perhaps does not put them in retentive memory, I would have thought that there should be some configuration in the tag (symbol) editor to decide if the variable is retained or not the manual is pretty useless.
Mitsubishi has the same problem but can be overcome, for example in the PLC parameters file the variables are split into non latched & latched areas, you can extend these (i.e. the variables that are saved into battery or flash memory), the problem is the auto assign of non address based variables are outside of the latched area (actually a reserved area), so if you make the tag a symbol only addressing it throws an error it appears that you have to assign retentive addresses to the variables within the latched data areas, it's a bit of a problem as you cannot do symbolic tags only if you need retentive which is going against the idea of symbolic only addressing, This also poses a problem with HMI's as they require an actual physical address whereas RW logix is symbol based where the HMI can request data via the symbol table. however, I believe the newer hardware mitsubishi may be able to do this by downloading the symbol table to the PLC but that requires an HMI that can read this information.
sorry I cannot be more help
 
I have a "legacy" Horner Cscape program that has been converted from register-based into variable-based ladder by someone else, last edited in Cscape 9.90. When I opened it in Cscape 10, I saw some variables in the setpoints table. After downloading the program, I could tell that the setpoints values didn't make it into the variables. While online, I opened the setpoints table and forced it to send. There I did see the values change to match the setpoints table.

However, they didn't survive a power cycle - values all went back to zero.

This isn't a problem with blank new programs in Cscape 10. Does anyone have a clue where I can look for what is broken in this program?

There were a few memory addresses still assigned to a handful of variables. I deleted the addresses just in case they caused a problem.Screenshot 2025-04-03 161607.png
Do you by any chance know why I have "X's" on some of my Text boxes, using Cscape 10.1
 
Do you by any chance know why I have "X's" on some of my Text boxes, using Cscape 10.1

Have you tried adjusting the width or font size? I seem to recall that's just what happens when numbers don't fit, maybe text too.
I'm afraid I'm all tied up with a Rockwell project so I can't get online with a Horner today.
 
Have you tried adjusting the width or font size? I seem to recall that's just what happens when numbers don't fit, maybe text too.
I'm afraid I'm all tied up with a Rockwell project so I can't get online with a Horner today.
I have 11 screens in this program and quite a few of them have the same thing going on. I have not tried adjusting font size yet. But all the text in my example screen isn't cut off, it is fitting within the boxes.
However when I first received the program from the customer, I opened it
Up to check the hardware configuration in Cscspe to see what Horner model was used in this build. I didn't have that model available to me. So I used one that was a newer model in order to upload the program successfully. I had to perform an Auto config to recognize the All In One Unit that I was connected to in order to upload program.
So I wonder if it's a graphic related issue or firmware....
 
I have 11 screens in this program and quite a few of them have the same thing going on. I have not tried adjusting font size yet. But all the text in my example screen isn't cut off, it is fitting within the boxes.
However when I first received the program from the customer, I opened it
Up to check the hardware configuration in Cscspe to see what Horner model was used in this build. I didn't have that model available to me. So I used one that was a newer model in order to upload the program successfully. I had to perform an Auto config to recognize the All In One Unit that I was connected to in order to upload program.
So I wonder if it's a graphic related issue or firmware....
Maybe that is a size issue due to changing models. Try decreasing the font size and upsizing the box just in one place and see if the words reappear.
I haven't figured out how to use Cscape 10 to update firmware yet, mainly because I still have Cscape 9 installed and can do it that way.
We're a little behind on Cscape 10, only on SP 1 right now; I don't like forcing the guys in the shop to update it so often since they are only downloading standard programs.
 
Maybe that is a size issue due to changing models. Try decreasing the font size and upsizing the box just in one place and see if the words reappear.
I haven't figured out how to use Cscape 10 to update firmware yet, mainly because I still have Cscape 9 installed and can do it that way.
We're a little behind on Cscape 10, only on SP 1 right now; I don't like forcing the guys in the shop to update it so often since they are only downloading standard programs.
I will give it a try when I get a moment, thank you. And I am also more familiar with 9, not a big fan of 10 yet.
 

Similar Topics

I am trying to set up a piece of equipment with a Horner HE-X4R. I'd like to use structured text and so far I'm just trying to get a basic On/off...
0
Replies
946
Views
I've just started using Horner Cscape version 9.90 service pack 11. Is it normal for all the toolbars in the window to appear in a different spot...
7
Replies
1,266
Views
I seem to be making this harder than it should be, and Its not making any sense. I simply need to move a real variable to two integer variables...
8
Replies
2,503
Views
I am working on a program in Cscape to take a pulse input from a flow meter and output an average of the last 5 minutes of flow and total flow to...
1
Replies
1,111
Views
I am working on a program in Cscape to calculate a flow in gpm with a pulse input. Currently, the data collection, labeled as minute counter and...
4
Replies
1,608
Views
Top