exchanges in progress. Schneider Electric Software PLC Application-Specific Functions, Micro/Junior/Pro, 4.5
إعلان
إعلان
Bits and words associated with the AS-i function
Managing exchanges: Module %MW4.MOD.0:Xj or channel %MW4.0.0:Xj exchanges in progress
At a Glance
Description
These word type objects carry information about the module or channel exchanges in progress.
They are updated automatically by the system.
The table below gives the meaning of the different bits of the word %MW4.MOD.0
.
Address
%MW4.MOD.0:X0
%MW4.MOD.0:X1
Meaning when Xj = 1
Exchange of status words in progress on the module channel.
Exchange of command words in progress on the module channel.
Description
Example
The table below gives the meaning of the different bits of the word %MW4.0.0
.
Address
%MW4.0.0:X0
%MW4.0.0:X1
Meaning when Xj = 1
Exchange of status words in progress on the AS-i channel.
Exchange of command words in progress on the AS-i channel.
The example below shows a possible use for this type of word.
(* Request for update of the status words of channel 0 *)
(* of the AS-i module if no exchange is in progress on this channel*)
IF NOT %MW4.0:X0 THEN READ_STS %CH4.0;
END_IF;
Note: When the period of the explicit exchange is shorter than the cycle time of the
PLC task, the bit %MW4.0:X0 never changes to 1.
TLX DS 37 PL7 xxE
151
Bits and words associated with the AS-i function
Managing exchanges: Module %MW4.MOD.1:Xj or channel %MW4.0.1:Xj report
At a Glance
Description
These word type objects contain information on the module or channel exchange reports.
They are updated automatically by the system.
The table below gives the meaning of the different bits of the word %MW4.MOD.1
.
Address
%MW4.MOD.1:X0
%MW4.MOD.1:X1
Meaning when Xj = 1
Status parameter exchange error on channel 0 of the module.
Command parameter exchange error on channel 0 of the module.
Description The table below gives the meaning of the different bits of the word %MW4.0.1
.
Address
%MW4.0.1:X0
%MW4.0.1:X1
Meaning when Xj = 1
Status parameter exchange error on AS-i channel.
Command parameter exchange error on AS-i channel.
Example The example below shows a possible use for this type of word.
(* Detection of a status error on the module *)
(* situated in slot 4 *)
IF NOT %MW4.MOD.0:X0 THEN READ_STS %CH4.MOD;
END_IF;
IF %MW4.MOD.1:X0 THEN SET %M100;
END_IF;
152
TLX DS 37 PL7 xxE
تنزيل
إعلان