CALL_MODEM communication function. Schneider Electric PL7 Micro/Junior/Pro - Communication applications, volume 2
Hirdetés
Hirdetés
Modem Programming
CALL_MODEM communication function
Introduction
Syntax
The CALL_MODEM communication function is used to manage connection with the
TSX MDM 10 card.
l l
It provides the option to: l connect a line between a TSX MDM 10 card and another TSX MDM 10 card, or a remote third party modem, l disconnect a line which has been established or is in the process of being established, reset the TSX MDM 10 card if necessary (following a protocol error, for example), send AT commands.
The syntax of the CALL_MODEM communication function is presented in the following format:
CALL_MODEM (ADR#0.1.SYS, 1, %MB100:20, 0, 0, %MW256:4)
The following table describes the different parameters of the function:
Parameter
ADR#0.1.SYS
1
%MB100:20
0
0
%MW256:4
Description
Broadcast address: l l l processor slot: 0 or 1,
PCMCIA channel: 1, system channel.
Command
These bytes can contain two types of information: l l either a telephone number for the station called, or an AT command to be sent.
Connection options
Choice between Uni-telway master or slave mode
Activity bit, exchange report, length
100
TLX DS COM PL7 xxE
Modem Programming
Description of parameters
Parameter
Command
Telephone number or
AT command
Connection option
Uni-telway slave or master mode
See the following table:
Type
Word
Meaning l l l l value = 1: connection command, value = 2: disconnection command, value = 3: reset modem command, value = 4: AT command to be sent.
Byte table The table’s maximum size of 24 bytes is given by the last %MWk+3 management parameter (as shown in the example for %MW259 below).
If %MWk+3 = 0, the size is 24 bytes.
word word l l l l l l l l value = 0: connection in Uni-telway mode, with password, value = 1: connection in ASCII mode, with password, value = 2: connection in Uni-telway mode, without password, value = 3: connection in ASCII mode, without password, value = 4: connection in Uni-telway mode without character string transmission on connection request, value = 5: connection in ASCII mode without character string transmission on connection request.
value = 0: connection in Uni-telway slave mode, value not equal to 0: connection in Uni-telway master mode l byte 0 (least significant) corresponds to the number of slave addresses value = 1: for Ad0 l value = 2: for Ad0 and Ad1 byte 1 (most significant) corresponds to address Ad0 for the Uni-telway slave (from 1 to 98)
TLX DS COM PL7 xxE
101
Letöltés
Hirdetés