Serial

<< Click to Display Table of Contents >>

Navigation:  Components > Communication >

Serial

This driver is used for communication with serial devices.

 

Data points of the component:

Name

Type

Function

Send data (bytes as HEX)

Input

Any (not defined in the commands as a HEX editor) commands (space delimited) directly.

Send data (bytes)

Input

Any (not defined) commands in the Editor Commands as bytes directly.

Send data (text)

Input

Any (not defined) Commands as Text Editor in the commands directly.

Debug (text)

Output

Here, error messages are issued. Caution: Diagnostic or debug outputs are only in the event of failure. Please use only with consultation with the support team! This can significantly affect the performance when using the service.

Dynamic

Folder

This folder contains the commands.

Received data (bytes as HEX)

Output

Returns the received data as hex string.

Received data (bytes)

Output

Returns the received data as raw bytes.

Received data (text)

Output

Returns the received data as ASCII text.

Error

Output

If the last transmission is faulty, an on signal is output. No error = Off.

Error trigger

Output

An ON edge is output whenever an error occurs.

Driver On/Off

Bidirectional

Switches the driver on or off

Driver Status

Output

Outputs the driver status.

Driver Gateway - General

Bidirectional

Unidirectional communication interface between this driver and MQTT client.

Cyclic triggering

Bidirectional

(De)Enables cyclic triggering for data polling.

 

 

Properties of the component

Name

Default

Function

Driver

ComPort...

The "Driver" editor is used to set which interface is to be used. The reception delay is the time the system waits for further characters before all information is output.

Commands

0

The commands can be predefined here. These can later be sent directly via the SPs.

Append CR

 

Selection whether a CR is to be transmitted.

Attachment of LF

 

Select whether an LF is to be transmitted.

Cyclic triggering

 

(De)Activates cyclic triggering for data request.

Trigger interval [s]

 

Set the time interval for data retrieval in seconds.

Driver On/Off

 

Switches the driver on or off

 

 

Currently, both physical/virtual COM ports as well as the global cache Flex Ethernet gateways (if there is a serial cable connected and adjusted).

In the event of a normal com port you will need to set the port number as well as the interface parameters can be set.

We are a global cache whose IP Gateway is used, it must be entered. The available serial ports on the "Ports" is queried. The user must now be one of the ports from the list. In this case, the interface parameters are configured within the gateway.

 

On the one hand, the strings can be defined when triggers are sent, on the other hand, binary commands defined by the HEX representation.

 

About the properties "attach" and "attach" CR LF can be used to select whether (in the case of a serial cable connected to the gateway) \r and/or \n to the string to be sent to be attached.

 

In addition, there is a global data point to any (not defined) in the editor to send texts or byte arrays.

For received data there are a further 3 data points. For one, the data is interpreted as ASCII text and output, on the second, the raw bytes output and on a third, the raw bytes as a hex string is output.

 

The transfer of section §, ² and ³ is not possible.

 

Command Editor:

Name

Freely definable name of the command

Type

Setting for the transmission type (ASCII or bytes)

Command

Command which is to be sent.

Expect response

If the response to a command is to be evaluated, this option must be set. This creates a data point (output) with the addition "Response".

data type

Setting for the data type

Response filter type

Selection of the filter type of the response

Response filter expression

Input for the search pattern from the response

Cyclical transmission

(De)Activate the release for cyclic transmission according to the entries in the properties.