Teracom TCG140 User Manual

Gprs remote io module

Advertisement

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TCG140 and is the answer not in the manual?

Questions and answers

Summary of Contents for Teracom TCG140

  • Page 2: Short Description

    1. Short description TCG140 is a GSM-GPRS remote IO controller. It has 2 digital inputs, 4 analog inputs, digital interfaces for external sensors and 4 relays. Two of analog inputs can be switched either in a current (0-20mA) or voltage modes. The relays can be activated either remotely (via SMS or HTTP API command) or locally - from the status of the monitored parameter.
  • Page 3: Specifications

    4. Specifications Physical characteristics Dimensions: 158 x 119 x 32 mm Weight: 470 g Mounting: wall and DIN rail Environmental limits Operating Temperature: -20 to 55°C Storage Temperature: -40 to 85°C Ambient Relative Humidity: 5 to 85% (non-condensing) Standards and Certifications Safety: EN 60950-1:2006+A11:2009+A1:2010+A12:2011+A2:2013, EN 62311:2008 EMC:...
  • Page 4: Installation

    5.1. Mounting TCG140 should be mounted in a clean and dry location on a not flammable surface. Ventilation is recommended for installations where ambient air temperature is expected to be high. Mount the device to a wall by using two plastic dowels 8x60mm (example Würth GmbH 0912 802 002) and two dowel screws 6x70mm (example Würth GmbH 0157 06 70).
  • Page 5 Connector 1 Power - central positive Connector 5 Pin1 – Digital In 1 Connector 2 Pin1 – GND(most left) Pin2 – Ground Pin2 – GND Pin3 – Digital In 2 Pin3 – 1-Wire data Pin4 – Analog In 1 Pin4 – 1-Wire GND Pin5 –...
  • Page 6 5.2.1. Power supply connection TCG140 is designed to be supplied by adapter SYS1308-2412-W2E or similar, intended for use in the conditions of overvoltage category II. The power supply equipment shall be resistant to short circuit and overload in a secondary circuit.
  • Page 7 - door contact switch, push button, PIR detector etc. The following picture illustrates how an alarm button can be connected to a digital input of TCG140. One side of the contact is connected to “Digital In” while the other side is connected to “GND” terminal.
  • Page 8: Analog Inputs Connection

    5.2.5. Analog inputs connection Attention! Analog inputs are NOT galvanic isolated. Analog inputs of TCG140 can be used for monitoring of DC voltage up to 10VDC. They can be connected directly to sensors and transmitters with such analog output. The sample rate of analog inputs is The “Multiplier”, “Offset”...
  • Page 9: Sensors Connection

    The maximum cable length for an analog input should be up to 30 meters. 5.2.6. Sensors connection Up to 8 1-Wire sensors can be connected to TCG140 controller. The device supports all Teracom 1-Wire sensors. 1-Wire is a registered trademark of Maxim Integrated Products, Inc. It is designed to connect several sensors over a short wiring.
  • Page 10: Relays Connection

    Although functionality has been achieved in а longer distance, we cannot guarantee error-free operation over mentioned wiring length. We guarantee proper operation only with Teracom 1-Wire sensors. 5.2.7. Relays connection The relay contacts are internally connected directly to the terminal connectors. For all relays normally open, normally closed and common contacts are available.
  • Page 11 Connected to GSM network – after successful connection to a mobile network, STA shows the type of connection, while SIG shows the signal strength. STA flashes ones for 200mS in period of 2S – there is GSM connection only; STA flashes twice for 200mS in a period of 2S – there is GSM and GPRS connection. In the same time SIG has 5 states: SIG flashes 1 time in period of 2S –...
  • Page 12 7. Initial setup via USB The initial setup of TCG140 is done with a computer running Windows 7 or newer Microsoft Windows operating system. After power-up, the controller should be connected to the computer with USB cable. Once the USB cable is connected, the operating system automatically starts to install the drivers for the communication with the device.
  • Page 13: Monitoring Page

    If all sensors are locked, removing one “in the middle” will not change the positions of following sensors after reset. This option is very useful when TCG140 is used as a part of monitoring and control system managed by HTTP API.
  • Page 14 7.1.2. Digital inputs section Digital inputs can be used for monitoring the state of discrete devices – motion sensor, door contact, relay contact, alarm output etc. Digital inputs are sampled every 10mS. The change of input status is considered valid if the same value is read in 3 consecutive samples (30mS).
  • Page 15: Smtp Setup

    Ask your ISP for details. The only supported method for encrypted connection from most of the public email servers is TLS. TCG140 supports TLS 1.0, TLS 1.1 and TLS 1.2 with RSA_WITH_AES_128_GCM_SHA256 and RSA_WITH_AES_128_CBC_SHA cipher suites. This ensures successful operation with almost all public servers.
  • Page 16 can provoke mismatches with the port number. The right settings for Gmail for the field “Mail server port” is 465. Sender e-mail, username, and password are standard authentication details. For the most SMTP servers, sender's e-mail and username are the same. There is a button for server settings test with a feedback.
  • Page 17: Digital Inputs

    For every sensor, a description, up to 15 symbols can be set. These descriptions will appear in the monitoring page, conditions page, XML/JSON data, SMS and e-mail alerts. 7.2.3.2. Digital inputs For every digital input, a description, up to 15 symbols and states up to 15 symbols can be set. These descriptions will appear in the monitoring page, conditions page, XML/JSON data, SMS and e-mail alerts.
  • Page 18 For every relay, a description, up to 15 characters can be set. These descriptions will appear in the monitoring page, XML/JSON data, SMS and e-mail alerts. The pulse duration can be different for every relay. The resolution is 0.1 second, the maximum pulse value is 3600 seconds.
  • Page 19 7.2.4. Conditions This section is used for parameterization of a trigger and alert conditions for sensors, analog, and digital inputs. 7.2.4.1. Sensors and analog inputs For every sensor two type of fields are presented – one for the trigger conditions (“Min”, “Max”...
  • Page 20 Example: TCG140, 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 on 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 – email, SMS, and post (HTTP post with XML/JSON file). Each alarm notification method is activated by a checkbox.
  • Page 22: System Status

    In the time when the input is in an alarm state, on „Monitoring page“, the appropriate input will be colored in red. There are two delays - low-to-high and high-to-low for digital input change. These delays are added to the standard delay of 30mS. They have 0.1-second resolution and by default are zero.
  • Page 23 The section for some general settings. The temperature and pressure units can be changed with preferable ones. Writing mode change the alignment in the WEB interface and SMS. Hostname, System name, System location, and System contact are sent in XML/JSON files and can be used for flexible identification of the device.
  • Page 24 By default, TCW210-TH works with the standard for MODBUS RTU settings – 19200, E, 1. 7.3.1.2. MODBUS RTU sensors TCG140 supports up to eight sensors. They can be connected to both interfaces in a random ratio. By default, the number of MODBUS RTU sensors are 8.
  • Page 25 7.3.2. Logger This section is for logger setup. The logger works in three modes – Time, Alarm and Time&Alarm. The mode specifies what initiates a record in the logger’s memory. In Time mode, records are made periodically on “Log interval” time. In Alarm mode, records are made on every alarm condition. In Time&Alarm mode, a mix of both conditions for records is used.
  • Page 26 7.4.2. Backup/Restore TCG140 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 8. Setup via SMS TCG140 supports SMS commands for parameters change and status reports, including firmware update over the air. The commands will be executed if they come from previous set 5 phone number. For every command needs different rights.
  • Page 28 Syntax: display˽email˽<user> Where <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 Set call users numbers - this message is used to add/delete call users Rights: Master Syntax:...
  • Page 29 Set a relay - this message is used to switch on/off the selected relay output Rights: Master, Users Syntax: set˽<relay>=<state>˽[option] Where <relay> is r1, r2, r3 or r4 <state> is on, off [option] -w Example Command: set r1=on Answer: r1=on,r2=off,r3=off,r4=off Command: set r1=off Answer:...
  • Page 30 Post on – sets HTTP Post on Rights: Master Syntax: set˽post=on Example Command: set post=on Answer: post=on,period=120,url= www.teracomsystems.com:8801/posttest.php Post off – sets HTTP Post off Rights: Master Syntax: set post=off Example Command: set post=off Answer: post=off,period=120,url= www.teracomsystems.com:8801/posttest.php Set a time server Rights: Master Syntax:...
  • Page 31 SCADA software running HTTP protocol. 9.1. HTTP Post The HTTP Post service is used when TCG140 utilizes a data card that has no fixed public address. In this case, the controller has an internal IP address from the network of the mobile operator and can’t be accessed via the Internet.
  • Page 32 This indicates that there are no pending commands and the session can be closed; On next HTTP Post period, TCG140 sends a new HTTP POST request (5) to the server; The server answers with “set FIN” (6)– there is no pending commands and the session can be closed.
  • Page 33 A typical monitoring application is shown on the picture below: HTTP Post service can be test following the steps below: Save following code like post.php: <?php define("FILENAME", 'status.xml'); define("FOLDER", ''); define("SEPARATOR", ''); define("STR_SUCCESS", 'set FIN'); define("STR_ERROR", 'error'); if($_SERVER['REQUEST_METHOD'] == 'POST'){ $datePrefix = date('YmdHis', strtotime('now'));...
  • Page 34: Data Logger

    20171020103318_status.xml. 9.1.1. XML file structure Please see the Appendix A. 9.1.2. JSON file structure Please see the Appendix B. 9.2. HTTP commands TCG140 supports following commands, sent with HTTP Post: Command Description set r1=on Turn Relay 1 ON set r2=on...
  • Page 35: Firmware Update

    Master will receive confirmation SMS message. The update procedure takes around 2 minutes. Once the firmware update is complete (about 5 minutes), TCG140 will restart. Attention! Don’t turn off the power supply during the update. Turning off the power supply will damage the device.
  • Page 36: Factory Default Settings

    12. Factory default settings TCG140 can be restored to its original factory default settings by following the steps: Turn off the power supply; Press and hold the RESET button then turn on the power supply; STA and SIG LEDs will turn ON;...
  • Page 37 Appendix A The XML file (status.xml) structure: <Monitor> <DeviceInfo> <DeviceName>TCG140</DeviceName> <HostName> TCG140</HostName> <ID>862462032599374</ID> <FwVer>TCG140-v1.000</FwVer> <MnfInfo>www.teracomsystems.com</MnfInfo> <SysContact>info@teracomsystems.com</SysContact> <SysName>Name</SysName> <SysLocation>Location</SysLocation> </DeviceInfo> <S> <S1> <description>S1:TST1xx</description> <id>28C4C109030000C5</id> <item1> <value>12.7</value> <unit>°C</unit> <alarm>0</alarm> <min>-40.0</min> <max >85.0</max> <hyst>8.5</hyst> </item1> <item2> <value>---</value> <unit>---</unit> <alarm>0</alarm> <min>---</min> <max>---</ max> <hyst>---</hyst>...
  • Page 38 <value>---</value> <unit>---</unit> <alarm>0</alarm> <min>---</min> <max>---</max> <hyst>---</hyst> </item2> </S3> <S4> <description>S4:TSH2xx</description> <id>01D01FB71700FFF8</id> <item1> <value>12.9</value> <unit>°C</unit> <alarm>0</alarm> <min>-40.0</min> <max>85.0</max> <hyst>8.5</hyst> </item1> <item2> <value>57.2</value> <unit>%RH</unit> <alarm>0</alarm> <min>0.0</min> <max>100.0</max> <hyst>1.0</hyst> </item2> </S4> <S5> <description>S5</description> <id>0000000000000000</id> <item1> <value>---</value> <unit>---</unit> <alarm>0</alarm> <min>---</min> <max>---</max> <hyst>---</hyst> </item1> <item2> <value>---</value>...
  • Page 39 <S7> <description>S7</description> <id>0000000000000000</id> <item1> <value>---</value> <unit>---</unit> <alarm>0</alarm> <min>---</min> <max>---</max> <hyst>---</hyst> </item1> <item2> <value>---</value> <unit>---</unit> <alarm>0</alarm> <min>---</min> <max>---</max> <hyst>---</hyst> </item2> </S7> <S8> <description>S8</description> <id>0000000000000000</id> <item1> <value>---</value> <unit>---</unit> <alarm>0</alarm> <min>---</min> <max>---</max> <hyst>---</hyst> </item1> <item2> <value>---</value> <unit>---</unit> <alarm>0</alarm> <min>---</min> <max>---</max> <hyst>---</hyst> </item2> </S8> </S>...
  • Page 40 <multiplier>1.000</multiplier> <offset>0.000</offset> <alarm>0</alarm> <min>0.000</min> <max>10.000</max> <hyst>0.100</hyst> </AI3> <AI4> <description>Analog Input 4</description> <value>0.000</value> <unit>V</unit> <multiplier>1.000</multiplier> <offset>0.000</offset> <alarm>0</alarm> <min>0.000</min> <max>10.000</max> <hyst>0.100</hyst> </AI4> </AI> <DI> <DI1> <description>Digital Input 1</description> <value>OPEN</value> <valuebin>1</valuebin> <alarmState>CLOSED</alarmState> <alarm>0</alarm> </DI1> <DI2> <description>Digital Input 2</description> <value>OPEN</value> <valuebin>1</valuebin> <alarmState>CLOSED</alarmState> <alarm>0</alarm> </DI2> </DI>...
  • Page 41 </HTTPPush> <signalpercent>80</signalpercent> <hwerr/> <Alarmed>1</Alarmed> <Scannig/> <Time> <Date>06.03.2018</Date> <Time>09:05:14</Time> </Time> </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_R1.1 – May 2018 Page 41...
  • Page 42 Appendix B The JSON file (status.json)structure: "Monitor": { "DeviceInfo": { "DeviceName": "TCG140", "HostName": " TCG140", "ID": "862462032599374", "FwVer": " TCG140-v1.000", "MnfInfo": “www.teracomsystems.com”, "SysContact": "info@teracomsystems.com", "SysName": "Name", "SysLocation": "Location" "S": { "S1": { "description": "S1:TST1xx", "id": "28C4C109030000C5", "item1": { "value": "14.9", "unit": "В°C",...
  • Page 43 "item2": { "value": "---", "unit": "---", "alarm": "0", "min": "---", "max": "---", "hyst": "---" "S4": { "description": "S4:TSH2xx", "id": "01D01FB71700FFF8", "item1": { "value": "15.9", "unit": "°C", "alarm": "0", "min": "-40.0", "max": "85.0", "hyst": "8.5" "item2": { "value": "58.8", "unit": "%RH", "alarm": "0", "min": "0.0", "max": "100.0",...
  • Page 44 "hyst": "---" "S7": { "description": "S7", "id": "0000000000000000", "item1": { "value": "---", "unit": "---", "alarm": "0", "min": "---", "max": "---", "hyst": "---" "item2": { "value": "---", "unit": "---", "alarm": "0", "min": "---", "max": "---", "hyst": "---" "S8": { "description": "S8", "id": "0000000000000000", "item1": { "value": "---",...
  • Page 45 "AI3": { "description": "Analog Input 3", "value": "0.000", "unit": "V", "multiplier": "1.000", "offset": "0.000", "alarm": "1", "min": "0.000", "max": "10.000", "hyst": "1.000" "AI4": { "description": "Analog Input 4", "value": "0.000", "unit": "V", "multiplier": "1.000", "offset": "0.000", "alarm": "1", "min": "0.000", "max": "10.000", "hyst": "1.000"...
  • Page 46 "HTTPPush": { "Key": "", "PushPeriod": "300" “signalpercent”: "80", "hwerr": "", "Alarmed": "1", "Scannig": "", "Time": { "Date": "06.03.2018", "Time": "09:05:14" TCG140_R1.1 – May 2018 Page 46...
  • Page 47 Appendix C Fig.1 Fig.2 TCG140_R1.1 – May 2018 Page 47...

Table of Contents