Xenon323
Hello,
i hope someone can help me with my problem that is driving me crazy since days.

I'm currently working on an univerity project where i have to use the ST-language. But when compiling my code i get a huge amount of error messages where i cant figure out why they occure.
I therefore made a minimalistic code example in ST where these very same errors occure again.

The small project is attached.

error: invalid expression in ST formal parameter out assignment.
In section: PROGRAM program0
0119: Stop => (test));

 error: ')' missing after parameter list of function block invocation in ST statement.
In section: PROGRAM program0
0119: Stop => (test));

error: ';' missing at the end of statement in ST statement.
In section: PROGRAM program0
0119: Stop => (test));

invalid statement in ST statement.
In section: PROGRAM program0
0119: Stop => (test));
Quote 0 0
thiagoralves
I don’t know where you took that code from, but the syntax is completely wrong. First, you should avoid having variables in your program with the same name of instance variables. Second, you don’t declare outputs like that in ST. If you rename your start variable and rewrite your code like this it will compile:
instance(start := my_start);
test := instance.stop;
Quote 0 0