User manual

END;
ReadADchannel AD
Syntax
FUNCTION ReadADchannel(Channel_no: Longint):Longint;
Parameter
Channel_no: Value between 1 and 16 which corresponds to the AD channel whose status is to
be read.
Result
AD:
The corresponding 'AD' data is read according to the status of the AD input.
Description
The input voltage of the selected 8-bit Analogue to Digital converter channel is converted to a
value which lies between 0 and 255 and registered in the respective 'AD' data variable.
Example
var data: longint;
BEGIN
data := ReadADchannel(1);
// AD channel 1 is read to variable 'data'
END;
OutputDAchannel DA
Syntax
PROCEDURE OutputDAchannel(Channel_no: Longint; Data: Longint);
Parameter
Channel_no:Value between 1 and 4 which corresponds to the 8-bit DA channel number whose
data is to be changed.
Data: Value between 0 and 255 which is to be sent to the 8-bit Digital Analogue Converter .
Result
DA:
The 'DA' data variable of the selected channel is set according to the data which is to be sent.
The selected DA-channel is changed.
Description
The indicated 8-bit Digital to Analogue Converter channel is altered according to the new data.
This means that the data corresponds to a specific voltage. The value 0 corresponds to a
minimum output voltage (0 Volt) and the value 255 corresponds to a maximum output voltage
(Vmax) which is set according to the preset on the interface board. A value of 'Data' lying in
between these extremes can be translated by the following formula : Data x Vmax/255.