READ_STS: Reading status words. Schneider Electric Software PLC Application-Specific Functions, Micro/Junior/Pro, 4.5
Tangazo
Tangazo
Objects associated with specific applications
READ_STS: Reading status words
Introduction Status words contain information about the functioning state of the module or the channel.
The READ_STS instruction allows reading in the module (or in the built-in interface) of these kind of words. This reading updates the %MW status words .
These words can be used to carry out diagnostics by program.
Note: The status words are specific to each task. However, 2 words are used by l l all of the modules in the Micro range:
%MWy.MOD.2 (module level fault),
%MWy.i.2 (channel i level fault).
Illustration Writing instruction
Processor PLC
Objects %MWy.ir or %MWy.MOD.2
Status words READ_STS
E/S Module or interface built-in task
Status words
Syntax
Examples
38
The READ_STS instruction is defined in the following way :
READ_STS%CHy.i
The table below describes the different elements that are part of the instruction.
i
Element
READ_STS
%CH y
Description
Name of the instruction
Channel-type object
Module position.
Channel or MOD number.
The example below presents some examples of explicit exchanges using the
READ_STS instruction.
Object
READ_STS%CH2.1
READ_STS%CH1.MOD
Description
Reading the status words of channel 1, which is on the module situated in position 2.
Reading the status words of the module situated in position 1.
TLX DS 37 PL7 xxE
Pakua
Tangazo