Indirect addresing within FB

SIMATIC S7-200/300/400, Step7, PCS7, CFC, SFC, PDM, PLCSIM,
SCL, Graph, SPS-VISU S5/S7, IBHsoftec, LOGO ...
RodriGnes
Posts: 1
Joined: Wed Mar 11, 2020 10:39 am
Location: Sevilla

Indirect addresing within FB

Post by RodriGnes »

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
SHKODRAN
Posts: 199
Joined: Wed Dec 24, 2008 4:37 pm
Location: Europe

Re: Indirect addresing within FB

Post by SHKODRAN »

Post your code, someone can help you.
cacapone
Posts: 16
Joined: Fri Jul 09, 2010 2:35 pm

Re: Indirect addresing within FB

Post by cacapone »

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.