muhsin
When defining global variables, I get an error even though everything is correct.
Reply 0 0
thiagoralves
The error is actually here:
plc.st:547-9..549-12: error: no body defined in program declaration.
In section: PROGRAM Main_Act
 
You can't have an empty program. Once you fill Main_Act with something, the error will go away. But then you will find a lot more errors, most of them related to incompatible data types in operations (for example, dividing a DINT by a REAL). IEC 61131-3 is a strongly typed language. Datatypes must be of the same type for any arithmetical operation.
Reply 0 0
muhsin
Thank you, problem solved. How did you get the error details? Is it possible for me to see it?
Reply 0 0
muhsin
I get a lot of errors like this, I have to look quickly to avoid having to deal with it every time.
Reply 0 0
thiagoralves
Just scroll up to the first error. Normally the first error is the culprit that causes all other errors after it.
Reply 0 0
Reply