RESTORE_PARAM_MX: Restoring the Parameters in Local Rack
Original instructions
Description
The RESTORE_PARAM_MX function is used to restore the new parameters of a module declared in Device DDT in the local rack. It performs an explicit exchange with the Modicon M580 CPU memory.
These parameters restore the values saved using SAVE_PARAM_MX.
The additional parameters EN and ENO can also be configured.
FBD Representation
LD Representation
IL representation
Representation:
CAL RESTORE_PARAM_MX_Instance (ENABLE:=Enable, ABORT:=Abort, ADDR:=Address, CHANNEL:=Channel, DONE=>OperationSuccessful, ACTIVE=>OperationActiv, ERROR=>FaultyOperation, STATUS=>Status, PARAM_LEN=>NumberOfParamWords, PARAM=>Param)
ST representation
Representation:
RESTORE_PARAM_MX_Instance (ENABLE:=Enable, ABORT:=Abort, ADDR:=Address, CHANNEL:=Channel, DONE=>OperationSuccessful, ACTIVE=>OperationActiv, ERROR=>FaultyOperation, STATUS=>Status, PARAM_LEN=>NumberOfParamWords, PARAM=>Param);
Parameter Description
The following table describes the input parameters:
Parameter
Data Type
Significance
Enable
Set to 1 to trigger the operation
Abort
Set to 1 to abort the currently active operation
Address
Array that contains the address result of ADDMX function (1) and identifies the rack which the module belongs to.
Channel
Identifies the channel to work on; it contains rack, slot and channel numbers (r.s.c)
(1) To address a module in the local rack, enter 0.0.10 (CPU main server address).
The following table describes the output parameters:
Parameter
Data Type
Significance
OperationSuccessful
Operation terminated successfully
OperationActiv
Operation active
FaultyOperation
Operation terminated unsuccessfully
Status
NumberOfParamWords
Number of parameter registers/words to read
Param
Parameter registers/words of the channel. Because, they are module-specific, refer to the module manual for a detailed description. A device DDT-type variable may be used