I can't get the MID function to work. Anoyone with same experience ?
CALL "MID"
IN :=#MYSTR
L :=5
P :=6
RET_VAL:=#PART
NOP 0
MYSTR STRING[17] = 'This is my string'
PART should evaluate to 'is my'
But when monitoring the FB where this snippet is executed, i don't get that "green" frame around the block indicating that it does not compute, something does not work.
I tried with LEFT function (FC20) and that worked fine, also FIND (FC11) works. But for some reason the MID function does not work.
Need help with this one.
The CPU i use is a IM151-8 PN/DP (Step7 5.4 SP4)
CALL "MID"
IN :=#MYSTR
L :=5
P :=6
RET_VAL:=#PART
NOP 0
MYSTR STRING[17] = 'This is my string'
PART should evaluate to 'is my'
But when monitoring the FB where this snippet is executed, i don't get that "green" frame around the block indicating that it does not compute, something does not work.
I tried with LEFT function (FC20) and that worked fine, also FIND (FC11) works. But for some reason the MID function does not work.
Need help with this one.
The CPU i use is a IM151-8 PN/DP (Step7 5.4 SP4)