Version: 1.06 62
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 TB
OX
MS.
9.3.1. Digital Communication Variable
According to its function a
Communication variable 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’.
Example with COM6 – GSM modem
Name R/W Description
COMx.NoReply
0
Communication:
SET by TB
OX
MS in case of communication
error. The possible errors are:
- Timeout.
- ModBus: Unknown address, wrong quantity, CRC error.
- TCP/IP: wrong closing of socket.
Must be RESET by the user.
COMx.OffHook
*
Modem:
Reading ‘1’, indicates the modem has picked-up the line
and it connecting to another modem.
The success of the connection can be checked from the next
‘Connect’ variables.
Writing ‘0’ or ‘1’ forces the modem to hang-up.
COMx.Call
-
Modem:
Reading ‘1’ indicates the modems are synchronized with
TB
OX
MS ‘Calling’
COMx.Answer
-
Modem:
Reading ‘1’ indicates the modems are synchronized with
TB
OX
MS ‘Answering’
COMx.NoDial
0
Modem:
Reading ‘1’ indicates that no dial tone has been detected
when the modem has picked-up the line.
Must be RESET by the user.
COMx.GPRSCon
*
GSM:
Indicates the status of the GPRS connection. Writing ‘1’
forces a connection; writing ‘0’ forces a disconnection (see above
for more details).