After configuring the communication channel, you need to enter the message end detection parameters.
It is split into two windows:
The activation of one of these conditions leads to the following:
-
The communication function INPUT_CHAR does not allow you to read a defined number of characters. The parameter Number of characters to be read must be 0.
-
The possibility of using the communication function OUT_IN_CHAR on reception.
Selecting stop on silence means that stop on reception is deselected. Similarly, selecting stop on reception deselects the stop on silence function.
This window looks like this:
A reception request can be terminated once a specific character is received.
By checking the option Stop, it is possible to activate and configure the stop on reception by a message end character:
-
CR: enables you to detect the end of the message by a carriage return
-
LF: enables you to detect the end of the message by a line feed
-
data entry field: enables you to identify a message end character (decimal value) that is different from the CR or LF characters,
Possible values are:
-
Character included: Check this box if you want to include the message end character in the reception table of the Control Expert PLC application.
It is possible to configure two message reception end characters. In the below window, the reception end for a message is detected by an LF or CR character.
This window looks like this:
This parameter allows you to detect the end of a message on reception by the absence of message end characters over a given time.
Stop on silence is validated by checking the Stop box. The duration of the silence (expressed in milliseconds) is set using the data entry field.
NOTE: The possible values are 1 ms to 10000 ms.