I've tried several things, but always with errors during compiling.
in Global variables I tried:
VAR_GLOBALÂ Â TYPEframedata:Â Â Â Â STRUCTÂ Â Â Â Â Â COB_ID:DWORD;Â Â Â Â Â Â extended:BOOL;Â Â Â Â Â Â interval:TIME;Â Â Â Â Â Â data:ARRAY[1..8]OFINT;Â Â Â Â END_STRUCTÂ Â END_TYPEÂ Â Â Â TX_CAN_frame:ARRAY[0..30]OFframedata;END_VAR
Results in the following errors:
Error 3781: Global_Variables (3): 'END_VAR' or identifier expected
Error 3781: Global_Variables (9): 'END_VAR' or identifier expected
and of course the variable type is of unknown type
placing the struct before VAR_GLOBAL either after END_VAR
results in following error
Error 4024: Global_variables(2): Expecting VAR_GLOBAL before 'TYPE'
me confused. It's not an option to declare anything locally
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Construct the struct under 'Data types' tab (remove old from GVL).
And declare the TX_CAN_frame in GVL in 'Resource' tab (like you did already) or
locally.
/Torbjörn
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've tried several things, but always with errors during compiling.
in Global variables I tried:
Results in the following errors:
Error 3781: Global_Variables (3): 'END_VAR' or identifier expected
Error 3781: Global_Variables (9): 'END_VAR' or identifier expected
and of course the variable type is of unknown type
placing the struct before VAR_GLOBAL either after END_VAR
results in following error
Error 4024: Global_variables(2): Expecting VAR_GLOBAL before 'TYPE'
me confused. It's not an option to declare anything locally
Hi!
Construct the struct under 'Data types' tab (remove old from GVL).
And declare the TX_CAN_frame in GVL in 'Resource' tab (like you did already) or
locally.
/Torbjörn
thank you, that solved my mystery