background image

  

 

TCW181B-CM_R1 

 

 

 

 

 

 

 

 

 

 

                    Page 11 

13.5

 

I/O Setup 

OID 

Name 

Access 

Description 

Syntax 

x

.5.1.0 

relayPulseDuration 

read-write  Global Pulse duration 

INTEGER (1..253) 

x

.5.2.0 

Relay1description 

read-write  Relay 1 description 

String (SIZE (0..11)) 

x

.5.3.0 

Relay2description 

read-write  Relay 2 description 

String (SIZE (0..11)) 

x

.5.4.0 

Relay3description 

read-write  Relay 3 description 

String (SIZE (0..11)) 

x

.5.5.0 

Relay4description 

read-write  Relay 4 description 

String (SIZE (0..11)) 

x

.5.6.0 

Relay5description 

read-write  Relay 5 description 

String (SIZE (0..11)) 

x

.5.7.0 

Relay6description 

read-write  Relay 6 description 

String (SIZE (0..11)) 

x

.5.8.0 

Relay7description 

read-write  Relay 7 description 

String (SIZE (0..11)) 

x

.5.9.0 

Relay8description 

read-write  Relay 8 description 

String (SIZE (0..11)) 

x

.5.10.0 

digitalInputAction 

read-write  Digital Input Action condition 

INTEGER { 
MAIL_IF_CLOSED_TO_OPEN(2), 
MAIL_IF_OPEN_TO_CLOSED(1), 
NO_ACTION(0) } 

x

.5.11.0 

digitalInputTo 

read-write 

Digital Input event receiver's e-mail 
address 

String (SIZE (0..38)) 

x

.5.12.0 

digitalInputSubject 

read-write  Digital Input event e-mail's subject 

String (SIZE (0..11)) 

x

.5.13.0 

digitalInputBody 

read-write  Digital Input event e-mail's body 

String (SIZE (0..22)) 

x

.6.0 

configurationSaved 

read-write 

Configuration save status 
SAVED/UNSAVED 

INTEGER { SAVED(1), UNSAVED(0) } 

x

.7.0

 

restartDevice 

read-write  Restart Device 

INTEGER { RESTART(1), CANCEL(0) } 

 

14.

 

XML and HTTP API commands  

XML is often preferred choice when it comes to M2M communication and system integration. 

The monitored values are transmitted in 

status.xml

 file that can be easily processed by software 

applications. 

Below is the structure of the XML file, which is located at: 

http://device.ip.address/status.xml

<Monitor> 
    <Device>TCW181B-CM</Device>   

 

Device Type 

    <FW>tcw181-cmv1.01</FW> 

 

 

Firmware version 

    <DigitalInput>OPEN</DigitalInput> 

 

Digital input state 

    <Relay1>ON</Relay1> 

 

 

 

Relay 1 state 

    <Relay2>OFF</Relay2> 

 

 

 

Relay 2 state 

    <Relay3>ON</Relay3> 

 

 

 

Relay 3 state 

    <Relay4>OFF</Relay4> 

 

 

 

Relay 4 state 

    <Relay5>ON</Relay5> 

 

 

 

Relay 5 state 

    <Relay6>OFF</Relay6> 

 

 

 

Relay 6 state 

    <Relay7>ON</Relay7> 

 

 

 

Relay 7 state 

    <Relay8>OFF</Relay8> 

 

 

 

Relay 8 state 

</Monitor> 

The relay outputs can be controlled by sending HTTP commands: 
 

Command 

Description 

http://device.ip.address/?r

X

=1 

Turn Relay 

X

 ON 

http://device.ip.address/?r

X

=0 

Turn Relay 

X

 OFF 

http://device.ip.address/?tg

X

=1 

Toggle Relay 

X

 state 

http://device.ip.address/?pl

X

=1 

Pulse Relay 

X

 

http://your.ip.address/?r

X

=1&r

Y

=1 

Turn both relays 

X

 and 

Y

 ON 

http://your.ip.address/?r

X

=0&r

Y

=0 

Turn both relays 

X

 and 

Y

 OFF 

 

Note: 

X

 and 

Y

 are the number of the corresponding relay output (1 to 8) 

 

Summary of Contents for TCW181B-CM

Page 1: ...ut is suitable for solving specific problems in various fields such as remote control process automation home automation and others 2 Features 10 Mb Ethernet connectivity Password protected web based configuration and control 1 digital input with logic level and dry contact modes 8 relays with NO and NC contacts SNMP v 1 support Sending SNMP Traps messages under certain conditions Sending E mail m...

