Page 2
Ethernet I/O module TCW241 1. Introduction TCW241 is an Ethernet IO module, the right choice for factory automation and distributed process control. It has 4 digital inputs, 4 analog inputs and 4 relays with normally open and normally closed contacts.
3. Applications TCW241 is suitable for environmental monitoring and local control of an electrical and non-electrical parameter, industrial and building automation, data acquisition systems, general remote control, and monitoring. It works very well as a standalone device that can be controlled using a web browser or as a part of small and medium 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 60 VDC Accuracy: ±1% Sampling Rate: 500mS per channel (averaged value of 250 samples) Input Impedance: 1 mega-ohms (min.) • Relay outputs Type: Form C (N.O.
Appendix A, this provides ventilation and electrical isolation TCW241 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 – 1-Wire +VDD 6.2.1. Power supply connection TCW241 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.
6.2.3. Analog inputs connection Attention! Analog inputs are NOT galvanic isolated. Analog inputs of TCW241 can be used for monitoring of DC voltage up to 60VDC. They can be connected directly to batteries, solar panels, power supplies etc. Built-in functionality “Multiplier”, “Offset” and “Dimension” for every analog input gives a possibility to monitor sensors with analog outputs and see directly a measured parameter.
6.2.4. Sensor connection Up to eight 1-Wire sensors can be connected to TCW241. The device supports following sensors - temperature, temperature/humidity, CO2, DC current, AC current, 4/20mA, galvanic isolated analog voltage, barometric pressure etc. Connected sensors are automatically detected and appropriate dimension is assigned.
Although functionality has been achieved on longer distance, we cannot guarantee error-free operation over mentioned wiring length. guarantee proper operation only with Teracom 1-Wire sensors. 6.2.5. Relay connection The relay contacts are internally connected directly to the terminal connectors. For all relays normally open, normally closed and common contacts are available.
6.2.6. Network connection The Ethernet port of TCW241 should be connected to 10/100 Base-T Ethernet hub, switch or router. For configuration, TCW241 may be connected directly to the Ethernet port on a computer. The device support and it is not necessary to use “crossover” cable, standard “straight- Auto-MDIX through”...
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. TCW241_R4.17 – October 2022 Page 11...
The controller supports a few active session. 7.1. Monitoring page Monitoring page displays the current state of TCW241. The page has 4 sections – “Sensors”, “Digital inputs”, “Analog inputs” and “Relays”. All they can be added/removed from monitoring page independently by appropriate setup - see “Setup-System- Display”...
Page 13
If all sensors are locked, removing one “in the middle” will not change the positions of other sensors after reset. This option is very useful when TCW241 is used us a part of monitoring and control system managed either by SNMP or HTTP API commands.
Default descriptions can be changed on “Setup->Input/Output” page. 7.1.3. Data - analog inputs section Analog inputs can be used for monitoring of analog sensors with 0-60 voltage outputs. All analog inputs are not galvanic isolated. For every analog input 3 variables – “Unit”, “Multiplier” and “Offset” can be set in section “Setup- Input/Output”.
The “Hostname” is up to 15 characters. It is shown in search results of TCW discoverer. It is recommended to use public DNS server (8.8.8.8, 8.8.4.4 etc.) rather than default gateway. 7.2.2. SMTP This page is used to enter valid SMTP settings for email alerts and recipients’ addresses. 7.2.2.1.
7.2.3. Input/Output 7.2.3.1. 1-Wire sensors For every 1-Wire sensor, a description up to 15 characters can be set. For all sensors “Offset” field is enabled. Number from this field is used for simple correction of displayed value. For some specific sensor, like TSA200, TSV200 etc., fields “Unit” and “Multiplier” are also available.
Example: For humidity sensor HIH-4000-003 following parameter (coming from datasheet) should be set for fine work: Unit - %RH Offset - 0.826 Multiplier - 31.74, the value is of slope parameter (1/0.0315); inverted If the output voltage of this sensor is 3.198V on the monitoring page will be shown 75.28% RH: 75.28 = (3.198 –...
Page 19
• “Virtual input z” - the relay is activated from the value from specified virtual item (cloned analog input or 1-Wire sensor) and rules for ranges specified in “Setup->Alarm conditions”; z is number from 1 to 4; • “Digital input z” - the relay follows the state of specified digital input; z is number from 1 to 2;...
Page 20
Example: TCW241, 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 a checkbox.
Page 22
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. General In this section, some general parameter for identification of device can be set. 7.2.5.2. WEB access In this section, WEB access authentication can be deactivated.
Page 23
12 hours. 7.3. Services 7.3.1. MODBUS TCW241 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.3. HTTP post TCW241 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 25
7.3.4. Schedule TCW241 supports four schedules. In every schedule, up to four different tasks can be set. The schedules are useful for creating tasks that vary with calendar dates. It is possible to combine two relays in control of one device - one relay follows monitored parameter and other follows the schedule.
The username and password can be up to 31 characters long. 7.4.2. Backup/Restore The TCW241 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
Attention! Don’t turn off the power supply during the update. Turning off the power supply will damage the device. 7.5. Logout The TCW241 support multisession, but the good practice is to log out after finishing the work. 8. Protocols and API 8.1. SNMP Simple Network Management Protocol (SNMP) is a standard internet protocol for managing devices on IP networks.
Page 28
setup -> io -> sensorsSetup -> sensor2setup Name Access Description Syntax x.3.2.2.1.2.1.0 s2description read-write Sensor2 description DisplayString x.3.2.2.1.2.2.1.0 s21MAXInt read-write s21 maximum value x1000 in Integer format Integer32 x.3.2.2.1.2.2.2.0 S21MINInt read-write S21 minimum value x1000 in Integer format Integer32 x.3.2.2.1.2.2.3.0 S21HYSTInt read-write S21 hysteresis value x1000 in Integer format...
Page 29
setup -> io -> sensorsSetup -> sensor7setup Name Access Description Syntax x.3.2.2.1.7.1.0 S7description read-write Sensor 7 description DisplayString x.3.2.2.1.7.2.1.0 S71MAXInt read-write S71 maximum value x1000 in Integer format Integer32 x.3.2.2.1.7.2.2.0 S71MINInt read-write S71 minimum value x1000 in Integer format Integer32 x.3.2.2.1.7.2.3.0 S71HYSTInt read-write...
Page 34
monitorNcontrol -> sensors -> sensor7 Name Access Description Syntax x.3.3.1.7.1.0 s71Int read-only S71 value x1000 in Integer format Integer32 x.3.3.1.7.2.0 s72Int read-only S72 value x1000 in Integer format Integer32 OCTET STRING (SIZE x.3.3.1.7.3.0 s7ID read-only S7 ID value (16)) monitorNcontrol -> sensors -> sensor8 Name Access Description...
Page 35
monitorNcontrol Name Access Description Syntax INTEGER { unsaved(0), x.3.3.5.0 configurationSaved read-write Configuration save status SAVED/UNSAVED saved(1) } INTEGER { cancel(0), x.3.3.6.0 restartDevice read-write Restart Device restart(1) } INTEGER { celcius(0), x.3.3.7.0 temperatureUnit read-only Unit of the all temperature values fahrenheit(1) } INTEGER { noErr(0), x.3.3.8.0 hardwareErr...
Page 36
8.2. HTTP API 8.2.1. HTTP Post TCW241 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 37
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 TCW241 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 38
rtg=8 - will toggle relay 4 state rpl=n Pulse relay n (n is 1,2,4 or 8) rpl=1 – will pulse relay 1 rpl=2 – will pulse relay 2 rpl=4 – will pulse relay 3 rpl=8 – will pulse relay 4 vnf=10.0 Set Min of analog input to 10.0 (f is 1,2,3 or 4 for the respective input)
Page 39
purl=212.25.45.120:30181/xampp/test/posttest.php pper=x HTTP Post period in seconds (x is between 10 and 14400) dk=xxx HTTP Post key – xxx is up to 17 characters save Save all previous changes (except relays’ one) in the FLASH memory. As every save reflects the FLASH cycles (endurance), this command should be used very carefully.
8.3. MODBUS TCP/IP Modbus TCP/IPprotocol is a serial communications protocol 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 a remote terminal unit (RTU) in supervisory control and data acquisition (SCADA) systems.
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.
The data address received in the query is not an allowable address for the slave. More specifically, the combination of the reference number and the transfer length is invalid. For a controller with 100 registers, a request with offset 96 and length 4 would succeed, a request with offset 96 and length 5 will generate exception 02.
Page 52
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...
9. Factory default settings TCW241 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 55
Appendix A Fig.1 Fig.2 TCW241_R4.17 – October 2022 Page 55...
Need help?
Do you have a question about the TCW241 and is the answer not in the manual?
Questions and answers