The getout Statement
The getout statement reads a value from an output field of a sensor on a port and writes the value to its first output argument. The port is specified via the second argument. The output field identifier is the third argument. Valid output field identifiers are listed in the Output field constants section. Valid output port constants are listed in the Output port constants section. The syntax of the getout statement is shown below.
getout rmVal, thePort, RegModeField // read motor regulation mode getout tlVal, thePort, TachoLimitField // read tachometer limit value getout rcVal, thePort, RotationCountField // read the rotation count