Version: 1.06 63
COMx.ModBusResp
0
Communication:
Reading ‘1’ indicates the port is transmitting. At
each transmission, TB
OX
MS SET this register.
To check TB
OX
MS is transmitting, you RESET this register and
test whether it is SET again (using Ladder or BASIC)
9.3.2. Analog 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.
* : Writable.
Example with COM6 – GSM modem
Name R/W Description
COMx.Level
*
Access Control:
access level of the user currently logged (see
chapter 17).
COMx.UserId
*
Access Control:
user Id of the user currently logged (see chapter
17).
The user Id and the authority level correspond to those you
have defined with the utility ' PASSWORD '.
The values returns to 0 when the user has disconnected.
Values can be written to those registers.
Example:
when a user is connected you can modify its level
access by writing a value in the register COMx.level (level
available: 0, 1, 2 or 3).
Those values can be stored in analog chronology for keeping a
history on the access.
When a user disconnects (Logout), the
register returns to '0
COMx.Timeout
*
Modem:
global time-out for hanging-up the modem when there
is no communication. Correspond to the ‘Inactivity time-out’ in
the ‘Advanced properties’ of the modem.
COMx.GPRSState
-
GPRS:
indicates the status of the GPRS connection.
Value=0 : disconnected
Value=1 : currently connecting
Value=2 : connected
Value=3 : currently disconnecting
(see above for more details)
COMx.IPAddress
-
GPRS:
this register gives the IP address used by TB
OX
MS
during its GPRS connection.
The information is available in a DWORD. To be interpreted, you
should compute this Tag with mask to read the 4 bytes
composing the IP address.