I'm currently trying to upgrade a Citect 5.5 project to 7.3. The conversion process seems to work just fine, but I'm getting a few compiling errors involving the cicode files.
Here's what the error states:
"Incorrect number of arguments for function"
This occurs for MANY of the instances where TagWrite was used, here's an example:
TagWrite("Lft_Calculation"+IntToStr(count));
According to the help files, TagWrite wants these parameters:
TagWrite(STRING sTag, STRING sValue [, INT nOffset] [, INT bSynch] [, STRING ClusterName])
And an example of a proper TagWrite is:
TagWrite("PLC_VAR1", 123);
So it seems that leaving out the second parameter was okay back in Citect 5.5, but 7.3 is being fussy with it. My question would be, what parameter should be added to TagWrite in version 7.3 in order to have the same behavior that omitting the parameter in 5.5 would have?
There's a ton of TagWrite spread across many Cicode files. The Cicode is quite messy as well, so getting the same behavior is critical. Any help is greatly appreciated!
Here's what the error states:
"Incorrect number of arguments for function"
This occurs for MANY of the instances where TagWrite was used, here's an example:
TagWrite("Lft_Calculation"+IntToStr(count));
According to the help files, TagWrite wants these parameters:
TagWrite(STRING sTag, STRING sValue [, INT nOffset] [, INT bSynch] [, STRING ClusterName])
And an example of a proper TagWrite is:
TagWrite("PLC_VAR1", 123);
So it seems that leaving out the second parameter was okay back in Citect 5.5, but 7.3 is being fussy with it. My question would be, what parameter should be added to TagWrite in version 7.3 in order to have the same behavior that omitting the parameter in 5.5 would have?
There's a ton of TagWrite spread across many Cicode files. The Cicode is quite messy as well, so getting the same behavior is critical. Any help is greatly appreciated!