background image

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    

*P: Post Trigger Length 

*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.  

 

Summary of Contents for IP Relay

Page 1: ...IP Relay 2x Relay controlled over Ethernet RS 232 Ethernet converter Terminal server EN 900 478a...

Page 2: ...ntains following items IP Relay in a metal box and mechanic version corresponding to the ordering number A 1 1 serial prolonging cable DB9F DB9M for the device setup via RS 232 Power adaptor in Europe...

Page 3: ...Virtual Serial Port 10 SETUP troubleshooting 10 Controlling the Relay and LED diodes 11 Setting other parameters of the device 13 HW VSP Virtual Serial Port 15 IPRC IP Relay Control 17 Basic character...

Page 4: ...lay configuration o Relay 1 Controls breaking contact leading out the power supply output clips can be connected directly as a power supply for an IP camera microwave modem or a power relay o Relay 2...

Page 5: ...Ethernet The device does not have a WWW interface To control the device you can also use a IPRC program Hercules Utility or programmer examples for JAVA Delphi Borland C Visual Basic PHP and others TC...

Page 6: ...itching contact remains open when the power supply is turned on NC normally close Break contact remains closed when the power supply is turned on Max load of the contacts max 50V 1A DC Environment par...

Page 7: ...8 RTS Request to Send 9 unused Note Connector is wired for using the prolong cable with PC check careful connector pinout for your cabling Relay pin descriptions Pin Contact 1 CH1 A 2 CH1 B 3 CH2 A 4...

Page 8: ...nnector Connect supplied power adaptor to the grid and plug the connector of the power adaptor into the IP Relay s power connector If the power supply is OK the green Power indicator should light up I...

Page 9: ...e filled with the configured parameters IP address port and the device name if configured 4 Pressing the Use This button will transfer the IP address and port to the Connection section 5 If the requir...

Page 10: ...ommunication state displayed in the down left corner of the IP Relay s window 6 The Red LED field allows lighting up and turning down the red LED Writing is achieved by a proper Set button Warning The...

Page 11: ...CLOSES NC Break contact Ch1 OPENS PO Power supply over break contact Ch1 TURNS THE POWER SUPPLY OFF PF Power supply over break contact Ch1 TURNS THE POWER SUPPLY ON FF FA 2C 32 25 FF F0 FF FA 2C 97 D...

Page 12: ...field HEX next to the line with the command and press the Send button 6 IP relay reacts according to the sent command and responds by the sequence as depicted Controllong the red LED using the Hercule...

Page 13: ...no matter what port you have choosen for the communication with the device Port 99 is reserved for the TCP setup 3 Press the Connect button The prompt WEB51 should appear in the Received Sent data win...

Page 14: ...e feeding connector of the IP Relay The green Power indicator should light up The listing of configuration parameters will appear in the Received Sent data window Concrete parameter is set by choosing...

Page 15: ...r PC Check that NVT is enabled on the UDP Setup tab from Hercules utility If not enable NVT and save the configuration Run HW VSP and search for the IP Relay in the UDP bookmark Choose the MAC address...

Page 16: ...receives any data switches to the role of a client and opens the connection TCP server s port which is used as input can be configured in main Virtual SP tab and we recommend using numbers higher than...

Page 17: ...IP relay state Writing the executed operation into a log In the upper left section of the application the list of found devices and their MAC addresses is displayed You can search for the individual...

Page 18: ...97 31 FF F0 II 19 23 41 192 168 5 21 Read state of relay 2 sent FF FA 2C 32 30 FF FO II 19 23 41 192 168 5 21 State output pins acknowledge received FF FA 2C 97 31 FF F0 II 19 23 45 192 168 5 21 Disco...

Page 19: ...I Address 192 168 6 200 J Port 23 M Mask 255 255 255 0 G Gateway 192 168 6 254 In IP access filter W Address 0 0 0 0 N Mask 0 0 0 0 X Port 0 0 Y Port Mask 0 0 Active Client Server mode S Send to IP PA...

Page 20: ...the gateway that provides access to outside networks as defined by the IP address and the mask In IP access filter W Address 0 0 0 0 IP address of a network or computer that is allowed to communicate...

Page 21: ...IP mode 0 TCP 1 UDP V NetworkVirtualTerminal Off Network Virtual Terminal allows the interpreting of Telnet protocol sequences including certain RFC2217 extensions enabling on the fly changes of seri...

Page 22: ...w control R RS485 RS422 control Defines idle level of the output RTS pin Important for devices powered from RTS or for add on RS485 Devices that use RTS to switch direction Especially for the internal...

Page 23: ...hich is requested from the remote side after the connection is established 0 TEA authorisation Off 1 TEA authorisation On K TEA key 0 01 02 03 04 1 05 06 07 08 2 09 0A 0B 0C 3 0D 0E 0F 10 To set the T...

Page 24: ...port It s actually a decimal formulation of the hexadecimal value of 5 byte controlling NVT command for controlling the IP relay see chapter Selecting sequences for controlling Relay 1 and Relay 2 Yo...

Page 25: ...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 se...

Page 26: ...rd to the routine it s possible to enable option K Keep connection which in 10 second intervals sends the NOP command into the open NVT connection Network Virtual Terminal Learn how to use Network Vir...

Page 27: ...ackets for a DIN molding are available Mounting profiles depending on the ordered version For the descriptions of the variations that can be ordered see the end of this manual L Enclosure has got rubb...

Page 28: ...sions which differ with contact s configuration as well as with mounting accessories Please check the product website to choose which output configuration and related Ordering ID Purchase number do yo...

Reviews: