Machinery
Member
- Join Date
- May 2004
- Posts
- 25
I,ve got a problem creating an any-pointer in GX-developer 7(not IEC).
I want to find an array of 10 char in a memory range of 5 array's.
1) I thought I use the function "DSER" , but 10 char won't fit in
1 dint.
2) I compare the array of 10 char, 5 times with function "BKCMP".
This function didn't work.
3) I find the char array(string) with function "INSTR". This didn't
work also.
The manual mentions to use a variable array ,but this only for IEC-software.
My questions are:
- Is it possible to convert the array of 10 char into a dint?
because then I can use "DSER".
- Is it possible to create an any-pointer so I can use "BKCMP" ,
"INSTR"?
Thanks, a siemen-S7 programmer.
I want to find an array of 10 char in a memory range of 5 array's.
1) I thought I use the function "DSER" , but 10 char won't fit in
1 dint.
2) I compare the array of 10 char, 5 times with function "BKCMP".
This function didn't work.
3) I find the char array(string) with function "INSTR". This didn't
work also.
The manual mentions to use a variable array ,but this only for IEC-software.
My questions are:
- Is it possible to convert the array of 10 char into a dint?
because then I can use "DSER".
- Is it possible to create an any-pointer so I can use "BKCMP" ,
"INSTR"?
Thanks, a siemen-S7 programmer.