The getin Statement
The getin statement reads a value from an input field of a sensor on a port and writes the value to its first argument. The port is specified via the second argument. The input field identifier is the third argument. Valid input field identifiers are listed in the Input field constants section. Valid port constants are listed in the NBC Input port constants section. The syntax of the getin statement is shown below.
getin rVal, thePort, RawValue // read raw sensor value getin sVal, thePort, ScaledValue // read scaled sensor value getin nVal, thePort, NormalizedValue // read normalized value