Im currently training on Comau robots, and have hit an obstacle. I need to add in a Constant statement, but none of the manuals i have explain how to actually declare one. If anyone could explain to me how i might go about inputting this, it would be appreciated.
How to use the const statement
-
TheNewGuy -
December 31, 2019 at 6:02 PM -
Thread is Unresolved
-
-
In the same way that you declare VAR, you also use CONST, but with a small change.
VARmyReal : REAL
mySTR : STRING[63]
CONST
mathPI:=3.141529
companyName:='Comau'
You must assign value to the constant immediately upon declaring, and the constant cannot be edited by the program after declaration.