hello,when I bulid a program given by 'codesys 2.3 basic manul',there were seven errors all about global variables.
but I was following manul's example ,and the first time I bulit ,it was successful. then I changed something and restore this program , nothing different form the example in book. below are global variables and error messages ,please help me finding reasons. VAR_GLOBAL
there must be a space in between the AT and the rest.
You must have a PLC type declared as it is calculating the address.
I do not get this error so please send the complete program.
Did you put these vars in the correct place resources-globalvars-globalvars?
Not in any other place ie in your PLC_PRG this will not work.
the example on the traffic lights is no good example.
try for yourself and have a look at w www.oscat.de w for a nice library.
if you look into the TXT version you can see exact how it is programmed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello,when I bulid a program given by 'codesys 2.3 basic manul',there were seven errors all about global variables.
but I was following manul's example ,and the first time I bulit ,it was successful. then I changed something and restore this program , nothing different form the example in book. below are global variables and error messages ,please help me finding reasons.
VAR_GLOBAL
END_VAR
Error 3728:Global_Variables(3):invalid address'%IX0.0'
Error 3728:Global_Variables(4):invalid address'%QX0.0'
Error 3728:Global_Variables(5):invalid address'%QX0.1'
Error 3728:Global_Variables(6):invalid address'%QX0.2'
Error 3728:Global_Variables(7):invalid address'%QX0.3'
Error 3728:Global_Variables(8):invalid address'%QX0.4'
Error 3728:Global_Variables(9):invalid address'%QX0.5'
there must be a space in between the AT and the rest.
You must have a PLC type declared as it is calculating the address.
I do not get this error so please send the complete program.
Did you put these vars in the correct place resources-globalvars-globalvars?
Not in any other place ie in your PLC_PRG this will not work.
the example on the traffic lights is no good example.
try for yourself and have a look at w www.oscat.de w for a nice library.
if you look into the TXT version you can see exact how it is programmed.