IP Relay – 2x relay + RS-232 / Ethernet converter
HW group
June 2006
www.HW-group.com
Page 25 / 28
Setup example
If you need to send all data from
the serial line to the opposite
side, use:
*L: Trigger Length
0
*P: Post Trigger Length
0
*S: Start Trigger Pattern 0.0.0.0
*M: Start Trigger Mask 0.0.0.0
*X: Stop Trigger Pattern 255.0.0.0
*Y: Stop Trigger Mask 255.0.0.0
*E: Max. Start-Stop Length 200
(
The 4 input bytes of data
AND
*M)
=
*S
(
The 4 input bytes of data
AND
*Y)
=
*X
UDP/IP mode settings
If you select „T: IP mode UDP”, the device will communicate with the remote side using
unacknowledged UDP packets. Also, the following menu appears in the setup.
IMPORTANT: You can’t control relay outputs over UDP/IP!
==== Trigerring Setup =====
*L: Trigger Length
1
Numbers of bytes of the starting and ending packet trigger condition. Allowed values are from 0
to 4. If the lengths of your start and stop triggers differ, use the trigger mask and don't forget to
include the masked characters in the lengths - even though they contain actual frame data.
*P: Post Trigger Length 0
In some protocols, checksum or other info follows the stop trigger. This value defines the number
of characters after the stop trigger that should be included in the packet. If the start and stop
triggers are equal, this value specifies packet length without the 0..4 bytes of start trigger.
*S: Start Trigger Pattern 58.0.0.0
Start trigger for packet transmission. Four bytes are set but only the number of bytes specified in
“L: Trigger Length” is considered.
*M: Start Trigger Mask 255.0.0.0
Mask of the start trigger. Masking works similarly to the Ethernet netmasks using a bitwise AND.
Value of 255 means that the tested character must be equal to the character specified in “*S: Start
Trigger Pattern”. For example, to start the transfer with any control ASCII character (0..31d) use
0.0.0.0 for the trigger pattern, 224.0.0.0 for the mask and 1 for the length. If you set both the character
and the mask to 0 the trigger activates for any character.
*X: Stop Trigger Pattern 10.0.0.0
Sets the stop trigger for sending data to the Ethernet.
*Y: Stop Trigger Mask 255.0.0.0
Mask of the stop packet trigger for serial line data. For
example, the settings displayed here are intended for
transferring data in the IntelHEX format over RS485. The start
trigger is a colon and the transfer is terminated after receiving
the control character <LF> (0Ah = 10d).
*E: Max. Start-Stop Length 999
Maximum number of characters sent after the START trigger,
if the STOP trigger is not found sooner. After transmission,
another START trigger is expected. Essentially, this is a
“timeout” specified as the number of characters.