Good morning colegues. I need to know how can I write in a buffer adressing with a pointer var inside FB. If I write a global var in the code I haven't any problem but if I write over the local var the PLC down to Stop or no write in the memory register.
I have designed a program test for the simu.
If somebody could help me I can send it
Thank
Indirect addresing within FB
-
- Posts: 1
- Joined: Wed Mar 11, 2020 10:39 am
- Location: Sevilla
-
- Posts: 199
- Joined: Wed Dec 24, 2008 4:37 pm
- Location: Europe
Re: Indirect addresing within FB
Post your code, someone can help you.
-
- Posts: 16
- Joined: Fri Jul 09, 2010 2:35 pm
Re: Indirect addresing within FB
in S7-300 / -400, local data when a bloc is open have random rumber (in fact it have previous bloc value)
if you don't recalculate the value eatch time, you need to store somewhere.
if you don't recalculate the value eatch time, you need to store somewhere.