GetSercosAddress Function
(Original Document)
Description
This function returns the SERCOS® address for this axis.
NOTE: This function only exists for real axes and remote axes.
NOTE: The SERCOS® address of an axis is also available in constant word %KWr.m.c.0 for the corresponding channel.
How to Use this Function
This function is implemented with the help of the WRITE_CMD instruction (see WRITE_CMD).
Associated Language Objects
Exchange via WRITE_CMD:The table below presents the different language objects linked to this function.
Object
Name
Function code
Description
%MWr.m.c.26
ACTION_CMD
549
Command
%MDr.m.c.20
RETURN_CMD_1
-
Result of the command (1)
%MDr.m.c.27
PARAM_CMD_1
-
Value to write (2)
%MWr.m.c.19
ERROR_CMD
-
Legend
(1) If Address = 25350: no axis configured at this address or invalid address.
(2) : This value corresponds to the index of the table of real axes present in the loop (0 = 1st axis, 1 = 2nd axis, etc.). This parameter is not necessary if the function is issued on the channel corresponding to the axis for which the address is requested.