Indirect addresing within FB

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

Indirect addresing within FB

Post by RodriGnes » Wed Mar 11, 2020 2:00 pm

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

Re: Indirect addresing within FB

Post by SHKODRAN » Thu Mar 12, 2020 8:36 am

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 » Fri Apr 10, 2020 4:44 am

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.

Post Reply