cpuxa.GetPoint

Purpose

This function is part of the cpuxa object.  It will return the value of a specific input point on a SECU16 module.  If the digital parameter is TRUE, the result will be either 0 for a low input or 1 for a high input.  If it's FALSE, the result will be a value between 0 and 255, which represents the voltage level.  The secu16 needs to have the proper jumpers set for each input.  Refer to the CPU-XA/Ocelot users guide for more information.

Parameters

Parameter: unit
Type: integer
Description: This is the unit number of the target device (1 = the first unit).

Parameter: point
Type: integer
Description: This is the input point of the target device (0 = the first input point).

Returns

Return value: I/O point
Type: integer
Description: See below.

Example

Read the digital input from the first point in the first unit of the SECU16.

sub main()

dim v
v=cpuxa.GetPoint(1,0)

end sub