naturephoenix
Member
I'm working with s7-1200
There are some FB which have input parameter pointer to some area.
For example: P#DB300.DBX0.0 WORD 2
This is usually input to communications functions and it indicates where to store data or from where to take.
What I'm trying is that this "P#DB300.DBX0.0 WORD 2" is stored inside some variable so I can change it according other inputs to my functions. For example if one of the inputs to my function is number 5(INT) and that should mean in my function P#DB300.DBX0.0 WORD 7 or P#DB305.DBX0.0 WORD 2 how can I get this (P#DB300.DBX0.0 WORD 7 or P#DB305.DBX0.0 WORD 2) from P#DB300.DBX0.0 WORD 2 if my input is INT 5.
Help inside SCL or FBD, STL is welcome
There are some FB which have input parameter pointer to some area.
For example: P#DB300.DBX0.0 WORD 2
This is usually input to communications functions and it indicates where to store data or from where to take.
What I'm trying is that this "P#DB300.DBX0.0 WORD 2" is stored inside some variable so I can change it according other inputs to my functions. For example if one of the inputs to my function is number 5(INT) and that should mean in my function P#DB300.DBX0.0 WORD 7 or P#DB305.DBX0.0 WORD 2 how can I get this (P#DB300.DBX0.0 WORD 7 or P#DB305.DBX0.0 WORD 2) from P#DB300.DBX0.0 WORD 2 if my input is INT 5.
Help inside SCL or FBD, STL is welcome