Académique Documents
Professionnel Documents
Culture Documents
Support
The following pages provide valuable information when developing, analyzing
and monitoring TBox features:
LEDs……………………………………………………..12
License .…………………………………………………16
RTU identification……………………………………… 19
Global Reset…………………………………………… 23
Trace Log………………………………………………. 24
GSM: monitoring with communication variables…… 33
GSM: testing communication with PING addon……. 35
Datalogging tools……………………………………….44
Alarms tools……………………………………………. 61
Report: test generation of report…………………….. 67
TCP/IP debugging……………………………………...78
ModBus communication tool…………………………. 89
Ladder tools…………………………………………… 99
BASIC tools……………………………………………107
Pack & Go, Plug & Go………………………………. 120
Monitor32………………………………………………136
2
TBox is a RTU offering a wide range of possibilities in various applications,
only depending on people ’s imagination.
TBox is an open system. It provides all the tools to control a process, locally
as well as remotely, to generate alarms, to carry on multiple communication, to
log data, …
It can be used in any kind of applications: Water, Oil & Gaz, Electricity,
Railways, Buildings, Street Lightning, Tunnels, Irrigation, Power generators,
Refrigerators, … and is the ideal solution to monitor unmanned sites.
3
4
Example:
Power Supply
I/O
CPU Ethernet Switch
Modem 3G
5
6
7
The power of
MS-CPU32
in a single rack
LT2-530 16 3 8 - -
LT2-532 16 3 8 - 2
LT2-540 16 3 6 2 -
LT2-542 16 3 6 2 2
LT2-562 24 3 1 - 1
8
All communication power of
Tbox in a single box
9
Years of data without
maintenance
10
To Monitor RM2 module(s)
from a TBox, you use
‘ModBus Transactions’.
RM2-530 16 3 8 - -
RM2-532 16 3 8 - 2
RM2-540 16 3 6 2 -
RM2-542 16 3 6 2 2
RM2-562 24 3 1 - 1
11
LED status during start-up sequence with LT2, TG2 and MS-CPU32 - Led: color (freq)
Steps MS-CPU32 -LT2 (-TG2)/MS-CPU32-S2
Other Status:
Status MS-CPU32 MS-CPU32-S2 -LT2 (-TG2)
12
TWinSoft Suite is free !
Upgrades too !
13
14
TWinSoft runs without license,
but it is required to send a
program to the TBox on site.
The license is unlimited in time.
RTU
Properties
Resources
Tags
ModBus
Alarms Datalogging Process
Transactions
WebForm Report
15
RTU indentification:
TBox running in
« Evaluation mode »
16
17
18
Press <Ctrl+Alt+O> to toggle
communication
19
20
21
To open/close Compilation
‘Results’ window, press
<Alt+2>
Compilation results:
22
It is possible to convert a
model of TBox into another
one in the same family
(see TWinSoft Tools)
23
24
25
TBox handles automatically
day light saving. Current
setting available as a Digital
System Variable.
RTU properties are available from the Tool bar or from the menu bar: ‘File’ -> ‘RTU
properties’.
26
Look at the LED of each
communication port to check
their communication status.
27
28
Look at the LED ‘CS’ to
check the cards have been
detected by the CPU.
29
Each card is divided in
Groups
30
To create multiple Internal
Variables automatically
indexed, use Copy/Paste
31
For IP (3G/GPRS, …) configuration, you have to update the “apn” in the init. field:
Example:
32
33
34
Example: Pinging GOOGLE DNS address
35
Export and Import of Tags
allow manipulating Tags with
external editor (.cvs, .txt)
36
From the list of Tags, right
click a Tag and select its
display format:
decimal, hexa, …
37
38
Any changing in the
program must be sent to the
RTU
Send Program
Modbus Address
39
Digital Chronologies
Analog Chronologies
40
Recording in Chronologies
can be launched from
BASIC/Ladder.
Ideal to debug process.
Handling:
Enabled: always recorded.
Disabled: never recorded.
PowerF: recording disabled in case of main power failure (see RTU
advanced properties)
DisCRD/DisCRA: recording disabled when the system variable
‘DisCRD’ or ‘DisCRA’ is at 1.
Digital Analog
41
The Sampling Tables.
Sampling tables use ‘Periodical’ recording (minimum period = 1
second).
Recording in Sampling tables happens at regular intervals and does
not depend on signal variations; it uses the clock of the CPU to
determine the recording.
Only the date and time of the last recording are stored, and therefore,
Sampling Tables require less memory than chronologies do.
Previous time stamps are rebuilt while sending based on the period
and the last time stamp.
42
Type of recording
TBox is able to execute calculations on a minimum time base of 1 second. The
result of the calculation is written in the sampling table after the selected period.
The value can be:
Minimum: minimum value during the period.
Maximum: maximum value during the period.
Average: average value calculated during the period. For each period a new
average is calculated.
Instantaneous: value at the moment of the recording.
Incremental: TBox records the difference between the current value and the
value at the moment of previous recording.
Trigger:
When used, there are 2 options:
- Synchronize each sample on external trigger
Trigger Frequency must fit with an existing period. Downloading and
therefore rebuild of database is carried out based on the period selected.
- No sampling when trigger = 0
Table is reset and recording activated at the rising of the Tag Trigger
TBox records the timestamp of the last record ONLY. When generating
data, upon request it then rebuilds the previous timestamps using the period.
43
MS-CPU16, -LITE
Chronologies +
Stack of Events
Sampling Tables
MS-CPU32, -LT2
44
Export to .csv, .txt
45
46
In TBox we use alarms to carry on sending out of data. According to
the type of recipient it requires a dial-up modem or an IP connection.
Once the connection is established, data transfer is possible: SMS, e-
mail, FTP, ...
Condition:
The ‘alarm condition’ will activate the connection. It is a Tag that can be
the result of a complex Ladder/BASIC process.
Recipient:
Mobile number, e-mail address, FTP directory, SCADA, tel. number, …
Data:
Message or report that may include historical data.
Acknowledgment:
Here we consider if an alarm has successfully been transmitted by
TBox. There is NO relation with the condition that generates the
alarm.
47
48
49
50
51
Modbus-Slave connection:
TBox dials an equipment, and further doesn’t do anything else. The
control over the communication is taken by the Master which will
further handle the modem connection , sample, acknowledge and
finally will hang up communication.
Example: Dialing TView
Modbus-Master connection:
TBox dials another equipment (typically another TBox), and samples
variables (using Remote tags).
The TBox dialing will be responsible for hanging up (automatic or
manual using communication variables) and for acknowledgment
(using system variables).
52
53
54
55
56
When working with a group of recipients
Chain: (‘Call all recipients’ unchecked)
If TBox fails to send the alarm, it dials the following recipient
If not in the ‘time table’ of the recipient, it tries the next one in the list.
57
58
TBox : The
RTU is in
mode AUTO
59
60
61
Start Timestamp : Moment that the alarm condition appears ( it is the trigger + time defined by
the filter)
End Timestamp : Moment that the alarm condition disappears.
When there is no ‘notify end of alarm’ condition selected, ‘auto ack’ is immediately filled.
End Ack.
condition
62
63
Dynamic objects Attachments, URL
Attachment file(s)
64
Double-
click
65
Advanced properties of the Report:
66
Example of testing the generation of
XML report using Firefox:
67
68
69
70
POP3 can be used to ack.
SMS, e-mail or monitor
TBox.
71
72
73
74
75
192.168.1.254
192.168.1.80
192.168.1.99
76
77
78
79
80
81
82
83
Example:
TBOX connected through Ethernet to a SCADA : Slave operation
TBOX connected through RS485 with other TBox(s): Master
operation.
84
Sequence for configuring ModBus transactions:
The configuration is done in the “Master”:
• From the ‘Resources’, add a remote device
You need to know its “Station address”, its configuration settings
• Make sure you have created the Tags you need to exchange data with
the Slave(s):
‒ Tags that will contain data read in the slave(s)
‒ Tags that you want to write to the slave(s)
• You go to the folder “ModBus Transactions” to associate Tags with a
remote device (=slave) and ModBus addresses of the variable of the
slave
• Any communication port can be used to execute Modbus transactions
85
All timing parameters can be
accessed from the Advanced
properties of the com. port
86
To communicate with
different conditions, you
create several Remote
Devices with different
Triggers
There are several Modbus functions according to the operation (read / write / analog /
digital / single / multiple). Check with the Remote device you will communicate with.
About the address:
This is the Modbus address of the variable in the remote device, from which you want to
read, or write to.
A read operation copies the value at the address in the remote device into the Tag
defined in the ModBus transaction.
A write operation copies the value of the Tag defined in the Modbus transaction to the
address of the variable in the remote device.
Those variables in the remote device do have their own Modbus addresses. Do not mix up
with ModBus addresses of the Tags of the TBox; there is no link.
Make sure you associate identical formats: Digital with Digital, Float with Float, …
87
Example:
Four transactions to exchange the following data between “Master” and “Slave”
Read
6 x internal “Int” or “Word” 6 x addresses of Time Variables
Read
8 x internal “Digital” 8 x addresses of Digital Inputs
Write
8 x Digital Inputs 8 x addresses of Digital Outputs
Read
8 x internal “Float” 4 x addresses of Analog Inputs
88
ModBus
telegram
89
Tag Digital
(Internal Variable)
90
91
TWinSoft Login Window
92
93
94
Take a look at examples:
Start -> Programs ->
Semaphore -> Samples
95
Timing sequence in regards to Ladder/BASIC cycle:
- Reading digital and analog inputs and copy to internal variables
- Execution of the code and use of internal variables for digital and analog outputs
- Writing of internal variables to physical outputs
….
96
Functions
97
Input Contacts and Output Relays
98
99
100
Example with ‘Single Shot’ timer
101
102
103
104
During Basic edition, press
<F7> to open the list of Tags
105
Types available Types’ description
BOOL 1 bit – Digital
BYTE 8 bits – Unsigned
INTEGER 16 bits – Signed
WORD 16 bits – Unsigned
LONG 32 bits – Signed
DWORD 32 bits – Unsigned
SINGLE 32 bits - Float IEEE 754
Examples
Dim Temperature as Single
Dim input2 as Bool
Dim table[4] as Word
106
During Basic edition, press
<F8> to open the list of
Functions
Pressing <F8>:
107
108
109
Preset must be a constant, with time expressed in second.ms.
Example: 500 ms. is indicated 0.5
110
timerss (timer0, valid, 2.5)
if triggerpos(timer0_status) then
inc(counts)
endif
The Tag ‘valid’ activates the timer ‘timer0’ during 2.5 seconds.
111
112
To execute the program
one cycle at a time, use
Digital System Variables
[PrgEnb]=0 and [PrgOnc]=1
113
Global
Local
114
PID function blocks are
available in a library (PID.lib).
See PID documentation in
TWInSoft directory
115
116
117
118
119
120
121
122
123
124
Call your home page ‘index’.
It’ll make access easier as it
is known as default name by
IE.
125
126
To resize a WebForm, do not
maximize it.
Stretch it or use ‘Form
Properties’ Height and Width
Double-
click .twf
file
127
128
Press <Ctrl+E> to toggle
between Edit/ Simulation in
order to test the Script
Right-click: to
access « object
properties »
129
130
To resize a WebForm, select
in “.twa” object the properties
Layout
-> “Height” and “Width”
Double-
click .twa
file
131
132
It is not possible to simulate a
script. One has to send the page
into TBox and use the debugger of
your browser. For instance
“Firebug” with Firefox.
Open the
javascript editor
133
134
135
136
137