User manual

All digital Input/Output channels (1...64) are configured as inputs. Each IO chip (0...7) contains a
variable in which the configuration of each IO pin is returned in the form of a data bit which is
not necessarily high. If this bit is high (1) it means that this is an input. Writing to this IO-channel
will have no effect. The status of the IO-channels can only be determined by an external signal.
Example
BEGIN
ConfigAllIOasInput;
// All IO channels are now configured as inputs
END;
ConfigIOchipAsInput IO
Syntax
PROCEDURE ConfigIOchipAsInput(Chip_no: Longint);
Parameter
Chip_no: Value between 0 and 7 which corresponds to the address setting of the Input/Output
chip in which all channels are configured as inputs.
Result
IOconfig: The 'IOconfig variable of the respective Input/Output chip is given the value 255.
Description
The 8 digital Input/Output channels of the selected IO chip are configured as inputs. Each IO
chip (0...7) contains a variable in which the configuration of each IO pin is returned in the form
of a data bit which is not necessarily high. If this bit is high (1) it means that it is an input. The
status of the IO-channels can only be determined by an external signal.
Example
BEGIN
ConfigIOchipAsInput(0);
// The 8 channels from IO Chip 0 are now configured as inputs
END;
ConfigIOchannelAsInput IO
Syntax
PROCEDURE ConfigIOchannelAsInput(Channel_no: Longint);
Parameter
Channel_no: Value between 1 and 64 which corresponds to the Input/Output channel that is to
be configured as an input.
Result
IOconfig:Via the channel number, the IO-chip number and bit number are determined in order
to set this bit high (1) in the 'IOconfig' variable.
Description
The selected Input/Output channel is configured as an input while the configuration of the other
channels remain unchanged. This occurs by making the correct bit high (1) in the configuration