Use Of Pointer Data Type - Scl S7400

aracioppi

Member
Join Date
Mar 2004
Posts
35
I need to send a pointer to an array to a function.
The SCL manual gives that example:
FUNCTION FC100 : VOID
VAR_IN_OUT
N_out : INT;
out : POINTER;
END_VAR
VAR_TEMP
ret : INT;
END_VAR
BEGIN
// ...
ret := SFC79(N := N_out, SA := out);
// ...
END_FUNCTION

FUNCTION_BLOCK FB100
VAR
ii : INT;
aa : ARRAY[1..1000] OF REAL;
END_VAR
BEGIN
// ...
FC100( N_out := ii, out := aa);
// ...
END_FUNCTION_BLOCK

the problem is that I don´t know how to manage that pointer in the receiving function (note that in the example it just re-delivers that pointer to a function system)
So, once I have received the pointer in a function, How do I use it??
Thanks
 

Similar Topics

Is it possible to make I/O filed on HMI of POINTER data type? Pointer data type can be either temp, IN or IN_OUT variable inside FB. it would be...
Replies
1
Views
1,774
http://www.plccenter.cn/Siemens_Step7/Format_des_Parametertyps_POINTER.htm Since I can not declare inside DB or UDT POINTER data type, I made...
Replies
23
Views
5,591
Hi all, Can anyone tell me if the POINTER data type is available in TIA for S7-1200 and what the format looks like? It's not listed under Data...
Replies
2
Views
4,124
HI All, I am trying to set up a FB to pass details to to get Simocode data records 92, 94 amd 95. I have 30 motors to read. I can get it to...
Replies
8
Views
4,189
Hi All, in many library function of TiaPortal some data must be write using the pointer format........ eg.: P#DB90.DBX0.0 WORD 10 is it...
Replies
5
Views
2,818
Back
Top Bottom