Page 2: ...NO COM NC of Relay7 Pin 10 11 12 NO COM NC of Relay8 Connector 2 Pin 1 2 3 NC COM NO of Relay4 Pin 4 5 6 NC COM NO of Relay3 Pin 7 8 9 NC COM NO of Relay2 Pin 10 11 12 NC COM NO of Relay1 Connector 3 Pin 1 Digital input DI Pin 2 Ground Pin 3 12VDC Connector 4 Power Ø2mm central positive Connector 5 Ethernet RJ45 Operating mode is selected by jumper DI on PCB closed for dry contact and open for log...

Page 3: ...ler if recommended free spaces to adjacent devices are not ensured Joint part with external component shall have space for attachment removal of the cable after installation Teracom does not guarantee successful operation of the product if the product was used under conditions deviating from the product specifications To ensure that the device works correctly follow the steps below ensure that the...

Page 4: ...for mechanical details Maintain spacing from adjacent equipment Allow 50 mm of space on all sides as shown on fig 2 in Appendix A This provides ventilation and electrical isolation 11 Configuration Please follow the steps below for proper installation 1 Mount the controller in a dry and ventilated place 2 Connect the Ethernet port to a 10 100MB Ethernet network For direct connection to a PC use a ...

Page 5: ... to login the following message appears Someone s logged in The active session will be terminated automatically if the current user stays inactive for 2 minutes 11 2 Monitoring page After successful authorization the Monitoring page appears The Monitoring page provides information about the state of the relays and digital input ...

Page 6: ...P address is static DNS these fields is mandatory if domain names are used instead of IP addresses By default DNS has the same Ip address as Default gateway Time Server and Time Zone these fields are not mandatory they are used when e mail must be sent Host Name up to 16 symbols it appears as a Subject in sent e mails MAC device MAC address The good practice is to change the default IP address of ...

Page 7: ...ings for SNMP section are SNMP Configuration enable disable SNMP Read Write community performs client authentication Read Only community performs client authentication SNMP Traps enable disable SNMP trap messages IP address IP address of the receiving host Community string performs client authentication Trap Interval time interval in seconds for SNMP trap messages Max Traps number maximum number o...

Page 8: ...put can mange e mail sending Following parameters must be set Mail to e mail address of recipient Subject e mail subject Message e mail body Important It is necessary to set SMTP server settings on Network Setup page to successfully send e mail messages In the example above if an event occurs closing contact the controller will send e mail message to info teracom cc with subject input alarm and bo...

Page 9: ...Network Management Protocol This could be done using every SNMPv 1 compatible program Parameters that can be changed are grouped according to their functions in the tables below To obtain a valid OID number it is necessary to replace the x symbol with the 1 3 6 1 4 1 38783 To save the changes configurationSaved OID x 6 0 should be set to 1 13 1 Product OID Name Access Description Syntax x 1 1 0 na...

Page 10: ...7 pulse state INTEGER 0 255 x 3 17 0 Pulse8 read write Relay 8 pulse state INTEGER 0 255 x 3 18 0 allOn read write Set all relays On INTEGER 0 255 x 3 19 0 allOff read write Set all relays Off INTEGER 0 255 x 3 20 0 allPulse read write Pulse all relays INTEGER 0 255 13 4 Network OID Name Access Description Syntax x 4 1 0 deviceIPAddress read write Device IP address IpAddress x 4 2 0 subnetMask rea...

Page 11: ...SIZE 0 22 x 6 0 configurationSaved read write Configuration save status SAVED UNSAVED INTEGER SAVED 1 UNSAVED 0 x 7 0 restartDevice read write Restart Device INTEGER RESTART 1 CANCEL 0 14 XML and HTTP API commands XML is often preferred choice when it comes to M2M communication and system integration The monitored values are transmitted in status xml file that can be easily processed by software a...

Page 12: ... Name Admin admin Password Admin admin IP Address 192 168 1 2 Subnet Mask 255 255 255 0 Default Gateway 192 168 1 1 SNMPConfiguration disabled readCommunity public writeCommunity private 16 Firmware update TCW181B CM supports remote firmware update To update the device follow the steps below Download the TCW1XX_Update_Tool program from www teracom cc Download the latest firmware version file cod f...

Page 13: ...TCW181B CM_R1 Page 13 Appendix A Fig 1 Fig 2 ...

Reviews: