3/8/2025 1:48 PM | |
Joined: 8/30/2023 Last visit: 9/2/2025 Posts: 2 Rating:
|
Hi, I would like to create a custom FB and have the input/output as structured variables per the APL standard - with the option of system attribute features - namely S7_archive. I believe the APL implements User Defined Data Types (UDT) for a common real/bool structured variable, which include the value and status byte. The question is, how can the value (real or bool) be archived individually? From SCL code, I have the [attached] (with the UDT in the static area of the FB): Note: The input T_BASE provides the option of archiving automatically in the FBs > Object Properties>I/Os, however user must select this manually. With the goal of archiving myMV#Value {S7_archive:= 'longterm'}, how can this be initialised? Attachment1003.txt (130 Downloads) |
Last edited by: Moderator_Lan at: 03/10/2025 09:15:02Code attached |
|
3/15/2025 3:30 PM | |
Joined: 8/30/2023 Last visit: 9/2/2025 Posts: 2 Rating:
|
Solved: Following forum link provides the correct initialisation of an archive variable for struct parameters as follows: S7_xm_c := 'Value,true;' S7_xm_c attribute problem - 198513 - Industry Support Siemens |
This contribution was helpful to
2 thankful Users |
Follow us on