3/14/2024 8:52 AM | |
Joined: 1/26/2017 Last visit: 4/18/2024 Posts: 65 Rating:
|
Hello. I found out that in one old program I used arrays in the M area like M[Adr, BitNr] and MW[adr] without any array definition (adr from 0 to 255). Worked perfectly! The small program inside just one OB without any additional Data blocks. The questions is about the data types. 1.It seems that in symbol table I cannot define the arrays? 2.If I just use it like the mentioned above the data will always be in the Word format ? ------------------------------------------------------------------------------------------ |
Last edited by: The Helping Hand at: 03/15/2024 09:54:01New subject after splitting |
|
3/15/2024 12:12 PM | |
Joined: 3/30/2020 Last visit: 8/28/2024 Posts: 4706 Rating:
|
What you show there is indirect addressing available on the S7-300 / S7-400 processors in STL. The rules changed a bit when talking about SCL in TIA Portal's Step7. Some hints about indirect addressing in the SCL language: Do note that the rules changed significantly when we speak of the S7-1200 and S7-1500. Designers are discouraged as far as possible to avoid indirect addressing. The PEEK/POKE instructions in SCL and STL is however available for those processors. Watch out to use non-optimized data structures for these cases. |
Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
Follow us on