1. Short description TCG140-4 is a universal I/O module with 4G LTE Cat.1 connectivity. It also supports older technologies, such as 3G and 2G, ensuring backward compatibility with mobile networks. The TCG140-4 includes two digital inputs, four analog inputs, digital interfaces for external sensors, and four relays.
Antenna connector: SMA-F Standards: LTE-FDD, WCDMA, EDGE and GPRS TCG140-4E (h2.xx) bands: 4G LTE: B1/B3/B5/B7/B8/B20 B3/B8 TCG140-4G (h2.xx) bands: 4G LTE: B1/B2/B3/B4/B5/B7/B8/B12/B13/B18/B19/B20/B25/B26/B28/ B66/B34/B38/B39/B40/B41 B1/B2/B4/B5/B6/B8/B19 B2/B3/B5/B8 TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 3...
Page 4
Endurance: 100 000 cycles (any save command or full scroll (70000 records) of the logger) • Lithium battery Type: CR1220 Caution! Risk of explosion if the battery is replaced by an incorrect type. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 4...
5. Installation The TCG140-4 must be installed by qualified personnel to ensure proper operation and safety. The installation process involves the following steps: mounting the device, connecting the antenna, wiring the inputs and outputs, supplying power, and completing the configuration via a web browser.
Ensure the equipment is easily accessible for disconnecting from the power supply during use. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 6...
However, it is not suitable for long cable runs or environments with high electrical noise. The TCG140-4 supports connecting up to a maximum of eight sensors, whether they are 1-Wire or MODBUS RTU. All Teracom 1-Wire sensors are compatible with this device. Once connected, sensors are automatically detected, and the corresponding measurement dimension is assigned.
To maintain signal integrity, it is essential to use 120-ohm line terminators at both ends of the RS- 485 bus. The TCG140-4 includes one terminator and should be installed at one end of the line, leaving the other end for the user to terminate.
Module initialization – during the module initialization process, the SIG (red) and STA (yellow) indicators first turn on for one second immediately after power-on. Following this, they turn off for another secon. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 9...
Page 10
Error message – if an error occurs after initialization, the SIG indicator will remain solid off, and the STA indicator will flash to indicate the type of error. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 10...
Page 11
7. Initial setup via USB The initial setup of TCG140-4 is performed using a computer with Windows 10 or a newer version of Microsoft Windows. After powering up the module, connect it to the computer using a USB cable. Once connected, the operating system will automatically begin installing the necessary drivers for communication with the device.
There are two sensor sub-sections on the page: one for 1-Wire sensors and another for MODBUS RTU sensors. The TCG140-4 supports up to eight sensors, which can be connected to both interfaces in a random ratio. This ratio is set in the “Sensors Ratio Setup” section on the Setup -> Sensors page. By default, the number of MODBUS RTU sensors is set to 4.
Page 13
For relays activated locally, a text description of the controlling parameter is shown instead of control buttons. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 13...
Page 14
This section allows you to configure the ratio between 1-Wire and MODBUS RTU sensors. The default ratio is 4:4, enabling equal allocation for both types of sensors TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 14...
Page 15
(e.g., one “in the middle”) will not affect the positions of the remaining sensors after a reset. This feature is particularly useful when the TCG140-4 is integrated into a monitoring and control system managed through HTTP/HTTPS API commands.
The TCG140-4 supports MODBUS RTU sensors with a response time-out range of 10 to 500ms. By default, the response time-out for a new sensor is 100ms. It is recommended to use the shortest response time supported by the sensor’s manufacturer to optimize performance. The total system response time-out is the sum of the selected response time-out values for all configured sensors.
Page 17
SV[Un] = RV * MU + OF Where: SV – scaled (displayed) value; Un – unit; RV – raw value from the sensor; MU – multiplier; OF – offset. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 17...
SV[Un] = RV * MU + OF Where: SV – scaled (displayed) value; Un – unit; RV – raw value from the sensor; MU – multiplier; OF – offset. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 18...
For each relay, a description of up to 15 characters can be set. These descriptions will appear on the monitoring page, in XML/JSON data, as well as in SMS and email alerts TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 19...
Page 20
- The value falls below (Max – Hys) after exceeding the "Max" threshold. • Hysteresis ("Hys"): This setting prevents frequent triggering due to minor fluctuations around the defined thresholds, ensuring stable operation. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 20...
Page 21
TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 21...
Page 22
Example – room temperature control: In this example, the TCG140-4 module, a TST100 sensor, and a heater are used to maintain a room temperature of at least 19°C. The initial room temperature is 17°C. Configuration: The TST100 sensor is assigned to the first position for 1-Wire sensors.
This section provides details about the module's status regarding the mobile network, including information such as the IMEI number and firmware version of the module. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 23...
Page 24
This feature can prevent the device from permanently losing its network connection. When enabled, the device will automatically restart the network connection once per day. By default, this feature is disabled. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 24...
• Period: 12 hours The functionality of the settings and the NTP service can be checked using tools in the NTP test section TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 25...
Page 26
A button is available to test the server settings, providing feedback on the results. In this test, the sender and recipient email addresses are the same. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 26...
Page 27
For secure communication with mail servers, the Transport Layer Security (TLS) protocol is employed. The TCG140-4 supports TLS versions 1.0, 1.1, and 1.2, using RSA for key exchange, agreement, and authentication. STARTTLS is not supported. 7.3.1.2. Alarm destination You can configure up to five email recipients, each of whom can be activated independently using a checkbox.
Page 28
If the device is powered on at 09:12, the first record is created immediately. The subsequent records will be at 09:15, 09:30, 09:45, 10:00, and so on. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 28...
Page 29
HTTP/HTTPS requests (POST method). These files contain the current status of all monitored parameters along with additional system information. The format of the file (XML or JSON) can be selected from a drop-down menu. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 29...
Page 30
HTTP/HTTPS POST. An HTTP user header can be configured for services requiring additional header information. By default, this parameter is disabled. Note that this feature is available only for TCG140-4 with firmware version h2.xx or higher.
Page 31
Based on these settings, the specific topics for values and statuses will be as follows: • TRC/din/PanicButton/value • TRC/din/PanicButton/state • TRC/din/MainButton/value 7.3.4.5. MQTT relays topic In this section, the subscription parameters for each built-in relay are configured. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 31...
Page 32
7.5. Administration 7.5.1. Backup/Restore TCG140-4 allows for the backup and restoration of all user settings. These settings are saved in an XML backup file, which can be utilized for restoring configurations on multiple devices. This feature is particularly useful for applying similar settings across a batch of modules.
Page 33
Command: set sms user u1:+359885887766 Answer: u1:+359885887766,u2,u3,u4 Command: set sms user u2:+359885999888 Answer: u1:+359885887766, u2:+359885999888,u3,u4 Command: set sms user u1: Answer: u1, u2:+359885999888,u3,u4 TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 33...
Page 34
<user> can be one of: e1, e2, e3, e4 or e5 Example Command: display email e1 Answer: e1:mail1@teracomsystems.com Command: display email e2 Answer: e2:mail2@teracomsystems.com TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 34...
Page 35
Rights: Master, Superusers, Users Syntax: set˽<pulse relay>=<state>˽[option] Where < pulse relay > is pl1, pl2, pl3 or pl4 <state> is on [option] –w TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 35...
Page 36
• POST period in hh:mm:ss – sets XML/JSON HTTP POST period in hh:mm:ss Rights: Master, Superusers Syntax: set˽pperh=<value> Where <value> is a number between 00:01:00 and 48:00:00 Example Command: set pper=00:05:00 Answer: post=off,period=00:05:00 TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 36...
Page 37
Master, Superusers Syntax: set˽csvper=<value> Where <value> is a number from 1,2,3,6,8,12 or 24 Example Command: set csvper=6 Answer: csvpost=on,csvmode=https,csvperiod=6h Command: set csvper=24 Answer: csvpost=on,csvmode=https,csvperiod=24h TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 37...
Page 38
• MQTT data – sets MQTT data format Rights: Master, Superusers Syntax: set˽mdata=<format> Where <format> is “json” or “plain” Example Command: set mdata=plain Answer: mqtt=on,mdata=plain,period=00:05:00 TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 38...
Page 39
• Send test email – a message for sending a test email to the email users Rights: Master, Superusers Syntax: test˽email Example Command: test email Answer: Emails are sending! TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 39...
Page 40
• Set a sensor notification delay Rights: Master, Superusers Syntax: set˽delsen=xxxx where xxxx – notification delay in seconds (0-3600) Example: Command: set delsen=5 Answer: delsen=5 TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 40...
Page 41
SCADA systems, which are based on client-server architecture. The TCG140-4 operates in client mode for HTTP/HTTPS POST, ensuring seamless integration with any SCADA software using the HTTP/HTTPS protocol. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 41...
Both commands cannot be concatenated and should be placed on separate lines. Example1: set r1=on&r2=on TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 42...
Page 43
Step 3: The device immediately sends a new HTTP/HTTPS POST request with updated XML/JSON data, confirming the execution of the “set r1=on” command. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 43...
Page 44
(e.g., www.yourserverURL.com/POST.php) in a web browser. A web page displaying "The PHP script is working!" should appear if everything is functioning correctly. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 44...
HTTP/HTTPS POST with the specified <filename> (either dummy.xml, dummy.json, status.xml, or status.json). • Another valid combination of API commands. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 45...
• Parity – Even; 9.2.2. Teracom sensors update tool The TCG140-4 device supports a firmware update tool for sensors. This tool can be accessed via the following URL - http://device.ip.address/teracom485.htm. Important: Before making any changes to a MODBUS RTU sensor, ensure that the sensor is the only device connected to the RS-485 bus.
For more information about MQTT, visit www.mqtt.org. 10. Data Logger The TCG140-4 features a data logger that uses a circular buffer stored in FLASH memory. This design ensures that the memory continuously retains a complete log by overwriting the oldest data once the buffer is full.
The module will then restore its default settings. Factory default settings can also be restored from the SETUP -> System page by clicking the "Reset to default" button. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 48...
Ensure that there is sufficient space for attaching and removing cables after installation. Teracom does not guarantee the successful operation of the product if it is used under conditions that deviate from the product specifications.
Page 50
<unit>---</unit> <alarm>0</alarm> <min>---</min> <max>---</max> <hys>---</hys> </item1> <item2> <value>---</value> <unit>---</unit> <alarm>0</alarm> <min>---</min> <max>---</max> <hys>---</hys> </item2> </S2> <S3> <description>S3</description> <id>0000000000000000</id> <type>1W</type> <addr>1Wire</addr> <item1> <value>---</value> <unit>---</unit> TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 50...
Page 51
<min>-40.000</min> <max>85.000</max> <hys>8.500</hys> </item1> <item2> <value>34.847</value> <unit>%RH</unit> <alarm>0</alarm> <min>0.0</min> <max>100.000</max> <hys>10.000</hys> </item2> </S5> <S6> <description>S6</description> <id>0000000000000000</id> <type>MB</type> <addr>0</addr> <item1> <value>---</value> <unit>---</unit> <alarm>0</alarm> <min>---</min> TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 51...
Page 52
<item2> <value>---</value> <unit>---</unit> <alarm>0</alarm> <min>---</min> <max>---</max> <hys>---</hys> </item2> </S8> </S> <AI> <AI1> <description>Analog Input 1</description> <value>0.000</value> <unit>V</unit> <multiplier>1.000</multiplier> <offset>0.0000</offset> <alarm>0</alarm> <min>0.000</min> <max>10.000</max> <hys>1.000</hys> TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 52...
Page 53
<alarm>0</alarm> </DI2> </DI> <R> <R1> <description>Relay 1</description> <value>OFF</value> <valuebin>0</valuebin> <pulseWidth>0.1</pulseWidth> <control>0</control> </R1> <R2> <description>Relay 2</description> <value>OFF</value> <valuebin>0</valuebin> <pulseWidth>0.2</pulseWidth> <control>0</control> </R2> <R3> <description>Relay 3</description> TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 53...
Page 54
<Longitude>25.965967</Longitude> </NetworkInfo> </Monitor> Where: <value>--- </value> and <unit>--- </unit> means no 1-Wire sensor on this position; <alarm>1</alarm> means there is a trigger condition. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 54...
Page 55
"unit": "---", "alarm": "0", "min": "---", "max": "---", "hys": "---" "S3": { "description": "S3", "id": "0000000000000000", "type": "1W", "addr": "1Wire", "item1": { "value": "---", TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 55...
Page 56
"min": "0.000", "max": "100.000", "hys": "10.000" "S6": { "description": "S6", "id": "0000000000000000", "type": "MB", "addr": "0", "item1": { "value": "---", "unit": "---", "alarm": "0", TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 56...
Page 57
"hys": "---" "AI": { "AI1": { "description": "Analog Input 1", "value": "0.000", "unit": "V", "multiplier": "1.000", "offset": "0.0000", "alarm": "0", "min": "0.000", "max": "2.000", TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 57...
Page 58
"value": "OFF", "valuebin": "0", "pulseWidth": "0.1", "control": "0" "R2": { "description": "Relay 2", "value": "OFF", "valuebin": "0", "pulseWidth": "0.2", "control": "0" "R3": { TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 58...
Page 59
"NetworkInfo": { "Name": "A1 BG A1 BG", "SC": { "MCC": "284", "MNC": "01", "LAC": "28201", "CID": "46596", "SQ": "-71" “Latitude”: 43.835283, “Longitude” 25.965967 TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 59...
Page 60
(n is 1,2,3 or 4 for the respective analog input) ad1=AN1 – set analog input 1 description aun=xxx Set analog input n unit TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 60...
Page 61
Conditions sxym=b Activation (b=1)/deactivation (b=0) of Mail alarm notification for sensor x, part y (x is 1,2,3,4,5,6,7 or 8 for the respective sensor TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 61...
Page 62
HTTP POST alarm notification for analog input - activation (b=1) or deactivation (b=0) (n is 1,2,3 or 4 for the respective analog input) TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 62...
Page 63
Set temperature units – Celsius(x=0)/ Fahrenheit(x=1) pu=x Set pressure units – hPa(x=0), mbar(x=1) or mmhg(x=2) hn=xxx Set host name - xxx, max 15 symbols TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 63...
Page 64
MQTT analog input n topic name atd1=1, set analog input 1 topic name digtopic=xxx MQTT digital inputs topic name dtdn=xxx MQTT digital input n topic name TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 64...
Page 65
Multiply commands are sent concatenated with “&”. The commands are sent in the answer on XML/JSON or CSV HTTP POSTs. They are executed if “Process Answer” is enabled. TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 65...
Page 66
Appendix D Fig.1 Fig.2 TCG140-4 User manual | Revision R1.17, October 2024 | Applicable for FW V1.021 or later Page 66...
Need help?
Do you have a question about the TCG140-4 and is the answer not in the manual?
Questions and answers