(0)| 6/26/2021 8:02 AM | |
|
Joined: 8/21/2014 Last visit: 7/31/2025 Posts: 142 Rating:
|
Hi, When is try to declare an array in the Global device variable space. It was only allowing to declare a array length of 58674. But when i declared the same array in one of the ST Source file interface section with VAR GLOBAL it compiled correctly(Size : 131072). What does it means? Is it safe to declare global variables like that? ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 06/28/2021 10:08:04New subject after splitting |
|
| 6/29/2021 5:15 PM | |
|
Joined: 10/11/2006 Last visit: 1/16/2026 Posts: 6068 Rating:
|
Hello, Yes, it is safe to declare global variables in ST-Source file. 7.2.3.2 Memory requirement of the variables on the local data stack https://support.industry.siemens.com/cs/de/en/view/109767640 |
|
With best regards, |
|
Follow us on