PMS request: STATUS
(Original Document)
At a Glance
This request is used to read the status of a device connected to the INTERBUS bus.
This request is carried out using the SEND_REQ communication function.
Syntax
The syntax of the communication function is presented in the following format:
SEND_REQ(ADDR('r.m.0.pcp'), 16#31, %MWi:L, %MWk:4, %MWj:L)
The following table describes the various parameters of the function.
Parameter
Description
ADDR('r.m.0.pcp')
Address of the destination entity of the exchange.
  • r.m: rack, module,
  • 0 : channel (always 0),
  • pcp: pcp channel number.
16#0F
Request code.
%MWi:L
Not used for the STATUS function (length = 1).
%MWk:4
Exchange management parameters: four words identifying the address of the Control Expert data used to control the STATUS function.
%MWj:L
Initialized with the status value of the INTERBUS slave: the buffer memory will have the same length as that of the status.
Management parameters
The following table gives details of %MWk:4 words.
Word number
Most significant byte
Least significant byte
Data managed by
%MWk
Exchange number
Activity bit
system
%MWk+1
Operation report
Communication report
%MWk+2
Timeout
you
%MWk+3
Length: initialization to 0 compulsory before the function is sent
Example of use
The example is as follows.
NOTE: It is necessary to initialize the length parameters before starting the function at 0.