Forum Home › Forums › Understanding the Software › Chart Pro – How to set ArchiveCode for a custom (user-defined) archive
- This topic has 4 replies, 3 voices, and was last updated 7 hours, 23 minutes ago by
Mikhail.
-
AuthorPosts
-
September 14, 2026 at 7:07 am #18307
Daniel1113
ParticipantHello,
I created a custom historical archive (1-second writing period) registered in Secondary Tables > Archives with Code=”Sec” and Bit=16. I confirmed it works – the channel’s decimal archive value becomes 65536 when only this archive is enabled, and I can retrieve correct data by calling the internal API directly:
However, when I set <ArchiveCode>Sec</ArchiveCode> in PlgChartPro.xml’s DataOptions, the chart page requests archiveBit=1 (Min) instead. When I tried <ArchiveCode>16</ArchiveCode> (the bit number), it requests archiveBit=-1 and shows no data.
Environment: Rapid SCADA Webstation 6.2.3.1, Chart Pro 6.1.1.1 (trial license).
Could someone tell me the correct way to configure PlgChartPro.xml’s ArchiveCode field to point to a custom archive (not one of the built-in Cur/Min/Hour/Day/Events)? Is this supported in the current version?
Thank you.
September 14, 2026 at 7:30 am #18308
manjey73ParticipantFind the entry ‘Min’ in one of the fields of the Graphics template and replace it with your archive code ‘Sec’
Next, create a table where you will have data only for ‘Sec’, and in the table parameters, specify the line for running the Archive.
September 14, 2026 at 7:31 am #18309
manjey73ParticipantPlgChartPro_Sec20.xml=&profile=PlgChartPro_Sec20.xml
By analogy. Go to the Table, click the gear.
September 14, 2026 at 12:07 pm #18310
MikhailModeratorHello,
In short, you should create a new chart profile. It is a file located in the Webstation configuration in the project.1. Copy the existing file PlgChartPro.xml with a new name, and specify the archive in the new profile (DataOptions – ArchiveCode).
2. Edit PlgChartPro_Config.xml by adding a new profile.
3. Upload the project for execution.-
This reply was modified 8 hours, 3 minutes ago by
Mikhail.
September 14, 2026 at 12:48 pm #18312
MikhailModeratorHowever, when I set ArchiveCode=Sec in PlgChartPro.xml’s DataOptions, the chart page requests archiveBit=1 (Min) instead.
It sounds weird. Try creating a new profile for the Sec archive.
I confirmed it works – the channel’s decimal archive value becomes 65536 when only this archive is enabled, and I can retrieve correct data by calling the internal API directly
An archive name is shown in the chart info in the top. What archive is mentioned there?
-
This reply was modified 7 hours, 21 minutes ago by
Mikhail.
-
This reply was modified 8 hours, 3 minutes ago by
-
AuthorPosts
- You must be logged in to reply to this topic.