Management of Exchanges and Reports with Explicit Objects
(Original Document)
At a Glance
When data is exchanged between the PCL memory and the module, the module may require several task cycles to acknowledge this information. All IODDTs use two words to manage exchanges:
NOTE: Depending on the localization of the module, the management of the explicit exchanges (%MW0.0.MOD.0.0 for example)will not be detected by the application:
  • For in-rack modules, explicit exchanges are done immediately on the local PLC Bus and are finished before the end of the execution task. So, the READ_STS, for example, is always finished when the %MW0.0.MOD.0.0 bit is checked by the application.
  • For remote bus (Fipio for example), explicit exchanges are not synchronous with the execution task. So, the detection is possible by the application.
Illustration
The illustration below shows the different significant bits for managing exchanges:
Description of the Significant Bits
Each bit of the words EXCH_STS (%MW\2.e\0.m.c.0) and EXCH_RPT (%MW\2.e\0.m.c.1) is associated with a type of parameter:
NOTE: m stands for the position of the module; c stands for the channel number in the module.
NOTE: Exchange and report words also exist at module level EXCH_STS (%MW\2.e\0.m.MOD) and EXCH_RPT (%MW\2.e\0.m.MOD.1) in the IODDT type T_GEN_MOD.
Example
Phase 1: Sending data by using the WRITE_PARAM instruction.
When the instruction is scanned by the PLC processor, the Exchange in progress bit is set to 1 in %MW\2.e\0.m.c.
Phase 2: Analysis of the data by the I/O module and report
When the data is exchanged between the PLC memory and the module, processing by the module is managed by the ADJ_ERR bit (%MW\2.e\0.m.c.1.2): Report (0 = correct exchange, 1 = faulty exchange).
NOTE: There is no adjustment parameter at module level.
Execution Indicators for an Explicit Exchange: EXCH_STS
The table below shows the control bits of the explicit exchanges: EXCH_STS (%MW\2.e\0.m.c.0).
Standard symbol
Type
Access
Meaning
Address
STS_IN_PROGR
BOOL
R
Reading of channel status words in progress
%MW\2.e\0m.c.0.0
CMD_IN_PROGR
BOOL
R
Command parameters exchange in progress
%MW\2.e\0m.c.0.1
ADJ_IN_PROGR
BOOL
R
Adjust parameters exchange in progress
%MW\2.e\0m.c.0.2
RECONF_IN_PROGR
BOOL
R
Reconfiguration of the module in progress
%MW\2.e\0.m.c.0.15
NOTE: If the module is not present or is disconnected, explicit exchange objects (Read_Sts for example) are not sent to the module (STS_IN_PROG (%MWr.m.c.0.0) = 0), but the words are refreshed.
Explicit Exchange Report: EXCH_RPT
The table below shows the report bits: EXCH_RPT (%MW\2.e\0.m.c.1).
Standard symbol
Type
Access
Meaning
Address
STS_ERR
BOOL
R
Error in reading status words of the channel
(1 = failure)
%MW\2.e\0.m.c.1.0
CMD_ERR
BOOL
R
Error when exchanging command parameters
(1 = failure)
%MW\2.e\0.m.c.1.1
ADJ_ERR
BOOL
R
Error when exchanging adjustment parameters
(1 = failure)
%MW\2.e\0.m.c.1.2
RECONF_ERR
BOOL
R
Fault when reconfiguring the channel
(1 = failure)
%MW\2.e\0.m.c.1.15