Hi guys!
Is there a document somewhere that states the difference between SCL in TIA portal versus SCL in classic Step7?
I want to reuse some code from old projects into the TIA portal but I get many hundreds of compile errors.
For instance this one:
Generates the error "Data type AT construct is not allowed here."
But looking at the help file using "AT" is perfectly fine but not in the same places as before it seems.
Also
Generates the error "Unknown instruction" on const.
Isn't local constants allowed anymore inside functions?
Anyway, I searched the net for some kind of new versus old on SCL but came up with nothing. Any suggestions?
Thanks!
-Pete
PS. I'm using the function where you generate blocks from external source files.
Is there a document somewhere that states the difference between SCL in TIA portal versus SCL in classic Step7?
I want to reuse some code from old projects into the TIA portal but I get many hundreds of compile errors.
For instance this one:
Code:
function XYZ : void
var_temp
z : word;
bit [B]at[/B] z : array [0..15] of bool;
end_var
But looking at the help file using "AT" is perfectly fine but not in the same places as before it seems.
Also
Code:
function XYZ : void
[B]const [/B]
b0 := 8;
b1 := 9;
b2 := 10;
end_const
Isn't local constants allowed anymore inside functions?
Anyway, I searched the net for some kind of new versus old on SCL but came up with nothing. Any suggestions?
Thanks!
-Pete
PS. I'm using the function where you generate blocks from external source files.