Académique Documents
Professionnel Documents
Culture Documents
With four internal words (%MWk:4), parameters identify the address of the PL7 data used to monitor the
communication functions.
The first two words %MWk and %MWK+1 are managed by the system. You will be in charge of managing the
last two words %MWk+2 and %MWk+3.
Structure
Activity bit
This bit corresponds to %MWk:x0. It signals the state of the application of the communication function.It is
set at 1 whilst started and drops back down to 0 at the end of its execution.
Number of exchange
During the sending of a communication function, the system automatically assigns it a number, allowing the
identification of the exchange. This number allows the exchange in progress to be stopped if necessary (by the
functions intermediary CANCEL ).
_____________________________________________________
Introduction
Communication report
This report is common to all functions. It is significant when the value of the activity bit changes from 1 to
0.The reports with a value between 16#01 and 16#FE concern the errors detected by the processor that has
started the function. The different values of this report are indicated in the following table:
Note: The function can detect an error in the parameters before activating the exchange. In this case the
activity bit remains 0, the report is initialized with the values corresponding to the default.
Operation report
This report byte, which is specific to each function, specifies the effect of the operation on the remote
application.It is only significant if the communication report has the values:
16#00 (correct exchange),
16#FF (message refused).
If the communication report has the value 16#00, the operation report has the following values:
If the communication report has the value 16#FF, the operation report has the following values:
Caption :
(*) Code uniquely managed by PCMCIA cards TSX FPP20 et TSX FPP10
_____________________________________________________
Introduction
These two parameters are dependant upon you.
Length
The length parameter is used both to specify the number of characters (in bytes) to send when sending a
message and to store the number of characters (in bytes) received upon the receipt of a message. Each time
before starting certain communication functions SEND_REQ, DATA_EXCH , PRINT_CHAR ,SEND_TLG you must
update the length parameter.
Note: For a functionPRINT_CHAR for example, the length parameter %MWk+3 must contain the number of
octets (characters) to be sent before sending a message. After sending the characters, it contains the number
of characters sent in the form of a communication report. If another function, which has a differing amount of
bytes to be sent from the preceding function, uses the same report table during the application, you must
initialize %MWk+3 with the new number of bytes to be sent. If not %MWk+3 maintains the number of bytes
sent by the preceding function.
Timeout
Timeout determines the maximum waiting time for a response. The time base for this parameter is 100 ms
(value 0 corresponds to an infinite stand by value).If timeout has elapsed, the exchange finishes with an error
report, in the same way the receipt of a response is refused by the system after the end of timeout.