Page 2
8 Teracom 1-Wire sensors - temperature, humidity, CO2, current, 4/20mA, galvanic isolated analog voltage, etc. TCW220 has 2 relays with normally open and normally closed contacts. The relays can be activated either remotely (WEB, SNMP, HTTP API, MODBUS etc.) or locally – from the status of a monitored parameter...
3. Applications TCW220 is suitable for industrial automation, data acquisition systems, environmental monitoring and local control of an electrical and non-electrical parameter, building automation etc. It works very well as a standalone device that can be controlled using a web browser or as a part of small to large industrial control systems for SCADA (supervisory control and data acquisition).
• Analog inputs Isolation: Non isolated Type: Single ended Resolution: 10 bits Mode: Voltage Input Range: 0 to 10 VDC Accuracy: ±1% Sampling Rate: 500mS per channel (averaged value of 500 samples) Input Impedance: 150 kilo-ohms (min.) • Relay outputs Type: Form C (N.O.
Appendix A, this provides ventilation and electrical isolation TCW220 can be mounted to a standard (35mm by 7.55mm) DIN rail. Attach the controller to the DIN rail by hooking the hook on the back of the enclosure to the DIN rail and then snap the bottom hook into place.
Pin3 – Analog In 2 6.2.1. Power supply TCW220 is designed to be supplied by adapter SYS1421-0612-W2E or similar, intended for use in the conditions of overvoltage category II, and prior assessed for compliance with safety requirements. The power supply equipment shall be resistant to short circuit and overload in a secondary circuit.
It is also possible to monitor voltages bigger than 10 VDC with external resistive dividers. The following picture illustrates how a high-temperature sensor can be connected to the analog input of TCW220. The output of a sensor is connected to “Analog In” and the shield is connected to “GND” terminal.
6.2.4. 1-Wire interface Up to eight 1-Wire sensors can be connected to TCW220. The device supports following sensors - temperature, temperature/humidity, CO2, DC current, AC current, 4/20mA transmitter, galvanic isolated analog voltage, barometric pressure etc. Connected sensors are automatically detected and appropriate dimension is assigned.
6.2.6. Network connection The Ethernet port of TCW220 should be connected to 10/100 Base-T Ethernet hub, switch or router. For configuration, TCW220 may be connected directly to the Ethernet port on a computer. The device support and it is not necessary to use “crossover”...
TCW220 can be used in a wireless network by connecting through a wireless router. 6.3. Communication setup By default TCW220 is delivered with the following network settings: IP address: 192.168.1.2, Subnet Mask: 255.255.255.0, Default Gateway: 192.168.1.1 Communication with TCW220 can be established by assigning a temporary IP address to the computer.
Page 11
This address should be on the same network - for example 192.168.1.3: To get access to the web interface, you should type http://192.168.1.2 into the browser. If the network settings are correct, the login pop-up window will appear: All TCW controllers connected to LAN can be easily found by the free tool “TCW discoverer”. It is available for Win and Mac operating systems and can be downloaded from www.teracomsystems.com TCW220_R4.15 –...
ID number. For every sensor, there are a description, value, and ID information. Teracom 1-Wire sensors readings are shown in the Value 1 column. Dual sensors such as (TSH2xx) temperature/humidity sensors have the 2nd parameter shown in the Value 2 column.
Page 13
This option is very useful when TCW220 is used as a part of monitoring and control system managed either by SNMP or HTTP API commands. For some sensors “Unit”, “Multiplier” and “Offset” can be set in section “Setup-Input/Output”.
Page 14
For every analog input “Unit”, “Multiplier” and “Offset” can be set in section “Setup- >Input/Output”. 7.1.4. Data - relays section The section displays the current state of relays and presents buttons that can be used to change their status. Each relay can be activated either remotely by WEB, SNMP, HTTP API, and MODBUS or locally, from the status of a monitored parameter (1 Wire sensor, analog voltage, and dry contact).
There is a button for server settings test with feedback. In this test sender and recipient of the e-mail are the same. Transport Layer Security protocol is used for secure communication with public mail servers. TCW220 supports TLS 1.0, TLS 1.1, and TLS 1.2 with RSA as a key exchange/agreement and TCW220_R4.15 – November 2022 Page 15...
Page 16
authentication, which ensures successful operation with almost all public servers. STARTTLS is not supported. 7.2.2.2. Alarm destination Up to 5 mail recipients can be set. All they can be activated independently by a checkbox. 7.2.2.3. E-mail details The subject, body header, body and body footer can be customized. For this customization, a set of keys is used.
7.2.3.2. Digital inputs For every digital input, a description up to 15 characters can be set. The text, written in “Low level” and “High level” is displayed on monitoring page for this input. These fields accept up to 15 characters. 7.2.3.3.
The values of Unit, Multiplier, and Offset are presented for information only. They are inherited from the original parameter and can’t be edited. Virtual items can be used for alarm notifications, in Functions, and for local relay activation. 7.2.3.5. Relay outputs For every relay, a description up to 15 characters can be set.
Page 19
7.2.4. Conditions This section is used for parameterization of the trigger and alert conditions for 1-Wire sensors, analog inputs, virtual items and digital inputs. 7.2.4.1. 1-Wire sensors, analog inputs and virtual items For every sensor two type of fields are presented – one is for setup of trigger conditions (“Min”, “Max”...
Page 20
Example: TCW220, TST100, and appropriate heater are used to control the room temperature. The wanted minimum temperature is 19°C. The initial temperature is 17°C. TST100 is assigned to the first position for 1-Wire sensors. For Relay1 local activation from Sensor1 is set.
Page 21
The “Max” value is set far enough from the wanted temperature to avoid trigger/alert conditions around it. For every sensor or analog input, there are 3 independent ways of alert when there is an alarm condition – e-mail, SNMP trap, and post (HTTP/HTTPS post of XML file). Each alarm notification method is activated by checkbox.
Page 22
These options can be used for additional debouncing. On the picture above low-to-high and high-to-low delays are set to 0.1 seconds. 7.2.5. System On this page, some general settings can be made. 7.2.5.1. WEB access In this section, WEB access authentication can be deactivated. By default, it is activated with admin/admin authentication details.
Page 23
12 hours. 7.3. Services 7.3.1. Modbus TCW220 supports Modbus TCP/IP over the Ethernet interface. By default Modbus is disabled. Standard port for this protocol is 502. The table with the registers addresses can be found in section 8.3. MODBUS TCP/IP.
Page 24
Actual MIB file can be downloaded from here. 7.3.2. Logger The TCW220 supports logger for all monitored parameters and status of relays. The logger works in three modes – Time, Alarm and Time&Alarm. The mode specifies what initiates a record in the logger’s memory.
Page 25
More about the logger can be found in the Data logger section. 7.3.3. HTTP post TCW220 can periodically upload a file to a dedicated server using HTTP or HTTPS Post. The HTTPS is over TLS 1.0, TLS 1.1 and TLS 1.2 with RSA as a key exchange/agreement and authentication.
Page 26
The user and password can be up to 31 characters long. 7.4.2. Backup/Restore The TCW220 supports backup and restore of all user setting. All settings are saved in XML backup file. This file can be used after this for restore on many devices. This is very useful for multiplying similar settings to a batch of controllers.
Page 27
product Name Access Description Syntax x.2.1.1.0 name read-only Device name DisplayString x.2.1.2.0 version read-only Firmware version DisplayString x.2.1.3.0 date read-only Release date DisplayString setup -> network Name Access Description Syntax x.2.2.1.1.0 deviceID read-only Device ID (default MAC address) MacAddress x.2.2.1.2.0 hostName read-only Hostname...
Page 28
x.2.2.2.1.5.2.3.0 S51HYSTInt read-write S51 hysteresis value x1000 in Integer format Integer32 x.2.2.2.1.5.3.1.0 S52MAXInt read-write S52 maximum value x1000 in Integer format Integer32 x.2.2.2.1.5.3.2.0 S52MINInt read-write S52 minimum value x1000 in Integer format Integer32 x.2.2.2.1.5.3.3.0 S52HYSTInt read-write S52 hysteresis value x1000 in Integer format Integer32 setup ->...
Page 31
monitorNcontrol -> sensors -> sensor2 Name Access Description Syntax x.2.3.1.2.1.0 s21Int read-only S21 value x1000 in Integer format Integer32 x.2.3.1.2.2.0 s22Int read-only S22 value x1000 in Integer format Integer32 x.2.3.1.2.3.0 s2ID read-only S2 ID value OCTET STRING (SIZE (16)) monitorNcontrol -> sensors -> sensor3 Name Access Description...
Page 32
8.2. HTTP API 8.2.1. HTTP Post TCW220 can execute HTTP/HTTPS Post to upload XML/JSON file to a dedicated server. This functionality is very useful if the controller is behind the router without public IP address or the user don’t have access to router configuration. The server should have a public IP address.
Page 33
See sections 8.2.4 XML file structure and 8.2.5 JSON file structure for details of files. HTTP Get can be sent at any time to TCW220 if it is on the same network or it has appropriate routing. If there isn’t direct access to the device, HTTP Get can be sent immediately after HTTP Post receiving from the same device.
Page 34
8.2.2.2. HTTP GET authentication If HTTP API authentication is enabled, basic access authentication is required to access the status.xml file. The format of the command is shown in the table below: XML/HTTP API authentication Format enabled http://device.ip.address/status.xml?a=uuuu:pppp disabled http://device.ip.address/status.xml Example: http://device.ip.address/status.xml?a=admin:admin&pper=120 will set post period on 120 sec in case the username=admin and pass=admin 8.2.3.
Page 35
delanl=xxxx Notification delay for analog inputs (xxxx is between 0 and 3600) deldig=xxxx Notification delay for digital inputs (xxxx is between 0 and 3600) dda1=xxxx Low to high delay for digital input 1 (xxxx is between 0 and 3600) ddd1=xxxx High to low delay for digital input 1 (xxxx is between 0 and 3600) dda2=xxxx...
8.3. MODBUS TCP/IP MODBUS TCP/IP protocol is originally published by Modicon in 1979. It is used to establish master- slave/client-server communication between intelligent devices. MODBUS TCP/IP is often used to connect a supervisory computer with remote units in supervisory control and data acquisition (SCADA) systems.
Page 45
01: 7 space holders & Discrete Input 100 (0000 0001) The 7 most significant bits are filled in with zeroes. 8.3.1.4. Read Holding Registers (FC=03) Request This command is requesting the content of holding registers 19800. 03 4D58 0002 03: The Function Code 3 (read Holding Registers) 4D58: The Data Address of the first register requested (4D58 hex = 19800) 0002: The total number of registers requested.
8.3.1.5. Exception codes All exceptions are signaled by adding 0x80 to the function code of the request, and following this byte by a single reason byte for example as follows: 01 Illegal function The function code received in the query is not an allowable action for the controller. 02 Illegal data address The data address received in the query is not an allowable address for the slave.
Page 47
03,06,16 18400 Sensor 1÷8, Part 1-2 dimension 64 bytes UTF-8 03,06,16 19200 Sensor 1÷8, Part 1-2 max 32-bit Float 03,06,16 19300 Sensor 1÷8, Part 1-2 min 32-bit Float 03,06,16 19400 Sensor 1÷8, Part 1-2 hysteresis 32-bit Float 03,06,16 19500 Sensor 1÷8, Part 1-2 multiplier 32-bit Float 03,06,16 19600 Sensor 1÷8, Part 1-2 offset...
1131907;15.10.2015,01:02:27;Time;18.250;;18.375;;18.125;;18.438;;18.188;;18.125;;18.313;;18.313;;11.352;0.066;0;1;0;1;1;;1;;1;;1;;1;;1;;1;;1;;1;0;0;1; 1131908;15.10.2015,01:02:27;Event;18.250;;18.375;;18.125;;18.438;;18.188;;18.125;;18.313;;18.313;;2.198;9.092;0;1;0;1;1;;1;;1;;1;;1;;1;;1;;1;;0;0;0;1; 8.5. Dynamic DNS With dynamic DNS can access TCW220 from the public Internet without investing in a broadband account that has a static IP address. TCW220 supports the following DNS services – DynDNS, No-IP, and DNS-O-Matric. TCW220_R4.15 – November 2022...
9. Factory default settings TCW220 can be restored to its original factory default settings in 3 different ways. 9.1. Factory default from the WEB interface If the button “Factory default” from Administration->Backup/Restore is pressed, all parameters return to factory default except Network settings.
If the equipment is used in a manner not specified by the manufacturer, the protection provided by the equipment may be impaired. In no event will Teracom Ltd. be responsible or liable for indirect or consequential damages resulting from the use or application of this equipment.
Page 51
Appendix A Fig.1 Fig.2 TCW220_R4.15 – November 2022 Page 51...
Need help?
Do you have a question about the TCW220 and is the answer not in the manual?
Questions and answers