- Posts: 1
- Thank you received: 0
Backup of settings in function object
- Ratherhome
- Topic Author
- Offline
- New Member
-
Less
More
5 days 16 hours ago #290
by Ratherhome
Backup of settings in function object was created by Ratherhome
Hi,
I am trying to make it a bit easier for myself and place a selectable backup object inside the code of a function object instead of connecting a backup object to every instance of the object.
im not sure it is even posible to do this (i have not succeded this far any way) but hope it can be done and that I could get some suggestion how to do it.
The last try is to simply use a GetData pointing at $PlcFo:Tellstick-Class-Repeat and connect it to a backup object and surround is with a CArea to handle the selection of backup or not.
This does not work and if I look in the dump of the backup-file the line says :
//VolHuset:Hus-Bel-UTE-_styr-W-Repeat10-W-Backup0
Hus-Bell-UTE-_styr-W-Repeat10-W-Data0.DataObjid Hus-Bel-UTA_styr-W-Repeat10
So is there some way to point the backup to the right path/object ?
(I thave tried to disable the inpin on the backup object and write $PlcFo::Tellstick-Class-Repeat, this shows as error 14145938 in the dump but maybe with the right syntax/casting it would work ?)
Regards
Anders E,
I am trying to make it a bit easier for myself and place a selectable backup object inside the code of a function object instead of connecting a backup object to every instance of the object.
im not sure it is even posible to do this (i have not succeded this far any way) but hope it can be done and that I could get some suggestion how to do it.
The last try is to simply use a GetData pointing at $PlcFo:Tellstick-Class-Repeat and connect it to a backup object and surround is with a CArea to handle the selection of backup or not.
This does not work and if I look in the dump of the backup-file the line says :
//VolHuset:Hus-Bel-UTE-_styr-W-Repeat10-W-Backup0
Hus-Bell-UTE-_styr-W-Repeat10-W-Data0.DataObjid Hus-Bel-UTA_styr-W-Repeat10
So is there some way to point the backup to the right path/object ?
(I thave tried to disable the inpin on the backup object and write $PlcFo::Tellstick-Class-Repeat, this shows as error 14145938 in the dump but maybe with the right syntax/casting it would work ?)
Regards
Anders E,
Please Log in or Create an account to join the conversation.
2 days 16 hours ago #296
by claes
Replied by claes on topic Backup of settings in function object
Hi Anders,
Connecting a GetData will backup the GetData object, not the object it's pointing to. It is possible to insert the attribute into DSup.Attribute if you set LockAttribute, but translation of $PlcFo is not implemented there so this doesn't work either.
The only solution I can come up with that might work is to create a wrapper fo with the original fo connected to a backup inside.
/Claes
Connecting a GetData will backup the GetData object, not the object it's pointing to. It is possible to insert the attribute into DSup.Attribute if you set LockAttribute, but translation of $PlcFo is not implemented there so this doesn't work either.
The only solution I can come up with that might work is to create a wrapper fo with the original fo connected to a backup inside.
/Claes
Please Log in or Create an account to join the conversation.
Time to create page: 0.564 seconds