TRF_RECIPE
(Original Document)
Reminder
This service is used to read or write variable speed controller parameters with the "real axis" function.
NOTE: This service is used both to read and to write cam profiles and to begin the execution of special functions (see information about these functions).
Syntax of TRF_RECIPE instruction
TRF_RECIPE (IODDT_Var, length, address %MW): transfers from the variable speed controller parameters, from the cam profile, or from the parameters of a special function into/from the table which begins with the address %MW. The length of this table to be transferred is defined by the length parameter. The action to be carried out is defined by the word %MWr.m.c.10 (ACTION_TRF).
Example: TRF_RECIPE (%CH1.4.3,10,100) (write variable speed controller parameters of real axis 3, of the module situated in position 4 of rack 1, in length table 10, which begins with the address %MW100).
TRF_RECIPE Interface
The command to be carried out is defined in the word %MWr.m.c.10 and the result of the command is available in the word %MWr.m.c.3 to %MWr.m.c.8.
Address
Type
Symbol
Meaning
%MWr.m.c.3
Word
ERROR_TRF
Write error of the TRF_RECIPE command
%MDr.m.c.4
Double word
RETURN_TRF_1
Return 1 of the function
%MFr.m.c.6
Floating point
RETURN_TRF_2
Return 2 of the function
%MFr.m.c.8
Floating point
RETURN_TRF_3
Return 3 of the function
%MWr.m.c.10
Word
ACTION_TRF
Action to be carried out
%MDr.m.c.11
Double word
PARAM_TRF_1
Parameter 1
%MDr.m.c.13
Double word
PARAM_TRF_2
Parameter 2
%MFr.m.c.15
Floating point
PARAM_TRF_3
Parameter 3
%MFr.m.c.17
Floating point
PARAM_TRF_4
Parameter 4
Actions Carried Out by TRF_RECIPE
The actions that can be carried out using the TRF_RECIPE service are:
Function
ACTION_TRF
(%MWr.m.c.10)
Meaning
Real axis (1)
16001
Write variable speed controller parameters to the PLC memory.
Real axis (1)
26001
Unwrite variable speed controller parameters from the PLC memory.
Legend
(1)
PARAM_TRF_1 to PARAM_TRF_4 = 0
Exchanges
Description
1
Write parameters in the saved memory (Real axis, WRITE_CMD)
2
Unwrite parameters from the saved memory (real Axis, WRITE_CMD)
3
Write parameters into the PLC memory (real Axis, ACTION_TRF = 16001)
4
Unwrite parameters from the PLC memory (real Axis, ACTION_TRF = 26001)