Obsolete PV data types in sys_lib.var

Hi everyone,

I have some code that uses the obsolete PV data type constants from sys_lib.var (constants like PB_DT_STRUCT, PB_DT_BOOL etc.). I see that the same file defines analogous constants like SYSLIB_IEC_TYPE_BOOL etc. which aren’t marked obsolete and should probably be used instead.

Question: Where is documentation for this transition, so far I couldn’t find any in the online help.

For context: This issue popped up when I tried to compile the code in Automation Studio 6 where the obsolete constants apparently are not defined anymore in sys_lib.

Best regards
Lukas

Hi Lukas,

Some function blocks of library sys_lib has been discotinued for AS 6. The reason of it is that those function blocks were used only in SG3 target systems, which has been also discontinued for AS 6. Some others, just has been replaced by other function blocks.

Please check in your code which function blocks are you using and check the documentation accordingly:
Libraries in which only individual function blocks / functions are discontinued

Hope this helps!!

I fail to find it as well, but this might be due to the fact that the transition away has been a while in the making.
The first marking of them as being “obsolete” happened in AS 4.9 (AR 4.90) and the accompanying Library

, though I fail to find the announcement for it in general (or don’t know where to look atm).
The next step was the removal now, 4 versions later.

Hope that helps at least a little

Edit: @xabier.zaldua this is unrelated to the removal of some of the functions and function blocks

Xabier, Michael, thanks!

I think this is sufficient information for now and I’ll continue with this. I’ll mark Michael’s answer as solution to close this topic for now.

1 Like