Return to TOC Curtis 1239E-1269E Manual, os 37.0 RevA – May 2021
10 — VEHICLE CONTROL LANGUAGE (VCL)
pg. 133
Returns:
–1 Invalid string format.
0 If message NOT output.
1 If the message was generated successfully.
2 If the message was generated successfully, but the numeric
value was truncated.
Error Codes: None.
Example:
LEFT-MOTOR 1234.5 RPM [Msglengh = 21]
If the variable = 12345, the pre-text is “LEFT-MOTOR”, the post-
text is “RPM”, the decimal format is PSM_DECIMAL_1 and the
ArrayStart is User101.
Then set User101 = 76 “L” User102 = 69 “E” User103 = 70 “F”
User104 = 84 “T” User105 = 45 “-” User106 = 77 “M” User107
= 79 “0” User108 = 84 “T” User109 = 79 “O” User110 = 82
“R” User111 = 32 “ ”(space) User112 = 49 “1” User113 =
50 “2” User114 = 51 “3” User115 = 52 “4” User116 = 46 “.”
User117 = 53 “5” User118 = 32 “ ”(space) User119 = 82 “R”
User120 = 80 “P” User121 = 77 “M”
NFormat Numerical format specifier
PSM_DECIMAL = Decimal, no decimal point.
PSM_DECIMAL_0 = Decimal, decimal point at far right.
PSM_DECIMAL_1 = Decimal, decimal point 1st digit from far right.
PSM_DECIMAL_2 = Decimal, decimal point 2nd digit from far right.
PSM_DECIMAL_3 = Decimal, decimal point 3rd digit from far right.
PSM_BINARY, = Binary.
PSM_HEX, = Hexadecimal
PSM_TEXT_ONLY = Do not use the value of the variable in
the message.