Signal.AIO Property

Sets and gets the values of the analog input and output channels.

Signal.AIO(channel)=<new_value>
-or-
... Signal.AIO(channel)

Prerequisites

None

Parameters

channel

A required numeric expression that specifies the analog channel to be accessed. Table 19-75 shows the allocated ranges of channel numbers.

Table 19-75: Channel Numbers Allocated Ranges

Channel Type Minimum number Max allocated number

Analog outputs

1

10000

Analog inputs

10001

20000

Please consult the hardware specification for your specific version of controller for information on the maximum number of input and output channels available on your system.

Only the value of an output channel can be written. The current values of both input and output channels can be read.

Remarks

At the hardware level, both analog input and analog output signals levels are represented by integer numbers whose ranges are a function of the specific model of your controller. To generalize accessing these devices at the GPL level, analog values are represented by floating point numbers that are scaled, offset, and thresholded relative to the raw hardware values.

In many systems, analog values are configured to range from either +-1.0 or +-100. Please consult the personnel who configured your controller for the applicable ranges of possible analog values.

Examples

Dim sensor_reading As Single 
sensor_reading = Signal.AIO(10001) 'Sets sensor_reading equal to the
'scaled value of the first analog
'input channel

See Also

Signal Class | Signal.DIO