Hello,
Can anyone help me?
I’m looking for a way to access variables in B&R automation studio using the variable name.
The data type of the variable is USINT, but at start of the programm, I have only the name of the variable in string format.
Is there any function block or library that allows you to access a process variable directly using the variable name “String” format?
Hi Tobias
You might want to look into the SYS_Lib. There you have the PV_xgetadr() function which will give you the address of the variable. as well as the length based on a (pointer to) a STRING input.
BR
Jan
2 Likes