hi every one!.
i have a question about using temp variables in FC's of s7 300
for example when i write a script like this
A #in1
= #temp
A #temp
= #out1
and use it in different positions; the fcs doesn't work correctly.
this example is very easy so no violence occurs but when the script gets longer and the number of temps are increased, fcs doesn't work correctly. so i have to define in-out variables and assign different M memories seperately for the fc.
how can i use the fc's without using seperate M memories?
i have a question about using temp variables in FC's of s7 300
for example when i write a script like this
A #in1
= #temp
A #temp
= #out1
and use it in different positions; the fcs doesn't work correctly.
this example is very easy so no violence occurs but when the script gets longer and the number of temps are increased, fcs doesn't work correctly. so i have to define in-out variables and assign different M memories seperately for the fc.
how can i use the fc's without using seperate M memories?