The MOD_TRACK function is used to adjust a dynamically. Transferring new data does not require the to switch to STOP. If the transfer is successful, the new parameters are taken into account by the module. If the transfer is not successful, the cam processor remains in RUN with the old values.
The MOD_TRACK function only affects the feedforward value of a track.
This function applies to a channel and therefore a variable type IODDT. We will use the variable Channel_0 of type T_CCY_GROUP0.
The exchange zone used by the MOD_TRACK function is a buffer made up of the reserved word: %MWr.m.0.16.
Loading the exchange zone
The exchange zone (buffer) can be preloaded:
-
with the initial feedforward values:
MOD_TRACK(Channel_0,0,Group,Track) action {Get}
-
with the current feedforward values:
MOD_TRACK(Channel_0,1,Group,Track) action {READ}
Sending the new values to the module
After modification in the buffer:
-
the function
MOD_TRACK(Channel_0,2,Group,Track) action {Send}
updates the track feedforward value in the module and in the current parameters zone.
Group: identifies the group number
Track: identifies the track number
Initializing the parameter buffer
{Get} action or {Read} action
For Group 0 Track 4
-
{Read}: MOD_TRACK(Channel_0,1,0,4)
-
{Get}: MOD_TRACK(Channel_0,0,0,4)
The execution of the MOD_TRACK function can be monitored via the channel status level.
{Send} action
For Group 0 Track 4:
During the transfer, the bit (x15) Adj_In_ Prog is set to 1.
At the end of the exchange, the Adjust_err bit is set to 1 if the exchange has not been successful. The READ_STS function is used to update the channel status.
It contains the following data:
-
Cod_Desc_Flt: error code found by the module in a track adjustment data item.
-
NUM_DESC_FLT: codes the track number containing a description error.
-
NUM_GROUP_FLT: codes the group number which contains the track containing a description error.
-
COD_LOCAL_FLT: indicates an error in the group number or track number.