Emote T Erminal U Nit: User's Guide Technical Specifications & Cabling
Emote T Erminal U Nit: User's Guide Technical Specifications & Cabling
Emote T Erminal U Nit: User's Guide Technical Specifications & Cabling
R emote
T erminal
U nit
User’s Guide
Technical specifications & cabling
Disclaimer
Every effort has been made to ensure the accuracy of the information in this guide. However, Techno Trade S.A.
assumes no responsibility for the accuracy of the information. Product information is subject to change without
notice.
Copyright
© 2004-2006 by Techno Trade SA
Edition: February 7, 2006
Version: 1.06 2
TABLE OF CONTENTS
PRESENTATION ................................................................................................................ 7
HARDWARE..................................................................................................................... 13
5. INSTALLATION OF TWINSOFT............................................................................26
5.1. System requirements............................................................................................ 26
5.2. Installation of the CD-ROM ................................................................................... 27
5.3. Programs of ‘TWinSoft Suite’................................................................................. 29
6. STARTING TWINSOFT......................................................................................30
6.1. Wizard................................................................................................................. 31
6.2. Communicating with TBox MS ............................................................................... 32
6.3. PC Communication Set up..................................................................................... 32
6.4. Testing communication......................................................................................... 34
6.5. Global reset of TBox MS........................................................................................ 35
6.6. LED « RUN »........................................................................................................ 35
6.7. Saving and Sending a Program.............................................................................. 36
6.7.1. Saving a document ..................................................................................................36
6.7.2. Compiling a document..............................................................................................36
6.7.3. Sending a document ................................................................................................37
Version: 1.06 3
TWINSOFT - PROGRAMMING ......................................................................................... 39
7. INTRODUCTION .............................................................................................. 40
8. RTU PROPERTIES ........................................................................................... 41
8.1. General properties ................................................................................................ 42
8.2. Drivers................................................................................................................. 43
8.3. Security ............................................................................................................... 43
8.4. Info properties ..................................................................................................... 44
8.5. Advanced ............................................................................................................. 44
8.5.1. Startup ................................................................................................................... 44
8.5.2. Alarms.................................................................................................................... 45
8.5.3. Sampling Tables ...................................................................................................... 47
8.5.4. Temperature ........................................................................................................... 48
8.5.5. Remote Tags........................................................................................................... 48
8.5.6. TCP/IP.................................................................................................................... 48
8.5.7. Environment variables.............................................................................................. 50
9. RESOURCES ................................................................................................... 51
9.1. The CPU-16 card .................................................................................................. 51
9.1.1. Communication ports of the CPU .............................................................................. 52
9.2. Adding Cards........................................................................................................ 53
9.2.1. Adding an I/O card .................................................................................................. 55
9.2.2. Adding a ‘Modem’ Card ............................................................................................ 56
9.2.3. Adding a ‘GSM / GPRS’ Card ..................................................................................... 57
9.3. Communication Variables ...................................................................................... 62
9.3.1. Digital Communication Variable................................................................................. 62
9.3.2. Analog Communication Variable................................................................................ 63
9.4. System variables .................................................................................................. 64
9.4.1. Digital System Variables ........................................................................................... 64
9.4.2. Analog System Variables .......................................................................................... 66
9.5. Timers & Counters................................................................................................ 67
10. TAGS ....................................................................................................... 68
10.1. Physical I/O ...................................................................................................... 69
10.2. Internal Variables (Registers)............................................................................. 70
10.2.1. Digital Internal Variable............................................................................................ 70
10.2.2. Analog Internal Variable........................................................................................... 72
10.3. ModBus address................................................................................................ 74
10.3.1. ModBus address of System Variables......................................................................... 74
10.4. Tags - Presentation / Write................................................................................ 75
11. IP PARAMETERS ........................................................................................ 76
11.1. ISP configuration .............................................................................................. 77
11.2. FTP Host .......................................................................................................... 79
11.3. SMTP Server..................................................................................................... 80
Version: 1.06 4
11.3.1. About Redundancy...................................................................................................81
11.4. NTP Server....................................................................................................... 82
11.4.1. Time accuracy .........................................................................................................82
11.5. TCP/IP Debugging ............................................................................................ 83
12. ALARMS ...................................................................................................86
12.1. Introduction ..................................................................................................... 86
12.2. Digital Alarm Condition...................................................................................... 87
12.3. Analog Alarm Condition..................................................................................... 89
12.4. Recipients ........................................................................................................ 91
12.5. Group of Recipients .......................................................................................... 93
12.6. Messages ......................................................................................................... 94
12.7. Alarms table ..................................................................................................... 95
12.7.1. Columns description .................................................................................................96
13. DATALOGGING...........................................................................................97
13.1. Introduction ..................................................................................................... 97
13.2. The chronologies .............................................................................................. 99
13.2.1. Digital chronologies..................................................................................................99
13.2.2. Analog chronologies .................................................................................................99
13.3. The sampling tables.........................................................................................100
14. REMOTE TAGS .........................................................................................101
14.1. Introduction ....................................................................................................101
14.2. Creating a Remote Device ................................................................................102
14.3. Creating Remote Tag .......................................................................................103
14.4. Remote Tags through modem ..........................................................................105
14.5. Timing configuration of Remote Tags................................................................105
15. PERIODIC EVENTS ....................................................................................106
16. HIGH SPEED TAGS ...................................................................................108
16.1. Processor time for executing High Speed Tag ....................................................109
17. ACCESS SECURITY ....................................................................................110
17.1. RTU configuration............................................................................................111
17.1.1. RTU Properties ......................................................................................................111
17.1.2. Modem and Serial Port Properties............................................................................111
17.2. Password utility ...............................................................................................112
17.3. Login/Logout ...................................................................................................113
17.3.1. With TWinSoft .......................................................................................................113
17.3.2. With Internet Explorer............................................................................................114
17.4. Deactivating protection ....................................................................................115
Version: 1.06 5
TECHNICAL SPECIFICATIONS - CABLING .................................................................... 117
Version: 1.06 6
PRESENTATION
Version: 1.06 7
The unique ‘all in one’ TBOX MS includes the best of 3 Worlds:
Telemetry
+
Internet
+
Automation
Version: 1.06 8
Overview of TBOX MS possibilities
Consulting Programming:
process through locally or
HTML pages remotely
Sending of
Alarms
Communication
to a remote site
Retrieving data
locally
Version: 1.06 9
1. How to use this manual?
Then it brings you to the programming of TBOX MS using TWinSoft. All features are
explained using plenty of snapshots for an easy understanding ☺
Starting TWinSoft: chapter 6
Properties of TBOX MS: chapter 8
Adding a card: chapter 9
Tags: chapter 10
IP configuration: chapter 11
Alarms: chapter 12
Datalogging: chapter 13
Remote Tags: chapter 14
Periodic events: chapter 15
All technical specifications of the cards and the different cablings are explained at the end
of this manual.
Another important feature, which is not presented into this manual, concerns the
development of HTML pages, to use TBOX MS as web server.
This matter is explained in details in another manual: WEBFORM STUDIO – Getting
Started
Another software part of the TWinSoft Suite is Report Studio, for creating e-mail report or
files to send. It is explained in the ‘On line’ help of Report Studio.
Version: 1.06 10
2. The Hardware Concept
TBOX MS is a Modular System.
5 slots
10 slots
15 slots
20 slots
Version: 1.06 11
2.2. The Cards
Version: 1.06 12
HARDWARE
Version: 1.06 13
3. Installation of the Rack
Version: 1.06 14
3.2. Installation of the Rack in a 19’’ cabinet
The Rack 15 slots can be mounted directly in the 19’’ cabinet.
The height of the Rack is of 150 mm and adapted for a 4U cabinet (177.8 mm).
You have then enough room for cabling the Cards.
Version: 1.06 15
4. Insertion of Cards in the Rack
The Rack has a side UP and a side DOWN.
UP
RIGHT
LEFT
Each slot has a unique index number, starting at ‘0’ from the left side.
Version: 1.06 16
4.2. Placing the Power Supply Card
When using a power supply card, it is always placed at the first position in the Rack. It
is important for thermal issue.
The communication cards and/or the I/O cards are placed in any following slots.
Version: 1.06 17
4.3. Working without Power Supply Card
If a power supply card is not required, the one from the CPU can be used.
In this case the CPU is placed at the first position in the Rack
The communication ports and/or the I/O cards are placed in any following slot.
Version: 1.06 18
4.4. Hardware vs. Software Address of Cards
Later in this document, we will see how to use the software TWinSoft,
the tool for programming TBOX MS.
Version: 1.06 19
The corresponding TWinSoft configuration:
Version: 1.06 20
With the following set of Cards on a Rack 5:
Version: 1.06 21
4.5. Powering
Working with a Power supply, cabling of the Power supply:
Power supply of CPU: NO
connection when using a
Example: Power Supply Card
230 Vac Power Supply
(ref MS-PS230V)
Battery +
Ethernet : for communicating to
other Racks / devices
Battery -
Button: STOP – RUN - RESET
Main voltage present
Line
earth
RS 232 : for programming
Line
Version: 1.06 22
Working without Power supply, cabling of the CPU:
Example:
-CPU16 with Ethernet
(ref MS-CPU16E)
0V
Version: 1.06 23
Version: 1.06 24
TWINSOFT
-
GETTING STARTED
Version: 1.06 25
5. Installation of TWinSoft
• Parallel port: required in case of license with dongle for ‘parallel’ port.
• USB port: required in case of license with dongle for ‘USB’ port.
• Serial port: required for a local connection to TBOX MS and/or for an external
modem.
• Ethernet port: 10/100 Mbps. Required for a connection to TBOX MS through a LAN.
• Internet Browser: as ActiveX is used, Internet Explorer only can be used. Version 5.00
or higher is recommended to take benefit of the dialer.
The CD-ROM of TWinSoft Suite includes MSIE version 5.00.
Version: 1.06 26
5.2. Installation of the CD-ROM
• TWinSoft 9.00
TWinSoft is the software required for developing an application for the RTU. The basis for
configuring a RTU application is explained in this manual.
Installation of TWinSoft includes:
WebForm Studio: HTML editor dedicated to RTU
Report studio: Report editor dedicated to RTU
WebForm Viewer: ActiveX and TBOX MS dialer from Internet Explorer (see next).
(Administrator rights is required during installation)
• WebForm Viewer
This software contains the tool TBox Dial It ! uses to dial TBOX MS with Internet Explorer.
It also contains the ‘ActiveX’ used to display objects dedicated to the RTU.
It must be installed on the PC used by a operator to dial TBOX MS with Internet Explorer,
when TWinSoft is not required.
(Administrator rights is required during installation)
• TBox Mail
This software is used to display a Chart view from data logging attached to e-mail. To store
data in a global database, you should use T (call your local distributor).
(Administrator rights is required during installation)
Version: 1.06 27
• DreamWeaver Trial version
• Report Studio for DreamWeaver
Dreamweaver is a standard HTML editor. It can be used with the plug-in ‘Report Studio for
Dreamweaver’ to develop standard HTML pages that do not use the ActiveX.
• Acrobat Reader
Software needed to read our documentation.
Version: 1.06 28
5.3. Programs of ‘TWinSoft Suite’
During installation of TWinSoft, a group of programs is created where TWinSoft can be started.
• Accessories: group containing the utility ‘Password generator’ and ‘Reset User
preferences’: reset of registry information to restore the default
configuration of TWinSoft.
• TBox drivers: when 'C' custom drivers have been installed. The ‘on line’ help of the
driver configuration is available in this folder.
• WebForm Studio: to start the HTML editor, dedicated to TBOX MS when it is used as a
Web Server.
Version: 1.06 29
6. Starting TWinSoft
When you start TWinSoft the first time, or when you create a
new document, I help you with some basic configurations.
Version: 1.06 30
6.1. Wizard
The ‘New Document Wizard’ helps you getting started with a new application by gathering
information about your hardware and some basic configuration.
Except for the ‘Type of RTU’, all those settings can be modified latter from the ‘RTU
properties’.
According to the hardware you have,
select the corresponding type of RTU.
IP configuration of the
Ethernet
IP configuration for
sending e-mail or files in
FTP
Version: 1.06 31
6.2. Communicating with TBox MS
Once you have opened a document, either a new one created with the Wizard or an existing
one, you can establish the connection with your TBOX MS.
The possible communications are serial, Ethernet or modem, according to the media used
to connect to TBOX MS.
Serial: check the Baudrate you have given to the serial port in your application (by
default 9600,N). See chapter 9.1.1.
Ethernet: check the IP address you have given to your TBOX MS (see chapter 9.1.1)
and that it is in the same subnet of the PC or accessible to the PC.
Modem: check the tel. Number of TBOX MS. See chapter 8.1.
Version: 1.06 32
Other possibilities of PC Setup:
• Local: you select a serial port of the PC (typically RS232). The Baudrate must fit
with the port of TBOX MS you are connected to.
• Modem: to establish a remote connection to the TBOX MS. TWinSoft takes full
advantage of Windows' built-in modem support: simply install your modem
in the control panel's Modems applet of Windows and you are ready to call
your TBOX MS.
Version: 1.06 33
6.4. Testing communication
Once you have selected the media on the PC, you can test the communication.
Available information:
The media of the PC is indicated and the access level of your connection (see chapter 17:
‘Security’)
If a connection cannot be established with the TBOX MS, it might be because the
configuration of its port does not fit with the PC setup you use (different Baudrate, different
IP address, protocol other than ModBus, …).
To set the TBOX MS to a default configuration, you have to do a global reset. (see next)
Version: 1.06 34
6.5. Global reset of TBox MS
The Global Reset is used to set TBOX MS in a default, well-known configuration, in case
it does not communicate anymore.
This is very useful when you take a CPU from the stock and you have no idea how the port
you want to communicate with is configured.
The global reset is achieved using the button on the front side of the CPU
Procedure:
The global reset mode is indicated by the LED flashing at 0.5 hz (instead of 2 hz in RUN
mode). In this mode, the TBOX MS is configured like following:
Version: 1.06 35
6.7. Saving and Sending a Program
Like any Windows program, TWinSoft creates ‘Documents’. One document corresponds to
one TBOX MS application. Each of them must be saved using the Windows standard.
During the development of the application, it can be sent at any time to TBOX MS, for
testing the program.
When sending an application to TBOX MS, it is first compiled and then sent, in the same
sequence.
The result of the compilation is available in the Results window. This windows
automatically pops up when there is a problem but it can be opened manually:
• from the main menu: ‘View’ ‘Results’
• using the accelerator keys <ALT + 2>
CPU-16 Max. 32768 bytes Max: 32768 bytes Max. 73728 bytes
CPU-32
Version: 1.06 36
6.7.3. Sending a document
In order to have the TBOX MS running with the program you have developed with TWinSoft,
you have to send it. You can use any media to achieve it (RS232, modem, Ethernet, …).
If a problem occurs during compiling, the sequence is stopped and the ‘Results’ window
pops-up (see above)
The good news is that TBOX MS keeps its original settings before it
was stopped.
Version: 1.06 37
Version: 1.06 38
TWINSOFT
-
PROGRAMMING
Version: 1.06 39
7. Introduction
TWinSoft uses the standard look and feel of ‘Windows Explorer’, with at the left side a list of
folders and at the right side the content of the folder selected.
The sequence in which those tasks are executed is not fixed, but at least RTU properties,
Resources and Tags should be configured first, as being required for all other programming.
Version: 1.06 40
8. RTU properties
Setting the properties of the TBOX MS has never been so easy thanks to a set of
comprehensive dialog boxes, available from the main tool bar.
• General the type of the RTU, telephone number, size of the chronologies, …
• Info to type any info about your program, its different versions, …
• Advanced for some features, some advanced parameters are available: for
alarms, sampling tables, …
Version: 1.06 41
8.1. General properties
RTU Type: The type of RTU you have selected with the Wizard (see chapter 6.1). It
cannot be changed!
Name: type a free name for the TBOX MS. It will be displayed when doing a
‘RTU identification’ and used by the supervisory T.
Maximum 8 characters.
ModBus address: with ModBus protocol, each device must have a Station number. It is its
ModBus address.
Enter a number between 1 and 255 (default=1).
Sub address: if more than 255 TBOX MS must be installed in one project, you need to
define a Sub address. As this is not ModBus standard, it is only supported
by ‘TComm.dll’ based software (TWinSoft, T, … please call your
distributor for further information).
Enter a number between 0 and 15 (default=0).
Version: 1.06 42
OS version: when working Offline, it is the OS used to simulate the compilation.
By default it is the OS version associated to version of TWinSoft.
Telephone number: Configuration used by TWinSoft when it needs to dial TBOX MS.
8.2. Drivers
A driver is a module written in ‘C’ that executes a specific task, non-standard. Typically, it is
communication to equipment not supporting standard protocol of TBOX MS.
There is no driver at the moment.
8.3. Security
Access security is discussed at chapter 17.
Version: 1.06 43
8.4. Info properties
You can enter a version number, the name of the programmer and a description of your
program.
This information is not sent to TBOX MS.
8.5. Advanced
8.5.1. Startup
By Startup we mean:
Reset of RTU (hardware or software)
Sending of Program
Reset all physical outputs: when active, at startup the RTU reinitializes the
outputs to ‘0’. After that the outputs are monitored
according to the process.
When not active, at startup the outputs are
maintained to their last status. After that the outputs
are monitored according to the process.
startup
With ‘Wait start of condition’ not active: if the alarm condition is true at startup, an internal
‘start of alarm - auto-ack’ is generated. When the alarm
condition disappears, the alarm is generated.
Internal
Alarm
startup
Version: 1.06 44
8.5.2. Alarms
The advanced parameters of alarms concern the size of the stacks and customizing of
e-mail and GSM message.
Event stack: is a public stack where alarms are available with date, time, recipient,
message, status, ….
The Event stack can be displayed from the main menu: ‘Communication’ ‘Download’
‘Alarms’.
The object ‘Alarms’ used in a WebForm displays the Event stack. It corresponds
also to the list of Alarms sent to T.
SMTP From: when receiving an e-mail from TBOX MS, the field ‘From’ indicates the origin
of the e-mail.
It accepts any text and the following parameters:
%station% : replaced by the name of the station (see General
properties)
%email% : replaced by the e-mail address of the RTU
Version: 1.06 45
SMTP subject: when receiving an e-mail from TBOX MS, the field ‘Subject’ contains the
message or the title of the report (see Report Studio).
It accepts any text and the following parameters:
%station% : replaced by the name of the station (see General
properties)
%email% : replaced by the e-mail address of the RTU
%time% : the time of the RTU when the e-mail was generated
GSM message: when TBOX MS sends a SMS, you can add information to the message.
This information is sent in front of the message.
You can type any text and the following parameters:
%station% : replaced by the name of the station (see General
properties)
%time% : the time of the RTU when the e-mail was generated
Version: 1.06 46
8.5.3. Sampling Tables
This menu gives access to the parameters for long period recording in Sampling tables.
(See chapter 13.3: ‘Sampling tables’)
Daily: When ‘daily’ is selected in sampling table, it is the time of the day the recording is
executed.
Weekly: When ‘weekly’ is selected in sampling table, it is the day of the week and the time
the recording is executed.
Monthly: When ‘monthly’ is selected in sampling table, it is the day of the month and the
time the recording is executed.
Version: 1.06 47
8.5.4. Temperature
For Temperature analog input (PT100 or PT1000), you can define a unit: Celsius,
Fahrenheit or Kelvin.
The unit is the same for all inputs
Reset the device Trigger only if success When communicating as ‘Master’ using
‘Remote Tags’, a Trigger is associated to the device the RTU
communicate with (see Remote Tags).
This Trigger activates the communication according to a ‘State’ or
‘Edge’. Working with ‘Edge’, the RTU restores automatically the
Tag after the transaction(s).
- With this option active: the Trigger is restored only when communication has been
done successfully.
- Without this option: the Trigger is restored when all Remote Tags associated to the
device have been executed, with or without error.
8.5.6. TCP/IP
Version: 1.06 48
TCP Ports Numbers.
Each TCP/IP service has its own unique TCP port. It provides a logical location for the
delivery of TCP data.
TCP Port number complies to a standard defined by the IANA to be sure everyone using a
TCP service uses the same TCP ports according to protocols used.
When working with TBOX MS, in some cases, you might want to change this port number.
MTU.
The MTU determines the maximum size of a TCP frames, by default 1500 bytes. 1500
bytes is the maximum.
Some intermediate equipment (router, switch, …) does not support this value. It can then be
reduced.
Typically, this information is needed when TBOX MS is used as a Web Server, dialed from
Internet Explorer and TBox Dial It !.
The utility TBox Dial It ! , used to dial TBOX MS automatically, detects the IP address and uses
it as URL.
Avoid using addresses in the same range as the IP
address defined for the LAN card of the PC used as
Browser.
Version: 1.06 49
8.5.7. Environment variables
The environment variables are used when particular configuration might be needed in
external software.
Result in T :
Longname Type any long name The name typed here will be used in T,
instead of the one declared in the ‘General’
properties, which is limited to 8 characters
Version: 1.06 50
9. Resources
The resources represent the list of the hardware that your TBOX MS has to its disposal.
• The CPU card, with its communication ports (see chapter 9.1: ‘The CPU card’)
• The hardware can be composed of Cards fixed in the same Rack as the CPU. It can be
I/O cards or Communication cards (see chapter 9.2: ‘Adding Cards’)
• If the CPU needs to communicate in ‘ModBus Master’ to another device (CPU, or an
external ModBus device), the latter must be declared as a Remote I/O card (see
chapter 14: ‘Remote Tags’)
• The Resources also contain 2 lists with System variables. Systems variables have pre-
defined function (see chapter 9.4: ‘System variables’)
The communication ports of the CPU with their associated configuration and the I/O of the
CPU are available from the ‘Resources’:
Version: 1.06 51
9.1.1. Communication ports of the CPU
To enter the
configuration of the
communication port,
double click the port.
Version: 1.06 52
9.2. Adding Cards
All cards other than the CPU must be added in the ‘Resources’ folder: I/O cards as well as
communication cards.
Version: 1.06 53
Example: Adding a Power Supply card:
Example:
Version: 1.06 54
9.2.1. Adding an I/O card
CHANNEL
CARD
See technical specifications of all I/O cards at the end of the manual.
Version: 1.06 55
9.2.2. Adding a ‘Modem’ Card
A modem card (PSTN or GSM) is composed of a modem and a serial port (RS232 or RS485).
Technical specifications are available at the end of the manual.
Once created, a
‘modem’ provides
one Group 0 with
communication
ports.
To enter the
configuration of
the modem, double
click the ‘modem’
port in the list
Initialization: The initialization string is sent at power up of the modem and after
each connection.
If changed, it is saved in the TWinSoft document.
Version: 1.06 56
Outside line prefix: if TBOX MS is placed behind a telephone switch (PABX), it is the
number to get the outside line. This prefix will be applied
automatically each time TBOX MS dials out.
Auto Answer: Number of rings after which the modem will go off hook.
Tab Advanced
Mainly ‘timing’ parameters required when modem is ‘Master’ or ‘Slave’ in a ModBus
communication.
Version: 1.06 57
GSM-data settings
Initialization: should not be changed
PIN Code: If the SIM card you have inserted uses a PIN code, type it at the place
of the letter n.
Example: with the PIN code 4896, you should have in the field: AT+CPIN=“4896”
If the SIM card you have does not require a PIN code, you can leave the
field as it is or erase it.
If you type the wrong PIN code, or you type a PIN code when
the SIM card does not require one, you risk blocking the SIM
card.
It must then be restored with the PUK code using a mobile.
Auto Answer: number of RINGS before the modem picks-up the line.
Dialing to a GSM-data
The SIM card of a GSM has three telephone numbers: VOICE (the one you use to speak),
DATA and FAX.
To dial to TBOX MS, you have to be sure that data service is activated and you dial the
DATA number (please call your GSM operator).
Version: 1.06 58
GPRS settings
Once you have declared a MS-GSM card, you have to activate the GPRS mode.
You have to choose either ‘GSM-Data’ mode OR ‘GPRS’
mode.
It is not possible to use the modem in both modes.
Initialization: You have to add in the initialization string the APN. Replace in the string
the apn with the URL you receive from your GSM operator.
Example with Mobistar:
AT+CGDCONT=1,“IP”,“WEB.PRO.BE”.
PIN Code: If the SIM card you have inserted uses a PIN code, type it at the place
of the letter n.
Example: with the PIN code 4896, you should have in the field: AT+CPIN=“4896”
If the SIM card you have does not require a PIN code, you can leave the
field as it is or erase it.
Connection at start up: when this option is selected (by default) TBOX MS handles
the modem to keep the connection permanently.
when this option is removed, TBOX MS handles the
connection according to communication variables: GPRSCon
(see below)
Version: 1.06 59
Communication Variables dedicated to GPRS
Some communication variables allow manual handling of GPRS and give information on the
status.
Version: 1.06 60
About sending alarms with GPRS
With GPRS, you are able to send e-mail or files using FTP. You create recipient(s) associated
to the SMTP or FTP server you have associated to the GSM/GPRS.
Working with a manual connection, first the RTU establishes the connection and sends the
mail and/or files. Then it stops the connection.
If the connection was already established, the RTU maintains the connection.
Working with an automatic connection, the mail and/or files are sent immediately and the
connection is maintained.
GPRS IP settings
GPRS represents a TCP/IP connection using GSM network. It then requires a TCP/IP
configuration.
Obtain IP address
automatically:
You work with dynamic IP
address which is provided by
the Operator at the
connection.
Use IP address:
You work with fix IP
address; it corresponds to
the SIM card you use.
Version: 1.06 61
9.3. Communication Variables
Communication variables are dedicated registers to status of the communication.
It is very useful for controlling the connection and the access level authority.
Those variables are divided into 2 tabs, the Digital Communication Variables (DCV) and the
Analog Communication Variables (ACV).
When you need one, you double click it from the list and declare it as a Tag. It becomes
then available in any feature of TBOX MS.
Version: 1.06 62
COMx.ModBusResp 0 Communication: Reading ‘1’ indicates the port is transmitting. At
each transmission, TBOX MS SET this register.
To check TBOX MS is transmitting, you RESET this register and
test whether it is SET again (using Ladder or BASIC)
Version: 1.06 63
9.4. System variables
The system variables have pre-defined functions.
They are very useful to check or to act on features of TBOX MS.
According to its function a register is Read/Write or Read only. In the following table, the
column R/W indicates:
- : Read only.
0 : Write ‘0’ only.
1 : Write ‘1’ only.
* : Write ‘0’ or ‘1’.
When the action (SET) is specified, it means that the TBOX MS maintains the variable at 1 to
be sure it is detected. With such a variable, you need then to reset it using BASIC or
Ladder programming
Version: 1.06 64
Index Name R/W Description
13 DisCra * Flag analog chronology: can be associated to any analog chronology
configuration to inhibit recording. When at value ‘1’, inhibits
recording in Database.
14 DisSam - (Not used)
15 DisAla - Flag sending alarm: can be associated to any Alarm condition. When
at value ‘1’, inhibits the sending of alarm.
16 DaySav - Time: 1 = summer time (the ASPE ZoneBias = + 3600 seconds).
0 = wintertime.
17 PrgEnb * Program Enable: when reset to ‘0’, allows stopping the execution of
BASIC/Ladder program. It can be useful to execute the program
manually (see next).
18 PrgOnc 1 Program Once: when set to ‘1’, executes the cycle of BASIC/Ladder
program once. Useful for debugging the program.
TBOX MS resets the variable automatically.
19 TcpIpLog * TCP Logging: Setting this register activates the Debugging of TCP/IP
connection. Very useful to trace problems when sending e-mail or
FTP. (see chapter 11.5)
When this option has been activated, the information is available
from TWinSoft main menu: ‘Communication’ ‘Download’
‘TCP/IP debugging’.
20 ALAovf * Alarm Overflow: overflow in the stack of alarms. The size of the
stack of alarms can be adjusted from the ‘Advanced’ properties of
the RTU
21 ComErr 0 Communication error: general communication error flag. It means
that one of the communication port (of the CPU or of a
communication card) used as ‘Master’ has encounter a
communication error. (SET)
22 SmtpEr 0 Smtp Error: an error occurred while sending an e-mail. (SET)
23 FtpErr 0 Ftp Error: an error occurred while sending files. (SET)
24 NTPErr 0 NTP Error: an error occurred while setting time of TBOX MS. (SET)
25 GpsVF - GPS: GPS validity. GPS returns a valid signal.
Validity of the signal. When changes to one, it indicates the GPS
receives sufficient signals to calculate its position (from minimum 3
satellites).
When changing from 0 to 1, the time of TBOX MS is set to the time
of GPS, with correction in regards to GMT according to the location
of TBox.
If you want to update the time manually, you reset the variable
26 GPRSErr 0 GPRS Error: an error occurred during GPRS connection. TBOX MS
does not succeed to connect (not supported yet) (SET)
27 ModemLog * ModemLog: authorizes the modem connection to be logged into
chronology. The communication port is declared in the ASV.24
[PortIdLog].
The ASV.25 [EventLog] must be tagged also.
The information is available in from the communication Download
TraceLog (not supported yet)
28 SystemEr 0 SystemErr: the RTU detected an error during starting. Typically a
problem with a card (not supported yet) (SET)
Version: 1.06 65
9.4.2. Analog System Variables
According to its function a variable is Read/Write or Read only. In the following table, the
column R/W indicates:
- : Read only.
* : Writable.
Version: 1.06 66
Index Name R/W Description
21 OsBuil - Operating System build: build number of the OS running in
TBOX MS
22 LoaVer - Loader version: Loader version running in TBOX MS
23 LoaBui - Loader build: build number of the loader running in TBOX MS
24 PortIdLog * Selection of the port for TCP debugging (see chapter 11.5)
25 EventLog - Contains internal codes used for TCP debugging
(see chapter 11.5)
26 MilliS - TIME:
With CPU-16: 10 milliseconds tik
With CPU-32: 1 millisecond tik (not available yet)
27 GpsLat - GPS: current latitude given by the MS-GPS.
Latitude in degrees multiplied by 1000000 (example: 50123456
means 50 degrees + 0.123456 degree). Resolution : 11 cm.
Precision 15 meters
28 GpsLong * GPS: current longitude given by the MS-GPS.
Longitude in degrees multiplied by 1000000 (example: 7123456
means 7 degrees + 0.123456 degree). Resolution : 11 cm.
Precision 15 meters
29 GpsAlt - GPS: current altitude given by the MS-GPS.
Altitude in meters. Resolution, 1 meter. Precision: depends on
the quantity of satellites. Poor precision
30 GpsSats - GPS: quantity of satellites detected by the MS-GPS. Must be of
minimum 3, or even 4 to expect a good precision.
Version: 1.06 67
10. Tags
A Tag is essential for any programming
Any variable of the TBOX MS that you want to use in any configuration, you have to
declare it as a Tag.
The Tags are gathered in the folder Tags of the Project Workspace:
GROUP of Tags
Version: 1.06 68
10.1. Physical I/O
The physical I/O’s are the signals available on I/O cards. They can be easily accessed from
the ‘Resources’ (see chapter 9: ‘The Resources’)
Version: 1.06 69
10.2. Internal Variables (Registers)
An internal variable (also know as Register) is an addressable location of the memory. It is
used as flag, as temporary value, to make a calculation, …
The Internal Variables can be only created from the list of Tags.
To create a Digital Internal Variable, from the list of Tags, click ‘Add a Tag’ .
Select ‘Digital’
Version: 1.06 70
The Definition menu pops up:
You type a Tag Name, a Comment and select as Type: ‘Internal Variable’
The initial value is the value the Tag will have at the start up of TBOX MS.
If you select ‘None’ the value is maintained at start up.
Version: 1.06 71
10.2.2. Analog Internal Variable
To create an Analog Internal Variable (also known as Register), from the list of Tags, click
‘Add a Tag’ .
Select ‘Analog’
Version: 1.06 72
You type a Tag Name, a Comment and select as Type: ‘Internal Register’
The initial value is the value the Tag will have at the start up of TBOX MS.
If you leave the field empty, the value is maintained at start up.
Version: 1.06 73
10.3. ModBus address
The ModBus address is the link to the outside world. When equipment must sample Tags in
TBOX MS, it uses its ModBus addresses; like T, SCADA or TWinSoft.
Each Tag has a unique ModBus address. By default TWinSoft proposes a ModBus address.
You can change it if you want.
Version: 1.06 74
10.4. Tags - Presentation / Write
This tab contains configuration used when the Tag is declared in a Report or in a WebForm.
Report: file edited with ‘Report Studio’ and used for instance as text body when
sending e-mail.
(Start ‘Report Studio’ from ‘Windows’ and the group of Programs of Techno Trade or
from the ‘Project Workspace’ and the list of ‘Web and Report files’)
WebForm: file edited with ‘WebForm studio’. Used to display values of Tags in a
HTML page.
(Start ‘WebForm Studio’ from ‘Windows’ and the group of Programs of Techno Trade
or from the ‘Project Workspace’ and the list of ‘Web and Report files’)
Units: text displayed as ‘Unit’ in datalogging when the data is retrieved. It can
also be displayed when selecting as format ‘Value + unit’ in the report or
WebForm.
Write allowed: if the Tag is declared in a WebForm, allows defining a writing access to the
Tag, within a specific range.
Version: 1.06 75
11. IP Parameters
IP parameters consist in the global configuration for:
connecting to an ISP
sending files (FTP)
sending e-mail (SMTP)
Time synchronization (NTP)
All IP parameters
are defined in this
Folder, available from
the ‘Resources’.
The FTP Host, SMTP Server and NTP configurations correspond to connections to the
appropriate servers. It is done for once, and called when creating a recipient of alarms.
This makes creating alarm recipients very easy !
In other way round, when TBOX MS generates an e-mail, it sequences the configuration like
following:
Version: 1.06 76
11.1. ISP configuration
ISP stands for Internet Service Provider. An ISP represents the entrance to Internet.
It is the company you call to access an Internet service, like sending e-mail or files (FTP).
Some among the most well-known: Hotmail, AT&T, Scarlet, …
When you want TBOX MS to send e-mail or send files to a FTP site, you subscribe an
account to an ISP.
Phone number: It is the phone number of the provider the TBOX MS must dial to send an e-
mail or files.
Dial Prefix: The default dial prefix to connect to an ISP (ATDT). It should not be
changed unless the modem needs a particular configuration.
If TBOX MS is placed behind a telephone switch, the ‘outside line prefix’ is
defined in the modem properties; it should not be added to the dial
prefix (see chapter 9.2.2)
User name: It is the name of your account needed to access Internet (usually it is given
by the ISP).
Version: 1.06 77
DNS: A DNS converts names in IP address. It is needed by the TBOX MS to
establish the connection with the Mail Provider in case the e-mail Server is
indicated in 'text' and not with an IP address.
More and more ISP support dynamic DNS, they provide the DNS addresses
when connecting.
When it is not the case, they provide you with a ‘Preferred’ and ‘Alternate’
DNS address
Version: 1.06 78
11.2. FTP Host
FTP stands for File Transfer Protocol. When subscribing an account to an ISP, usually you
have some Mbytes to your disposal for sending files.
The FTP host represents the target when sending files. The directory where the files are sent
is defined in the Recipient (see chapter 11).
First, TBOX MS connects to Internet (through an ISP connection) and then sends the files.
Host Name: It is a free name, to recall when you create the alarm recipient.
Connection: You select the ISP you have previously created (see above).
Login: Depending on the account you have subscribed, you have a login or work
with ‘Anonymous login’.
Version: 1.06 79
11.3. SMTP Server
SMTP stands for Simple Mail Transfer Protocol. It is usually the main reason for subscribing
an account to an ISP, for sending and reading e-mail.
The SMTP Server represents the mail server used for sending e-mail (typically the one of the
ISP where we have subscribed an account).
First, TBOX MS connects to Internet (through an ISP connection) and then to the SMTP
Server.
Name: It is a free name, to recall when you create the alarm recipient.
Mail Server (SMTP): It is the IP address (or the name) of the outgoing e-mail Server. It
is the unique mail Server needed. The POP3 address, for incoming e-mail, is
not needed, as TBOX MS cannot receive e-mail.
E-mail address: It is the e-mail address of the TBOX MS. You can usually choose it when you
subscribe an account. This address will appear in the 'From:' when receiving
the mail.
Version: 1.06 80
The Server requires Authentication: Depending on your ISP and on the way you
send e-mail, authentication might be needed to send e-mail.
Usually, when you have subscribed the e-mail account at your ISP it is not
required.
To be sure, if you have created this account on a PC, check its configuration
otherwise contact your ISP.
Version: 1.06 81
11.4. NTP Server
NTP stands for Network Time Protocol, an Internet standard protocol (built on top of
TCP/IP) that assures accurate synchronization to the millisecond.
First, TBOX MS connects to Internet (through an ISP connection) and then to the NTP
Server.
Examples of Servers:
time.windows.com
europe.pool.ntp.org
You will find valuable information, like lists of Servers with open access at:
www.ntp.org public time server list
The organization pool.ntp.org proposes servers using DNS round robin, which make a
random selection from a pool of open access time servers. This is good enough when
working with TBOX MS.
Round Robin DNS technique is used when the number of access to a server is unpredictable,
to balance the use of IP addresses (load balancing technique).
When setting time, TBOX MS takes into account the propagation delay. This is particularly
important when connecting to the server via modem.
Version: 1.06 82
11.5. TCP/IP Debugging
This feature is very convenient to trace problems when sending e-mails and/or files (with
FTP).
It informs on the different steps of the connection: Login to the ISP, obtain of DNS, Smtp
communication, …
Procedure
1. One System variable must be Tagged: Analog # 25: EventLog
As you can see, we use the system variables without having Tagged them (brown color). You can also
Tag them if you want.
3. Once the connection is finished, look at the trace from the ‘Communication menu’
Version: 1.06 83
4. Example of TraceLog when sending e-mail works fine:
Closing connection
Modem connected
Version: 1.06 84
5. Example of TraceLog when sending Files (FTP) works fine:
Closing connection
Modem connected
Version: 1.06 85
12. Alarms
12.1. Introduction
Alarm module of TBOX MS is the gate to the outside world.
An alarm consists in a communication event, not only for sending warning messages but
to establish a connection, like we will see.
Via alarms, you are able to call a SCADA, send SMS or message to Pagers, send e-mail,
send files to a FTP site, dial another TBOX MS or send a report to a printer.
Alarms can be used also to send historical data on regular base using e-mail or FTP. The
historical data is sent as the attached file of a report, developed using Report Studio (see
from ‘Windows’ the group of programs of ‘Techno Trade’).
TView, the supervisory software can then be used to collect data from a mail box or a FTP
site.
The initiation of alarms in the TBOX MS relies on the variation of digital or analog Tags.
For example, an intrusion contact or a flow level generates a call.
By a condition: an edge on a digital Tag or the value of an analog Tag that passes
below a minimum threshold or above a maximum threshold, with adjustable hysteresis.
The first option affords a simple and quick way to create alarms (a state change of a
digital Tag or the variation of an analog Tag value to activate the alarm).
The Ladder diagram allows you to create a complex automated alarm condition by using
(for example) priorities or a set of analog or Boolean conditions.
Each new alarm is immediately entered into a 32-alarms queue (adjustable) and
processed, according to its severity level. Alarms are generated one by one.
The alarm queue represents an internal buffer of alarms: if several alarms happen at the
same time or if a communication port is not available when the alarm happens.
The Events stack, gives information about alarms status (Started – Stopped –
Acknowledged).
Version: 1.06 86
To access the definition of Conditions, click the folder ‘Alarms’ in the Project workspace and
select ‘Conditions’.
According to the Tag you select, you define a digital alarm condition or an analog alarm
condition.
Type: The edge on which the alarm is going to be started (rising, falling or both).
It also appears in the table of alarms, to distinguish them (see chapter 12.7).
Recipient: Select a Recipient or a group of recipients. The ‘person’ you wish to contact
in case of alarm (see ‘Recipients’ below).
In case you select a group of Recipients, TBOX MS executes a chain: it calls
the first one in the group; in case the alarm cannot be acknowledged after the
number of tries, TBOX MS automatically calls the next Recipient in the group.
It is the equivalence to ‘Chain’ with previous generation of RTU, the A.
Filter: The time in hour:minute:second during which the condition must stay TRUE,
before the call is generated.
Version: 1.06 87
Handling: The handling option allows blocking each alarm condition, manually or
automatically.
Enabled: alarm condition always active.
Disabled: alarm condition always de-activated.
PowerF: alarm condition disabled when there is a main power failure.
DisAla: alarm condition de-activated when the system variable ‘DisAla’ is at 1.
Severity: Each alarm can be assigned a level of severity: Low, Normal or High. When
several alarms are still present in the queue and then not processed yet,
TBOX MS generates the calls according to the highest severity.
End of Alarm: When the alarm condition is finished, an alarm is automatically sent to the
same recipient with the same message.
Example: for a ‘positive edge’ alarm, it is when the Tag returns to ‘0’.
It is also useful when the alarm condition is active when TBOX MS starts up.
When ‘end of alarm’ is checked, an alarm is automatically generated when the
alarm condition disappears (see illustration chapter 12.7: Alarms table)
Call all Recipients: In case you select a group of Recipients, TBOX MS executes a
link between recipients: it calls all Recipients one after each
other.
Version: 1.06 88
12.3. Analog Alarm Condition
Value: The threshold value, depending on the format defined when creating the Tag
(see chapter 10. The Tags).
Hysteresis: The amount that the level must fall or rise below or above the Max. or Min.
value before an alarm can be re-started
Recipient: Select a Recipient or a group of recipients. The ‘person’ you wish to contact
in case of alarm (see ‘Recipients’ below).
In case you select a ‘group of Recipients’, TBOX MS calls the first one in the
group. In case the alarm cannot be acknowledged after the number of tries,
TBOX MS automatically calls the next Recipient in the group.
It is the equivalence to ‘Chain’ with previous generation of RTU, the A.
Version: 1.06 89
Message or Report: text or file associated to the alarm.
Depending on the recipient associated, it is the SMS sent to a GSM, or the
message/report sent as e-mail or the text printed, or the file sent by FTP …
It also appears in the table of alarms, to distinguish them (see chapter 12.7).
Filter: The time in hour:minute:second during which the condition must stay TRUE,
before the call is generated.
Handling: The handling option allows blocking each alarm condition, manually or
automatically.
Enabled: alarm condition always active.
Disabled: alarm condition always de-activated.
PowerF: alarm condition disabled when there is a main power failure.
DisAla: alarm condition de-activated when the system variable ‘DisAla’ is at 1.
Severity: Each alarm can be assigned a level of severity: Low, Normal or High. When
several alarms are still present in the queue and not processed yet, TBOX MS
generates the calls according to the highest severity.
End of Alarm: When the alarm condition is finished, an alarm is automatically sent to the
same recipient with the same message.
Example: for a ‘maximum’ alarm, it is when the value returns below
maximum - hysteresis.
It is also useful when the alarm condition is active when TBOX MS starts up.
When ‘end of alarm’ is checked, an alarm is automatically generated when the
condition of alarm disappears (see illustration chapter 12.7: Alarms table)
Call all Recipients: In case you select a group of Recipients, TBOX MS executes a
link between recipients: it calls all Recipients one after each
other.
Version: 1.06 90
12.4. Recipients
To access the definition of Recipients, click the folder ‘Alarms’ in the Project workspace and
select ‘Recipients’.
Internal: the alarm is saved in the stack of events and no call is generated.
It can be used to memorize a particular event without generating an alarm or
to test an alarm condition.
Version: 1.06 91
Printer: sending of message(s) or report to a local printer.
E-mail: If you have subscribed an e-mail account (see chapter 11.3. SMTP Server),
the TBOX MS is able to send an e-mail. You only have to specify the e-mail
address of the recipient.
FTP: TBOX MS is able to send files to a FTP Host (see chapter 11.2. FTP Host).
In the recipient configuration you only need to indicate the directory where
you want to send the files.
NTP: TBOX MS is able to synchronize its clock with an external NTP server.
In the recipient, you only select a server you have created in the list of NTP
Servers (see chapter 11.4. NTP Server).
Version: 1.06 92
12.5. Group of Recipients
A group of recipients is composed of several recipients, which can be of different types
(SMS, e-mail, …).
You can declare several groups.
Then previous to creating groups of recipients, you have to create the recipients (see
above).
Version: 1.06 93
12.6. Messages
To access the definition of Alarm messages, click the folder 'Alarms' in the Project workspace
and select 'Messages'.
Message number : indicates the index of message corresponding to its position in the list
of messages. Type a message of maximum 120 characters.
This message is user specific:
- If it is for a Digital Pager, it will consist only of numbers.
- If it is for a Text Pager or for a GSM, it will not contain accent (ü, é, à, ...)
~Xyyyyy ~
~ : The first character indicates that what follows is the value of a ModBus address. The
value sent is the value from the moment of the call.
Type Description
I Integer (-32768.. 32768)
W Word (0.. 65535)
C Choice (for example edges: POS, NEG or DEL)
S Text (comments, TEL number, scaled value of Terminal/.Minitel Tags,…)
R Real (only Factor an Offset of Terminal/Minitel Tags)
B Byte (0.. 255, represented as 3 ASCII characters)
t Time (represented as 2 ASCII characters)
j Day of the week
m month
0 (zero) Byte represented in binary format
f Floating point
D Double word
- Character string
d Digital state (represented as 0/1)
o (small letter) Digital state (represented as ON/OFF)
# Digital state (represented as --------/########)
1.. 9, a.. f Digital state (according to the definition of digital states, only valid from 1 to
15)
h Time: hh:mm
Version: 1.06 94
yyyyy: represents the ModBus address of the variable. It can be checked from the list
of Tags (see chapter 10.3. ModBus address)
The Events stack is the visible part of the handling of alarms in TBOX MS.
The internal alarms queue is not accessible.
You access the Alarms table from the main menu: Communication Download Alarms
The Alarms table does not only display alarms generated in TBOX MS, but also system
events like start-up of the program, Reset of the TBOX MS, …
Version: 1.06 95
12.7.1. Columns description
Start Timestamp: Date and Time when the alarm condition appears (‘Start’ condition)
Message: Message (or name of the file) associate with the alarm.
System events appear between brackets.
End Timestamp: Date and Time when the alarm condition disappears (‘End’
condition).
Version: 1.06 96
13. Datalogging
13.1. Introduction
Datalogging relies on the database inside TBOX MS. Datalogging allows memorizing
events of your process, in order to visualize its history.
TBOX MS contains 72 Kbytes of memory for recording events; the latter is what we call the
database of TBOX MS.
The Chronologies
Chronologies are 'On event' recordings, by mean of changes in Tags. Each event is
recorded with the time, date, Tag and its status or value (see important note about
timestamp next page).
0
t
The changing of status of the Tag represents the events.
160
140
120
100
80
60
40
20
t
The variation of the Tag represents the events.
TBOX MS stores chronologies in 2 tables: one for digital events and one for analog events.
Version: 1.06 97
Recording into chronologies happens ‘on event’, but the
minimum resolution in timestamp is the second.
The sampling for Tags used in Ladder/Basic depends on the
cycle of the process.
For other Tags, sampling is executed every second.
In case of recording using Ladder/BASIC, with several records
during the same second, the data is sorted with the chronological
order (latest at the top) but with the same second.
Only the date and time of the last recording are stored, and they therefore require less
memory than do chronologies.
Each Tag is recorded into a separate table. There is no practical limit in the number of
tables, but the size of each table is limited.
The database information recorded in TBOX MS can be retrieved with the use of SCADA
software such as T or other HMI package with ‘TComm.dll’ based driver (please call
your distributor).
Version: 1.06 98
13.2. The chronologies
13.2.1. Digital chronologies
Handling:
Enabled: always recorded.
Disabled: never recorded.
PowerF: recording disabled in case of main power failure.
DisCRD: recording disabled when the system variable ‘DisCRD’ is at 1.
Variation: Recording in case of variation (higher or lower) in comparison with the previous
recording. The unit is expressed according to the format selected in the Tag
definition (see chapter 10.2.2: Analog Tags).
Handling:
Enabled: always recorded.
Disabled: never recorded.
PowerF: recording disabled in case of main power failure.
DisCRA: recording disabled when the system variable ‘DisCRA’ is at 1.
Version: 1.06 99
13.3. The sampling tables
14.1. Introduction
Remote Tags allow exchanging information between two or more ModBus stations via any
communication ports.
Typically, it is a TBOX MS connected to another TBOX MS, either local (through RS485 or
Ethernet) or remote, by modem.
Each Remote Tag corresponds to one transaction (reading or writing) with 1 slave.
When there are several stations, TBOX MS executes the different transactions of one station
at a time, then transactions of the following station, and so on …
Any communication port can be used to execute Remote Tags: RS232, RS485, modem
PSTN, modem GSM, Ethernet.
When a modem port is used to execute Remote Tags, TBOX MS needs first to establish the
connection using an Alarm of type ‘ModBus’ (see chapter 12.4. Recipients)
Remote TBox: a A
(CPU-3)
ModBus device: a TBOX MS,
TBox-LT or any ModBus device
Trigger: Select a digital Tag that will trigger the communication, according to a
‘Condition’ (see next). Working with several equipment, you can declare
different Tags and then monitor differently the communication to each
equipment.
The Trigger must be a digital variable (DIV).
Condition: Condition of Tag ‘Trigger’ to start communication. Typically, you will work with
a permanent connection (Trigger in High or Low state). Or you can decide
to execute one-shot communication, on edge changing of the Tag Trigger.
The changing of state of the Tag can be controlled by BASIC, Ladder, or
Periodic events.
Tag: Select an existing Tag by clicking the button. Be sure you select a Tag of the
same type of the address you want to access in the ‘Slave’ (Byte, Word or Float).
If the Tag does not exist, you can create it after having clicked the button. It is
the Tag of the Master; it contains the value you want to write in a Slave or it is
a register that contains the value that Master reads in a Slave.
In case of block communication (with a quantity > 1), this Tag is the one of first
ModBus address.
Operation :
Operations MASTER (Tag) SLAVE (Address)
READ
WRITE
Quantity : Quantity of variables of successive addresses that are read (or written) in the
Slave. It depends on the External source, the types of variable and the ModBus
function used (see tables below).
ModBus protocol handles only words (16 bits). When working with 32
bits, TWinSoft adapts the quantity to double the number of words.
32 bits are handled with:
<Hi word1><Lo word1><Hi word2><Lo word2>…
Device: select an existing external device from the ‘Resources’. You can create one
clicking the button
Type: select the type of the external variable. According to the external source, the
choices are:
With External source ‘ModBus device’ (TBOX MS, TBOX LITE, any ModBus device)
Working with digital variables (DIV, DIR, …), you have to work
with multiple of 8 for: quantity, address of the Tag and
Address in External Source
Address : The ModBus address must be typed according to the indication of the user’s
guide of the Remote device.
Communicating to TBOX MS, you have to refer to the TWinSoft application and
its configuration of Tags.
• Create an Alarm Recipient of type ‘ModBus - Master’, with the telephone number of
the remote device.
• Create a ‘Remote Device’, associated to the communication port of the modem and
to a Trigger – DIV (digital register).
• Create the Remote tags associated to this device.
• The alarm is conditioned by a situation requiring communication with another TBOX
MS leading to a Tag which is the condition of the alarm.
• When modems are connected (can be checked with Digital Communication
Variable DCV ‘COMx.Call’), you activate the Trigger of the TBOX MS you are
connected to. This action executes Remote Tags associated to this station.
• Acknowledge the alarm, for instance using the special analog variable ‘AlaRec’.
• Stop connection by writing ‘0’ to the Communication Variable
‘COMx.ModemOffHook’, or the communication will be automatically stopped after 1
minute.
They are available from the tab ‘Advanced’ of the communication port properties.
Several tasks can be associated to the Tag triggered. This implies for the OS to RESET the
Tag when all event s have been launched.
In the project workspace of TWinSoft, a folder is available to declare the Periodic Events:
The Tag ‘event1’ (a DIV) will be automatically SET every 30 minutes, at each xx:15:00 and
xx:45:00.
The action(s) configured with ‘Event1’ will be generated every 30 minutes.
The Tag ‘event2’ (a DIV) will be automatically SET every day at 6:00:00 AM.
The action(s) configured with ‘Event2’ will be generated at that moment.
This feature is available for maximum 1 group of 8 digital inputs and the maximum
frequency of pulses is limited to 25 Hz with a duty cycle of 50 %.
Tag: Select an existing Digital Tag by clicking the button. If the Tag does not
exist, you can create it after having clicked the button.
Action: Action taken to the Target Tag (see next) during a change of status of the
digital Tag defined above. The choices are:
- Rising Edge -> Set (DIV): each rising edge of the digital Tag, performs a
SET action on the Target Tag which must be an internal variable DIV.
- Falling Edge -> Set (DIV): each falling edge of the digital Tag, performs a
SET action on the Target Tag which must be an internal variable DIV.
- Rising Edge -> Inc (AIV): each rising edge of the digital Tag, increments
the Target Tag which must be an internal variable AIV.
- Falling Edge -> Inc (AIV): each falling edge of the digital Tag, increments
the Target Tag which must be an internal variable AIV.
Target Tag: It is the internal variable (DIV or AIV) on which the action is taken (see
above).
Divisor: Division Factor that allows the action (SET or increment) to occur once every x
pulses (x being the factor of division).
Weight: You can give a weight to the pulses, after the computing according to the
Divisor (see above).
Frequency of pulses
Target Tag 0 Hz 25 Hz
1 x DIV 24 µs 64 µs
8 x DIV 90 µs 420 µs
1 x AIV 24 µs 220 µs
8 x AIV 90 us 1460 us
If the Access security option is activated, each port of the TBOX MS can be independently
protected.
The standard protection concerns ‘ModBus’ protocol, on serial and modem ports.
The protection is based on a four-digit hexadecimal global code that is saved in the TBOX
MS. This code allows different logins related to different users with different access levels to
the TBOX MS.
• Level 1: Surveillance mode or VISUALIZATION MODE. The operator can view all
TBOX MS values (local or remote), but cannot execute any command.
• Level 2: COMMAND MODE, the operator can view all the values and execute
commands (locally or remotely). Also known as READ/WRITE MODE.
• Level 3: ENGINEER MODE, the operator can view all the values, execute commands
and send new application (locally or remotely).
From the RTU properties tab ‘Security’, you activate the general access security
feature.
Global code type in the code you used to generate the Access Codes with the utility
PASSWORD.EXE (see chapter 17.2 following).
Type it a second time in the Confirmation field, to be sure.
TWinSoft presents you the serial ports (RS232, RS485 and modem) according to your
hardware configuration.
Access level on serial and modem ports can be checked using the Communication Variables
(see chapter 9.3).
This program generates a password that will be necessary to Login to the TBOX MS (see
next).
Global code This hexadecimal code of 4 characters is the basis for password generation.
It is typed in the ‘RTU Properties’ (see above) of TWinSoft and sent to the
TBOX MS. When a user logs in, TBOX MS checks whether NAME and
PASSWORD fit with the global code. This means that if different users with
different access levels must communicate with TBOX MS, the global code
used to generate passwords must be the same.
Level 1: Surveillance mode or VISUALIZATION MODE. The operator can view all
TBOX MS values (local or remote), but can not execute any command.
Level 2: COMMAND MODE, the operator can view all the values and execute
commands (locally or remotely).
Level 3: ENGINEER MODE, the operator can view all the values and execute
commands and alter or send new TWinSoft documents (locally or
remotely).
When this information has been entered, click on the button "Get password".
17.3. Login/Logout
The Login feature of TWinSoft allows connecting to a protected port of the TBOX MS
according to an access level. When a port is not protected, access level is automatically 3:
Engineer.
Login
When connected to a port of TBOX MS that is protected, you need to Login to get an access
level.
You type the Name you used in the ‘Password’ utility and the Password that was created
(see previous). According to those, you are in:
Read only mode
Read/write mode
Engineer
The access level is displayed in the Status bar.
Logout
If the TWinSoft is connected to a protected port, the Logout sets TWinSoft in 'Read only'
mode.
From Internet Explorer, you use the tool TBox Dial It ! to dial TBOX MS directly. TBOX MS is
then considered first as an ISP and then a Web Server.
You type the NAME and PASSWORD you have used with password utility (see above)
Exist in 4 versions:
Rack 5 slots
Rack 10 slots
Rack 15 slots
Rack 20 slots
TECHNICAL SPECIFICATIONS
General
Speed Maximum: 1 Mbytes / second
PCB 6 layers
Component NO component. Bus Passive
Fixing DIN rail
Dimensions: BUS 5
Without card Height x Length x Depth: 150 x 150 x 30 mm
Weight 600 gr.
Dimensions: BUS 10
Without card Height x Length x Depth: 150 x 300 x 30 mm
Weight 1200 gr.
Dimensions: BUS 15
Without card Height x Length x Depth: 150 x 450 x 30 mm
Weight 1800 gr.
Dimensions: BUS 20
Without card Height x Length x Depth: 150 x 600 x 30 mm
Weight 2400 gr.
230 VAC
Input
Voltage input: - AC 85..265 Vac (47..440 hz)
- DC 90..375 Vdc
Power
Input Power at I out max. Maximum: 20 W
Input Power in over load or short-circuit Maximum: 50 W
Efficiency Minimum: 60% at 2 A
Output Power Maximum: 15 W
Output
Battery charger: - Mode Constant current / limited voltage
- Voltage Maximum: 13.8 V
- Current Typical: 90 mA
Output connections: +BAT • to the Battery (+12V)
+UPS • Backup power supply to another rack MS:
+24VCC when the “main” voltage present
otherwise +8V to +13.8V
nc • No connection
+24 V • +24VCC when “main” is present
Gnd • Ground and 0V of Battery
Output current on the BUS (3.3V) 3A
Total current used by all secondary outputs:
battery charger, BUS, 24 V output.
I out (on 24 V) Maximum: 0.625 A
Protection
Test Automatic test of the access of the card by the CPU
(see LED ‘CS’ below)
EMC protection
Over load and short-circuit Maximum 1 second every minute
Above this time, risk of permanent damage (output line is opened)
FUSE primary voltage Soldered Fuse of 1.25 A. Not replaceable by user.
FUSE battery Standard Glass Fuse of 2A fast (5x20). Replaceable by user.
Isolation
No isolation Between GND and Earth
Temperature
Storage -20 to 70 °C
Working (ambient) Standard: 0 to 50°C
Ruggedized: -20 °C to 70 °C
Internal temperature Indicated by 2 digital input variables:
>= 70°C
>= 85°C
Hygrometry 15 to 95 % without condensation
LED
Main Input Voltage present
CS Card Selection: the card corresponds to a card declared in
TWinSoft.
ER Error: The type of the card does not correspond to the one
declared in TWinSoft.
Input
Active Power Supply Digital input = 1 when power supply active (used in redundancy)
Power Fail Digital input = 1 when ‘main’ power breaks down
Temperature See above
Dimensions
Without connector Height x Length x Depth: 150 x 83 x 29 mm
Weight (w/o connector) 350 g
230 Vac - L ~
1
earth
2
230 Vac - N ~
110 Vac - L ~
1
earth
2
110 Vac - N ~
3
110 Vdc ~
1
earth
2
0V ~
3
Battery +Bat
1
24 V +24V
4
Gnd Gnd
5
Gnd Gnd
1
+8 .. +30 VCC
2
+24V
3
-48V
Terre Earth
4
Description: Connector: POWER UNIT
Power Supply - 48 VDC Screw connector (4 x 5.08 mm)
+24V
Gnd -48V
3
Terre Earth
4
Battery +Bat
1
24 V +24V
4
Gnd Gnd
5
0V Gnd
1
2
V-
4
earth
RS232
RS485
Ethernet
TECHNICAL SPECIFICATIONS
General
Processor 16 bits, 7.37 Mips
Clock Real Time Clock, backed-up (see schema following)
Button Push button : RUN - STOP - RESET
Power Supply
Voltage 6 .. 30 VDC
Supply Current Maximum: 1 A (on 3.3 Volts of the BUS)
Consumption 200 mA
E
RS 485 RS 232 POWER
T
H
E
R
N
E
T
Lithium
MultiMedia battery
Card
Battery
Jumper
18.3.1. Lithium Battery
When the CPU is removed from the Rack, the battery is disconnected, to avoid
consuming when the CPU is in stock.
The battery jumper allows keeping the battery connected even when removed from the
rack (see in above specification the life time of the battery).
Advised procedures:
1. Standard : the jumper is left opened.
On this way, the battery is used when the CPU is placed on the rack to maintain clock
and datalogging when the main power has broken down.
2. Permanent : you systematically place the jumper, before you start using the CPU.
On this way, the battery is used when the CPU has been powered at least once, to
maintain clock and datalogging when the main power has broken down, but also when
the CPU is removed from the rack (check the life time of the battery in the technical
specifications)
To use the MultiMedia Card, remove the CPU from the Rack and insert the MultiMedia cards
in the appropriate socket.
IP configuration
Example of System.xml:
<?xml version="1.0"?>
<System>
<ComPort>
<PortName>COM4</PortName>
<IPconfig>
<IP>192.168.1.75</IP>
<Subnet>255.255.255.0</Subnet>
<Gateway>192.168.1.1</Gateway>
<PrimaryDNS>192.168.1.1</PrimaryDNS>
</IPconfig>
</ComPort>
</System>
Power Supply
+6 .. +30 VDC V in
1
When using a Power Supply
2
card (see previous), you do not
3
cable Power supply of the
0V Gnd CPU
DI - DO
MAIN CPU
1
DO : Sync. Output
2
3
Gnd
4
DI : Sync. Input
It is used to synchronize
3
Gnd
DI : Sync. Input
3
4
Gnd
A to A
B to B
Gnd to Gnd
1.
1 2. RxD (input)
6 3. TxD (output)
4.
5. Gnd
9
5 6.
7. RTS (Output)
8. CTS (input)
9.
Cabling to a PC
TBOX MS - COM1 PC - DB 9
RxD 2 2 RxD
TxD 3 3 TxD
GND 5 5 GND
RTS 7 7 RTS
CTS 8 8 CTS
1. Tx+
2. Tx-
3. Rx+
4. not used
5. not used
6. Rx-
7. not used
8. not used
To cable TBOX MS directly to a PC, without HUB or Switch, you can use a X-over cable:
MS-IO-SIMUL is the ideal card for making test and demonstrate TBOX MS.
TECHNICAL SPECIFICATIONS
General
Quantity 16 inputs
Replacement Hot insertable/removable. There is no risk to damage hardware,
but a reset is required.
Compatibility Concerning voltages, with type 1 and 2 of IEC61131-2
LED
Individual LED corresponding to the activation of each digital input.
By software, possibility to disable the LED to save energy
CS Card Selection: the card corresponds to a card declared in
TWinSoft.
ER Error: The type of the card does not correspond to the one declared
in TWinSoft.
Isolation
2 groups isolated Isolation by group of 8 inputs
From the Ground Isolation from the CPU ground and the earth
Level of isolation 1500 Vrms
- between group
- between Inputs and ground
- between Inputs and earth
Protection
Test Automatic test of the access of the card by the CPU
(see LED ‘CS’ above)
RC filter 1592 Hz
Voltage inversion Up to 55 VDC
Protection EMC
Voltage at input
Typical 24 VDC
Maximum for a LOW level 5 VDC
Minimum for a HIGH level 11 VDC
Maximum 60 VDC
Current
Maximum at the input 2.0 mA at 30 VDC
4.5 mA at 60 VDC
Resistance Typical: 12 k
Consumption of the card 40 mA
Sampling
Minimum period LOW – HIGH 20 msec – 20 msec. (10msec for hardware and 10 msec for software)
Frequency (software) At each cycle of BASIC / Ladder
Temperature
Storage -40° to 70 °C
Working (ambient) Standard: -5°C to 50°C
Ruggedized: -20 °C to 70 °C
Hygrometry 15 to 95 % without condensation
Dimensions
Without connector Height x length x Depth: 150 x 83 x 29 mm
Weight 254 gr
CABLING
1 NC
1
+12 .. 60 VDC
2 Input 0
2
3 Input 1
3
4 Input 2
4
5 Input 3
5
Group A 6 6 Input 4
7 Input 5
7
8 Input 6
8
9 Input 7
9 10
0V 10 V-
1 NC
1
+12 .. 60 VDC
2 Input 8
2
3 Input 9
3
4 Input 10
4
5 Input 11
5
Group B
6 Input 12
6
7 Input 13
7
8 Input 14
8
9 Input 15
9 10
0V 10 V-
V+ Input x
V- V-
V+ R: 1 k (12 VDC) V+
10 k (24 VDC)
R
Input x Input x
V- V- V- V-
Sensor Input x
V-
TECHNICAL SPECIFICATIONS
General
Quantity 16 outputs
Type Current Sourcing (PNP transistor)
Replacement Hot insertable/removable. There is no risk to damage hardware,
but a reset is required.
LED
Individual LED corresponding to the activation of each output.
By software, possibility to disable the LED to save energy
CS Card Selection: the card corresponds to a card declared in
TWinSoft.
ER Error: The type of the card does not correspond to the one declared
in TWinSoft.
Isolation
2 groups isolated Isolation by group of 8 outputs
From the Ground Isolation from the CPU ground and the earth
Level of isolation 1500 Vrms
- between group
- between Outputs and ground
- between Outputs and earth
Protection
Test Automatic test of the access of the card by the CPU
(see LED ‘CS’ above)
Protection diode Protection against inverted voltage when working with inductive load
WARNING: when the output is connected to a DC relay
driving an AC relay, the AC relay must be protected with a RC
circuit
Over load Maximum: 60 VDC
Reverse voltage Maximum: 55 VDC
Short-Circuit + Over load Thermal protection with automatic recovery
Voltage / Current
Working voltage on V+ 6 to 60 VDC
Working current on V+ Maximum: 200 mA
Voltage per output Maximum: 60 VDC (depending on V+)
Short-Circuit current Minimum: 0.2 A
Typical: 0.9A
Maximum: 1.2A
Impedance Typical: 1 ohm
Maximum: 10 ohms
Consumption 80 mA
Temperature
Storage -40° to 70 °C
Working (inside the card) Standard: -40°C to 85 °C
Working (ambient) Standard: -5°C to 50°C
Ruggedized: -20 °C to 70 °C
Hygrometry 15 to 95 % without condensation
Dimensions
Without connector Height x length x Depth: 150 x 83 x 29 mm
Weight 258 gr
CABLING
1 V+
1
+6 .. 60 VDC
2 Output 0
2
3 Output 1
3
4 Output 2
4
5 Output 3
5
Group A
6 6 Output 4
7 Output 5
7
8 Output 6
8
9 10
9 Output 7
0V 10 V-
1 V+
1
+6 .. 60 VDC
2 Output 8
2
3 Output 9
3
4 Output 10
4
5 Output 11
5
Group B
6 Output 12
6
7 Output 13
7
8 Output 14
8
9 Output 15
9 10
0V 10 V-
TECHNICAL SPECIFICATIONS
General
Quantity 16 channels. Each can be cabled as Input or Output
Replacement Hot insertable/removable. There is no risk to damage hardware,
but a reset is required.
Consumption of the card Tbd
Test Automatic test of the access of the card by the CPU
(see LED ‘CS’ below)
LED
Individual LED corresponding to the activation of each input or output.
By software, possibility to disable the LED to save energy
CS Card Selection: the card corresponds to a card declared in TWinSoft.
ER Error: The type of the card does not correspond to the one declared
in TWinSoft.
Isolation
2 groups isolated Isolation by group of 8 inputs
Isolation from the Ground Isolation from the CPU ground and the earth
Level of isolation 1500 Vrms
- between group
- between Inputs and ground
- between Inputs and earth
Temperature
Storage -20 to 70 °C
Working (ambient) Standard: -5°C to 50°C
Ruggedized: -20 °C to 70 °C
Hygrometry 15 to 95 % without condensation
Dimensions
Without connector Height x length x Depth: 150 x 83 x 29 mm
Weight 258 gr
Inputs
Voltage at input
Typical 24 VDC
Maximum for a LOW level 5 VDC
Minimum for a HIGH level 11 VDC
Maximum 60 VDC
Compatibility with type 1 and 2 of IEC61131-2
Current
Maximum at the input 2.0 mA at 30 VDC
4.5 mA at 60 VDC
Resistance 12 k
Sampling
Minimum period LOW – HIGH 20 msec – 20 msec.
Frequency (software) At each cycle of BASIC / Ladder
Protection
RC filter 1592 Hz
Voltage inversion Up to 55 VDC
Protection EMC
Outputs
Voltage / Current
Working voltage on V+ 12 to 60 VDC: to read back outputs to corresponding DI.
6 to 60 VDC: without read back.
Working current on V+ Maximum: 200 mA
Voltage per output Maximum: 60 VDC (depending on V+)
Short-Circuit current Minimum: 0.2 A
Typical: 0.9A
Maximum: 1.2A
Impedance Typical: 1 ohm
Maximum: 10 ohms
Protection
Protection diode Protection against inverted voltage when working with inductive load
WARNING: when the output is connected to a DC relay
driving an AC relay, the AC relay must be protected with a RC
circuit
Over load Maximum: 60 VDC
Reverse voltage Maximum: 55 VDC
Short-Circuit + Over load Thermal protection with automatic recovery
CABLING - INPUTS
1 NC
1
+12 .. 60 VDC
2 Input 0
2
3 Input 1
3
4 Input 2
4
5 Input 3
5
Group A 6 6 Input 4
7 Input 5
7
8 Input 6
8
9 Input 7
9 10
0V 10 V-
1 NC
1
+12 .. 60 VDC
2 Input 8
2
3 Input 9
3
4 Input 10
4
5 Input 11
5
Group B
6 Input 12
6
7 Input 13
7
8 Input 14
8
9 Input 15
9 10
0V 10 V-
V+ Input x
V- V-
V+ R: 1 k (12 VDC) V+
10 k (24 VDC)
R
Input x Input x
V- V- V- V-
Sensor Input x
V-
V+ V+
Input/Output x
V- V-
1. Manual activation of the Output: as long as the button is pressed, the output is forced
2. Activation of the Output during a time determined in the Program. You maintain the
button until it is detected by the program and has switched the output.
CABLING - OUTPUTS
1 V+
1
+12 .. 60 VDC
2 Output 0
2
3 Output 1
3
4 Output 2
4
5 Output 3
5
Group A
6 6 Output 4
7 Output 5
7
8 Output 6
8
9 10
9 Output 7
0V 10 V-
1 V+
1
+12 .. 60 VDC
2 Output 8
2
3 Output 9
3
4 Output 10
4
5 Output 11
5
Group B
6 Output 12
6
7 Output 13
7
8 Output 14
8
9 Output 15
9 10
0V 10 V-
TECHNICAL SPECIFICATIONS
General
Quantity 8 digital inputs
4 digital outputs
3 analog inputs (14 bits)
Replacement Hot insertable/removable. There is no risk to damage hardware,
but a reset is required.
Consumption 40 mA
Test Automatic test of the access of the card by the CPU
(See LED ‘CS’ below)
LED
Individual LED corresponding to the activation of each digital input or output.
By software, possibility to disable the LED to save energy
CS Card Selection: the card corresponds to a card declared in TWinSoft.
ER Error: The type of the card does not correspond to the one declared
in TWinSoft.
Isolation
2 groups isolated: Group of 8 inputs and group of 4 outputs isolated
Level of isolation: 1500 Vrms
- between group
- between Inputs and ground
- between Inputs and earth
1 group not isolated Group of 3 analog inputs non isolated
Temperature
Storage -40° to 70 °C
Working (ambient) Standard: -5°C to 50°C
Ruggedized: -20 °C to 70 °C
Hygrometry 15 to 95 % without condensation
Dimensions
Without connector Height x length x Depth: 150 x 83 x 29 mm
Weight 254 gr
8 x Digital Inputs
Voltage at input
Typical 24 VDC
Maximum for a LOW level 5 VDC
Minimum for a HIGH level 11 VDC
Maximum 60 VDC
Compatibility with type 1 and 2 of IEC61131-2
Current
Maximum at the input 2.0 mA at 30 VDC
4.5 mA at 60 VDC
Resistance 12 k
Sampling
Minimum period LOW – HIGH 20 msec – 20 msec.
Frequency (software) At each cycle of BASIC / Ladder
Protection
RC filter 1592 Hz
Voltage inversion Up to 55 VDC
Protection EMC
4 x Digital Outputs
Voltage / Current
Working voltage on V+ 12 to 60 VDC
Working current on V+ Maximum: 200 mA
Voltage per output Maximum: 60 VDC (depending on V+)
Short-Circuit current Minimum: 0.2 A
Typical: 0.9A
Maximum: 1.2A
Impedance Typical: 1 ohm
Maximum: 10 ohms
Protection
Protection diode Protection against inverted voltage when working with inductive load
Over load Maximum: 60 VDC
Reverse voltage Maximum: 55 VDC
Short-Circuit + Over load Thermal protection with automatic recovery
3 x Analog Inputs
General
Model 4..20 mA ; passive
Mode 4..20 mA
Range Typical: 4 mA to 24 mA
Minimum: 4 mA to 22 mA
Impedance Minimum: 21 ohms
Typical: 23.9 ohms
Maximum: 26.4 ohms
Value for LSB Typical: 2.935 µA
Digital Input
Validity input associated to Returns ‘0’ when signal < 2.4mA and > 21.6mA
each analog input Returns ‘1’ when the signal is valid.
Protection
Double RC filter fc=723 Hz and 135.6 Hz
Against voltage inversion Maximum: 30 V
Against over surge Maximum: 100 mA
Against short-circuit of the Maximum: 30 V
sensor
Precision
ADC converter 14 bits with successive approximations (13 bits + sign)
Error at 25 °C Maximum: +/- 0.47% Full Scale
Integral linearity Typical: +/- 2 LSB
Maximum: +/- 4 LSB
Differential linearity Typical: +/- 0.5 LSB
Maximum: +/- 2 LSB
Cabling
Twisted pair cable Maximum: 50 m
1 NC
1
+12 .. 60 VDC
2 Input 0
2
3 Input 1
3
4 Input 2
4
5 5 Input 3
Group A
6 Input 4
6
7 Input 5
7
8 Input 6
8
9 Input 7
9 10
0V 10 V-
V- V-
V-
V+ R: 1 k (12 VDC) V+
10 k (24 VDC)
R
Input x Input x
V- V- V- V-
1 V+
1
+12 .. 60 VDC
2 Output 0
2
3 Output 1
3
Group B
4 Output 2
4
5 Output 3
0V 5
6
7
8
9 10 6 V-
1
2
3
Group C
4
5
6
4..20 mA
7 Input 0
7
4..20 mA
8 Input 1
8
4..20 mA
9 Input 2
9 10
0V 10 Gnd
+ - IN x Measure
SENSOR Protection
10 Ω
GND
IN x Measure
Protection
+
SENSOR 10 Ω
-
GND
8 x -10..+10V; -20..+20mA
TECHNICAL SPECIFICATIONS
General
Quantity 8 analog inputs
Signals: - for the 8 inputs Choice between: –10..+10V OR –20..+20mA (see cabling)
- for 2 of the 8 inputs Supplementary choice between Pt100 OR Pt1000 2 wires (see cabling)
No hardware or software configuration is required
Resolution 14 bits
Mode Bipolar
Model (for current/voltage) Passive input: sensor and input stage powered by an ext. power supply
Precision: - Current 5 µA
- Voltage 2.5 mV
- Temperature 1 °C
Time of measurement:
- Current 1 msec
- Voltage 1 msec
Input Impedance: - Current Maximum: 26.4 Ω
- Voltage Minimum: 100 kΩ
Consumption Tbd
Replacement Hot insertable/removable. There is no risk to damage hardware, but
a reset is required.
Test Automatic test of the access of the card by the CPU
(See LED ‘CS’ below)
Protection
Current input Protection against voltage (max. 30 VDC)
Voltage input No specific protection. High impedance is a protection
Temperature input NO protection. Be careful not to apply voltage.
Isolation
1 group isolated Isolation by group of 8 inputs
From the Ground Isolation from the CPU ground and the earth
Level of isolation 1500 Vrms
between group; between Inputs and ground; between Inputs and earth
Digital Input
Validity input associated to Returns ‘0’ when signal < 2.4mA and > 21.6mA
each analog input 4..20mA Returns ‘1’ when the signal is valid.
LED
CS Card Selection: the card corresponds to a card declared in TWinSoft.
ER Error: The type of the card does not correspond to the one declared in
TWinSoft.
Temperature
Storage -20°C to 70°C
Working (ambient) Standard: -5°C to 50°C
Ruggedized: -20°C to 70°C
Hygrometry 15 to 95 % without condensation
Dimensions
Without connector Height x Length x Depth: 150 x 83 x 29 mm
Weight 300 g
1 Input 0 - Temperature
1
2 Input 0 - Voltage
2
3 Input 0 - Current
3
Group A 4 Input 1 - Voltage
4
5 Input 1 - Current
5
6 Input 2 - Voltage
6
7
7 Input 2 - Current
8 Input 3 - Voltage
8
9 Input 3 - Current
9 10
0 V (of sensors) 10 V-
1 Input 0 - Temperature
1
2 Input 0 - Voltage
2
3 Input 0 - Current
3
5 Input 1 - Current
5
6 Input 2 - Voltage
6
7 Input 2 - Current
7
8 Input 3 - Voltage
8
9 Input 3 - Current
9 10
0 V (of sensors) 10 V-
Isolation is global.
It means both V- are connected
together and must be cabled to
the same reference.
2 or 3 wires
TECHNICAL SPECIFICATIONS
General
Quantity 8 temperature inputs
Signals Choice between Pt100, Pt1000, Ni100, Ni1000
2 wires or 3 wires
The selection of the probe is done by the cabling used. No hardware or
software configuration is required
Resolution 15 bits
Precision
- Ni100, Pt100 0.1 °C
- Ni1000, Pt1000 0.1 °C
Filter 1 sec
Maximum length of cable 100 m
Maximum resistance of the 20 Ω
cable
Replacement Hot insertable/removable. There is no risk to damage hardware, but
a reset is required.
Test Automatic test of the access of the card by the CPU
(See LED ‘CS’ below)
LED
CS Card Selection: the card corresponds to a card declared in TWinSoft.
ER Error: The type of the card does not correspond to the one declared in
TWinSoft.
Isolation
Between channel Non isolated
Channel to Ground/Earth Non isolated
Temperature
Storage -20°C to 70°C
Working (ambient) Standard: -5°C to 50°C
Ruggedized: -20°C to 70°C
Hygrometry 15 to 95 % without condensation
Dimensions
Without connector Height x Length x Depth: 150 x 83 x 29 mm
Weight 300 g
Description: Description:
Cabling Probes 2 Wires Cabling Probes 3 Wires
Group A
1
Gnd
1
Gnd
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9 10
9 10
Gnd Gnd
Group B 1
Gnd
1
Gnd
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9 10
9 10
Gnd Gnd
There is no isolation.
TECHNICAL SPECIFICATIONS
General
Quantity 4 analog outputs
Signals
- for each output Choice between 4..20ma OR –10V..+10V
The selection of the signal is done by the cabling used. No hardware or
software configuration is required
ADC converter 12 bits, bipolar
Mode
- Current Active mode. Supplies a nominal voltage of 24 VDC.
Full Range
- Current 0 to 20mA
- Voltage -10V to +10V
Resolution
- Current 12 bits
- Voltage 11 bits + sign
Precision
- Current 5 µA
- Voltage 5 mV
Reactivity
- Current 25 msec
- Voltage 1 msec
Load impedance limit Resistance of the actuator:
- Current ≤ 1000 Ω : gives a drop of 20 V, maximum allowed.
- Voltage > 3000 Ω : gives a current of 3.33 mA, maximum allowed.
Consumption Tbd
Replacement Hot insertable/removable. There is no risk to damage hardware, but
a reset is required.
Test Automatic test of the access of the card by the CPU
(See LED ‘CS’ below)
Digital Input
Validity input associated to Returns ‘0’ when signal < 2.4mA and > 21.6mA
each analog output 4..20mA Returns ‘1’ when the signal is valid.
LED
CS Card Selection: the card corresponds to a card declared in TWinSoft.
ER Error: The type of the card does not correspond to the one declared in
TWinSoft.
Isolation
4 channels isolated Isolation one by one
From the Ground Isolation from the CPU ground and the earth
Level of isolation 500 Vrms between each output
1500 Vrms between each output and earth
Temperature
Storage -20°C to 70°C
Working (ambient) Standard: -5°C to 50°C
Ruggedized: -20°C to 70°C
Hygrometry 15 to 95 % without condensation
Dimensions
Without connector Height x Length x Depth: 150 x 83 x 29 mm
Weight 300 g
1 No connection
1
2 Output 0 : 4..20mA (+)
2
3 Output 0 : 4..20mA (-)
3
Group A 4 Output 0 : -10V..+10V (+)
4
5 5 Output 0 : -10V..+10V (-)
6 Output 1 : 4..20mA (+)
6
10 No connection
1 No connection
1
10 No connection
OUT+
+
Actuator
-
24 V OUT-
Feedback
OUT+
+
Actuator
-
OUT-
TECHNICAL SPECIFICATIONS
General
Quantity 8 outputs
Consumption Tbd
Replacement Hot insertable/removable. There is no risk to damage hardware, but
a reset is required.
Test Automatic test of the access of the card by the CPU
(See LED ‘CS’ below)
LED
CS Card Selection: the card corresponds to a card declared in TWinSoft.
ER Error: The type of the card does not correspond to the one declared in
TWinSoft.
Voltage
With DC Max: 30 Vdc at 3A
With AC Max: 250 Vac
Current
DC 3A
AC 3A
Operating live
At full resistive load 100000 operations
Protection
To an external relay When the relay drives an external relay, the latter must be protected
with a diode (if DC relay) or a RC circuit (if AC relay)
Isolation
Individual Each relay is totally isolated from the rack and other relays .
Voltage of isolation: 3 KV
Temperature
Storage -20°C to 70°C
Working (ambient) Standard: -5°C to 50°C
Ruggedized: -20 °C to 70 °C
Hygrometry 15 to 95 % without condensation
Dimensions
Without connector Height x Length x Depth: 150 x 83 x 29 mm
Weight 300 g
1 Load 0
1
2 Load 0
2
Group A 1 Load 1
1
2 2 Load 1
1 Load 2
1
2 Load 2
2
1 Load 3
1
2 Load 3
2
1 Load 4
1
2 Load 4
2
1 Load 5
1
Group B
2 Load 5
2
1 Load 6
1
2 Load 6
2
1 Load 7
1
2 Load 7
2
4..20 mA
TECHNICAL SPECIFICATIONS
General
Quantity 4 analog inputs
Signal 4..22 mA
Resolution 14 bits
Mode unipolar
Precision Tbd
Time of measurement 1 msec
Input Impedance Maximum: 26.4 Ω
Input Voltage on input Maximum: 6 VDC
Consumption Tbd
Replacement Hot insertable/removable. There is no risk to damage hardware, but
a reset is required.
Test Automatic test of the access of the card by the CPU
(See LED ‘CS’ below)
Digital Input
Validity input associated to Returns ‘0’ when signal < 2.4mA and > 21.6mA
each analog input Returns ‘1’ when the signal is valid.
LED
CS Card Selection: the card corresponds to a card declared in TWinSoft.
ER Error: The type of the card does not correspond to the one declared in
TWinSoft.
Isolation
Each input Isolation one by one
From the Ground Isolation from the CPU ground and the earth
Level of isolation 500 Vrms
- between group
- between Inputs and ground
- between Inputs and earth
Protection
Polarity Protection against inversion of polarity
Voltage Protection against voltage applied at input (MAX: 30 VDC – 50 mA)
Temperature
Storage -20°C to 70°C
Working (ambient) Standard: -5°C to 50°C
Ruggedized: -20 °C to 70 °C
Hygrometry 15 to 95 % without condensation
Dimensions
Without connector Height x Length x Depth: 150 x 83 x 29 mm
Weight 300 g
CABLING – ISOLATED AI
RS485 / RS232 cabling is the same as for RS232 and RS485 of MS-SERIAL (see chapter 18.17)
TECHNICAL SPECIFICATIONS
General
Consumption Tbd
Replacement Hot insertable/removable. There is no risk to damage hardware, but
a reset is required.
Test Automatic test of the access of the card by the CPU
(See LED ‘CS’ below)
LED
CS Card Selection: the card corresponds to a card declared in TWinSoft.
ER Error: The type of the card does not correspond to the one declared in
TWinSoft.
Modem PSTN
Description Modem for Switched Telephone Network (public or private)
WARNING: does not work on galvanic lines, or lines without power.
Speed 300 bps … 56.000 bps
Mode ITU-T : V21, V23, V22, V22bis, V32, V32bis, V34, V90
Bell 103 and Bell 212A
Compression 42bis LAPM, MNP2-5
Standards Conform to CTR21
Other characteristics Caller ID
Line detection (test if other communication active on the line)
Auto fallback
Connectors RJ12 or screw connector
Isolation 1500 Vrms
Protection Against overvoltage
Warning : an external surge protector is still required
RS232 – RS485
Mode RS232 or RS485 (no simultaneous use of both modes)
Isolation No isolation. Gnd is linked to earth by internal connection
RS232 Signals: RxD, TxD, CTS, RTS, DTR, DSR, DCD, RI
Connector: 9 pin Sub-D (male)
RS485 • 2 wires (A+ and B-) for multi-points connection
• No need for termination resistor (failsafe bias resistors included:
pullup and pulldown resistors which assures a logical level TRUE
when A and B are open or in short circuit)
• Number of slaves: 256 (if RS485 technology of slaves allows it too)
• Screw connector: female with a step of 5.08 mm
LEDs RxD Indicate reception of data
(common to 2 ports) TxD Indicate transmission of data
Temperature
Storage -20°C to 70°C
Working (ambient) Standard: -5°C to 55°C
Ruggedized: -20°C to 70°C
Hygrometry 15 to 95 % without condensation
Dimensions
Without connector Height x Length x Depth: 150 x 83 x 29 mm
Weight 300 g
RS485 / RS232 cabling is the same as for RS232 and RS485 of MS-SERIAL (see chapter 18.17)
TECHNICAL SPECIFICATIONS
General
Consumption Tbd
Replacement Hot insertable/removable. There is no risk to damage hardware, but
a reset is required.
Test Automatic test of the access of the card by the CPU
(See LED ‘CS’ below)
LED
CS Card Selection: the card corresponds to a card declared in TWinSoft.
ER Error: The type of the card does not correspond to the one declared in
TWinSoft.
Modem GSM/GPRS
Frequencies TRI-BAND : EGSM900 / DCS1800 / PCS1900 MHz
GPS receiver
Provides an clock with absolute value (UTC) with high
precision (<1ms), without drift of time.
Allows synchronizing in datalogging.
Allows vertical and horizontal positioning of a mobile
equipment.
RS485 / RS232 cabling is the same as for RS232 and RS485 of MS-SERIAL (see chapter 18.17)
General
Consumption Tbd
Replacement Hot insertable/removable. There is no risk to damage hardware, but
a reset is required.
Test Automatic test of the access of the card by the CPU
(See LED ‘CS’ below)
LED
CS Card Selection: the card corresponds to a card declared in TWinSoft.
ER Error: The type of the card does not correspond to the one declared in
TWinSoft.
GPS Receiver
General L1 (1575 MHz), C/A code, 12 channels, continuous tracking receiver
Precision: position 3 m CEP (SA off)
clock 500 ns (SA On)
Acquisition: Cold start < 60 sec
Warm start < 3 sec
Antenna connector Active antenna: SMA compatible
Power delivered by the card : 3 to 3.6 VCC
Synchronization
Internal Generates an internal clock signal every 1 ms (precision 200 µs)
Output Open collector, to synchronize to other TBOX MS
Frequency : 1 sec.
Precision : 200 µs.
To CPU-16 Synchronization from the digital input
Tick of the CPU-16 : 10 ms (used for time stamping)
Global precision : 25 ms
To CPU-32 Synchronization from the BUS
Tick of the CPU-32 : 1 ms (used for time stamping)
Global precision : 1 ms
LED RxD, TxD, Lock (validity of the GPS signal received)
Output 1 Hz
RS232 – RS485
Mode RS232 or RS485 (no simultaneous use of both modes)
Isolation No isolation. Gnd is linked to earth by internal connection
RS232 Signals: RxD, TxD, CTS, RTS, DTR, DSR, DCD, RI
Connector: 9 pin Sub-D (male)
RS485 • 2 wires (A+ and B-) for multi-points connection
• No need for termination resistor (failsafe bias resistors included:
pullup and pulldown resistors which assures a logical level TRUE
when A and B are open or in short circuit)
• Number of slaves: 256 (if RS485 technology of slaves allows it too)
• Screw connector: female with a step of 5.08 mm
LEDs RxD Indicate reception of data
(common to 2 ports) TxD Indicate transmission of data
Temperature
Storage -20°C to 70°C
Working (ambient) Standard: -5°C to 50°C
Ruggedized: -20°C to 70°C
Hygrometry 15 to 95 % without condensation
Dimensions
Without connector Height x Length x Depth: 150 x 83 x 29 mm
Weight 300 g
2 x Serial Ports
General
Consumption Tbd
Replacement Hot insertable/removable. There is no risk to damage hardware, but
a reset is required.
Test Automatic test of the access of the card by the CPU
(See LED ‘CS’ below)
LED
CS Card Selection: the card corresponds to a card declared in TWinSoft.
ER Error: The type of the card does not correspond to the one declared in
TWinSoft.
RS232 – RS485
Quantity 2 ports
Mode RS232 or RS485 (no simultaneous use of both modes)
Baudrates (bps) 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200
Data bits 7, 8
Parity none, even, odd, mark (parity bit=1), space (parity bit=0)
Stop bits 1, 1.5, 2
Isolation No isolation. Gnd is linked to earth by internal connection
RS232 Signals: RxD, TxD, CTS, RTS, DTR, DSR, DCD, RI
Connector: 9 pin Sub-D (male)
RS485 • 2 wires (A+ and B-) for multi-points connection
• No need for termination resistor (failsafe bias resistors included:
pullup and pulldown resistors which assures a logical level TRUE
when A and B are open or in short circuit)
• Number of slaves: 256 (if RS485 technology of slaves allows it too)
• Screw connector: female with a step of 5.08 mm
LEDs RxD Indicate reception of data
(common to RS232 and RS485) TxD Indicate transmission of data
Temperature
Storage -20°C to 70°C
Working (ambient) Standard: -5°C to 50°C
Ruggedized: -20°C to 70°C
Hygrometry 15 to 95 % without condensation
Dimensions
Without connector Height x Length x Depth: 150 x 83 x 29 mm
Weight 300 g
RS 485
1
Gnd
2
B-
3
Cabling several CPU
together:
A to A A+
B to B 1
2 Gnd
Gnd to Gnd
B-
3
A+
1
Gnd
2
B-
3
1. DCD (input)
1 2. RxD (input)
6 3. TxD (output)
4. DTR (output)
5. Gnd
9
5 6. DSR (input)
7. RTS (output)
8. CTS (input)
9.
Cabling to a PC
TBOX MS - COM1 PC - DB 9
RxD 2 2 RxD
TxD 3 3 TxD
GND 5 5 GND
RTS 7 7 RTS
CTS 8 8 CTS
In order to find the best way for you we offer different possibilities:
The TBOX MS is equipped with a RTC chip (Real Time Clock). The RTC is used to manage all
internal time.
UTC Time
UTC time is based on the number of seconds since 1/1/1970 at Greenwich latitude. It is used as
internal timestamp to each event (alarm, chronology, …)
The UTC time is converted in Special Analog Registers to give access to time information:
second, minute, hour, day, month, year.
Changing UTC time automatically updates the RTC.
When time information is sent (in a report, as header of an e-mail, in the Analog special
register), it is always computed using the UTC time, according to the time settings in the
‘General’ RTU properties.
In order to set TBOX MS to PC time, an option is available in the 'Communication' menu of the
main menu bar.
When connected to TBOX MS (locally or remotely), the option is available. By clicking the
option, the RTU is set to the time of the PC.
Check afterwards in the 'RTU Identification' option, also part of the 'Communication' menu.
When installed in regions using winter/summer time, the TBOX MS is able to manage
automatically the changing.
It means that the RTC and Analog special register [hour] are automatically updated when the
time changes.
In chronologies, the time is recorded for each log of data. The time recorded is the UTC time.
When retrieving the data, the PC reads the UTC time and converts it according to the local time
of the PC, depending on the Time settings of the PC.
When a winter/summer time changing happens, the TBOX MS is informed of it and updates
automatically all timestamps following the changing.
Sampling tables
In sampling tables, the TBOX MS records the timestamp of the last record only. The other
timestamps are built up when retrieving the data.
A choice had to be made between: either having always the same period of recording or having
always the same 'hour' of recording. The latter has been chosen. When a changing
winter/summer time happens, the target time is automatically updated for sampling tables
having a period > 1 hour.
Example:
If recording a value once a day at 6.00 in the morning, the recording will always happen at
6.00, but when changing from winter to summer, the period will be of 23 hours and when
changing from summer to winter the period will be of 25 hours.
Periodic events
When a periodic event is defined with a period > 1 hour, its target time is automatically
adjusted when a changing winter/summer happens.