CGTECH_VAR STRING BUFFER
CGTECH_VAR STRING NAME
CGTECH_VAR INT VALUE
VALUE = 123
NAME = "123"
BUFFER = "ABC"
#2 = 123
#3 = "123"
#4 = "ABC"
Q5 = 123
Q6 = "123"
Q7 = "ABC"
Note: The data type will determine which output field will be
Tests with Word expecting [Link] Numeric output is zero, Default text output is the input
numeric argument text.
INPUT Data Type Text Output Numeric Output Explanation
123 numeric 123 123
"123" text 123 0
"ABC" text ABC 0
=123 numeric 123 123
="123" text 123 0
ABC none 0 Word ABC is not defined. The A is seen as an AAxisMotion command.
= [VALUE + 7] numeric [Value + 7] 130
= [NAME + BUFFER] numeric [Name + Buffer] 0 Concatenating of strings are not supported.
VALUE numeric VALUE 123
= VALUE numeric VALUE 123
NAME text 123 0
= NAME text 123 0
BUFFER text ABC 0
BUFFER text ABC 0
#2 numeric #2 123
= #2 numeric #2 123
#3 text 123 0
= #3 text 123 0
#4 text ABC 0
= #4 text ABC 0
Q5 numeric Q5 123
= Q5 numeric Q5 123
Q6 text 123 0
= Q6 text 123 0
Q7 text ABC 0
=Q7 text ABC 0
Tests with Word expecting alpha
numeric argument
INPUT Data Type Text Output Numeric Output Explanation
123 text 123 0
"123" text 123 0
"ABC" text ABC 0
=123 numeric 123 123
="123" text 123 0
ABC text ABC 0
= [VALUE + 7] numeric [Value + 7] 130
= [NAME + BUFFER] numeric [Name + Buffer] 0 Concatenating of strings are not supported.
Special case added in V6.0. Text is a variable name. NOTE: Array
VALUE numeric VALUE 123 variables are not supported.
= VALUE numeric VALUE 123
NAME text 123 0 Special case added in V6.0. Text is a variable name.
= NAME text 123 0
BUFFER text ABC 0 Special case added in V6.0. Text is a variable name.
BUFFER text ABC 0
#2 numeric #2 123 NOTE: # is not considered an alpha numeric character
= #2 numeric #2 123
#3 text 123 0
= #3 text 123 0
#4 text ABC 0
= #4 text ABC 0
Q5 numeric Q5 123 Special case added in V6.0. Text is a variable tag/value
= Q5 numeric Q5 123
Q6 text 123 0 Special case added in V6.0. Text is a variable tag/value
= Q6 text 123 0
Q7 text ABC 0 Special case added in V6.0. Text is a variable tag/value
=Q7 text ABC 0