User manual

END;
ReadIOchannel IO
Syntax
FUNCTION ReadIOchannel(Channel_no: Longint): Boolean;
Parameter
Channel_no: Value between 1 and 64 which corresponds to the Input/Output channel whose
status is to be read.
Result
IOdata: The bit in the 'IOdata' variable of the selected channel is changed according to the
status of that channel. A high (1) means that the channel has been set, a low (0) means that it
has been cleared.
Description
The status of the selected Input/Output channel is read and registered in the 'IOdata' variable.
The function returns the status of the channel.
Example
var status: boolean;
BEGIN
ConfigIOChannelAsInput(2);
status := ReadIOchannel(2); // Read Input channel 2
END;
ReadIOchip IO
Syntax
FUNCTION ReadIOchip(Chip_no: Longint): Longint;
Parameter
Chip_no: Value between 0 and 7 which corresponds to the address setting of the Input/Output
chip in which the status of the inputs are to be read.
Result
IOdata: The bits in the 'IOdata' variable of the selected IO-chip are changed according to the
status of the IO-channels. A high (1) means that the channel has been cleared, a low (0) means
that it has been cleared.
Description
The status of all channels of the selected Input/Output chip are read and registered in the
'IOdata' variables. The function returns the status of the chip inputs.
Example
var status: longint;
BEGIN
ConfigIOchipAsInput(0);
status := ReadIOchip(0); // Read Input channels from chip 0
END;