The setin Statement

The setin statement sets an input field of a sensor on a port to the value specified in 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 setin statement is shown below.

 setin IN_TYPE_SWITCH, IN_1, TypeField // set sensor to switch type
 setin IN_MODE_BOOLEAN, IN_1, InputModeField // set to boolean mode

Generated by  doxygen 1.6.2