Step7 Copy string in FB IN_OUT UDT var

jenzop

Member
Join Date
Mar 2024
Location
spain
Posts
2
Hello
Inside a FB, I´m trying to transfer a string from a DB to a IN_OUT var that was define as a UDT.
The problem is that i can´t determine the adress .
I need to transfer a string[19] from a DB to OP.AuxDatos.AuxDatoVacio.InicioCiclo

uno.jpg
dos.jpg
 
do some research on pointers, also known as P# - you will be working with indirect addressing. To find the location (or address) you can open the instance DB (or IDB) of the FB call and read your column markers. You can also identify the location directly from the instance tables you show above, but you have to click through the layers of the data structure and add them together.
 
do some research on pointers, also known as P# - you will be working with indirect addressing. To find the location (or address) you can open the instance DB (or IDB) of the FB call and read your column markers. You can also identify the location directly from the instance tables you show above, but you have to click through the layers of the data structure and add them together.
If I open the DB of instance the I_O section only appear UDT row, with 4 bytes.
But the UDT have 366 bytes
tres.jpg
 
Is your FB call up to date? Did you modify the UDT (increase it's size from the original 6 bytes) after doing the initial UDT call as an in_out?
 

Similar Topics

Hi Im trying to use SFC20 BLK Move in a piece of SCL code in Step7. I need to copy/move one string[16] in a DB to another DB place ! If a block...
Replies
5
Views
13,507
There must be a way to create a 'String Copy' function in Step7, something like: Call FCx FromStr:=SourceString ToStr:=DestString or am I...
Replies
12
Views
5,184
Hello! Is it possible to copy pointer's pointing address to any variable at Siemens step7? I mean I have pointer address to db block with...
Replies
14
Views
15,555
This is the first time I am working with Simatic Manager Step7 as I started my siemens journey with TIA which is pretty easy and do a lot of stuff...
Replies
3
Views
146
When you download a DB, the values get overwritten by what is in the "actual" column in offline DB. Does this happen at the start of the PLC...
Replies
6
Views
143
Back
Top Bottom