SUBOUT Command

Purpose

Subtracts a specified value from the current value of a block.

Syntax

SUBOUT value FROM block

Example

To subtract 12 from the current value of the block, AI2, enter:

SUBOUT 12 FROM AI2

NOTE: Be sure to include a DELAY command after a SUBOUT command when it subtracts a value from an Analog Output block. Using the DELAY command ensures the Analog Output block has time to process the data it receives from the Program block.