<elekdra.blockrs232interface>

back to index
Block interface via serial interface.

Description

This adds a communication interface for a block that interfaces the block line to the PC over a serial interface like a legacy RS232 port. For example, this could be a USB2Block device.

Example

This defines the serial interface 'COM1' on a windows system for use by block 'Bl42'
<elekdra.blockrs232interface>
	<block>Bl42</block>
	<comport>COM1</comport>
</elekdra.blockrs232interface>

Sub tags

Tag Description
<block>
Type: String
Cardinality: once
Reference to block
This references the block by its name. This is a reference to the name of a <elekdra.fieldblock> or <elekdra.axle_block>
<comport>
Type: String
Cardinality: once
Serial port
On a windows system, this can be a serial communication port, like 'COM1', 'COM2', ....

Example

On a Linux system, this can be a device in the '/dev' pseudo directory. A USB2Block registeres as any other virtual serial port:
<comport>/dev/ttyUSB0</comport>

Generated by ConfigFileDocumentationGenerator Valid HTML 4.01 Transitional