DRV_DNLD: Download to SERCOSdrive
(Original Document)
Function Description
This function block downloads information to a SERCOS drive from the PLC.
Additional parameters EN and ENO may be configured.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
CAL DRV_DNLD_Instance (S:=DNLOAD_SA1, R:=Reset, SA_ID:=SA1,
    DATA_BLK:=DataDown, MFB:=MFB, IDN_CNT=>IDN_TOTAL)
Representation in ST
Representation
DRV_DNLD_Instance (S:=DNLOAD_SA1, R:=Reset, SA_ID:=SA1,
    DATA_BLK:=DataDown, MFB:=MFB, IDN_CNT=>IDN_TOTAL) ;
Parameter Description
Description of input parameters:
Parameter
Data Type
Meaning
S
Rising input starts the download to the drive.
R
BOOL
Resets block and prevents download (It halts the upload at the end of the current step).)
SA_ID
Axis ID for the SercosAxis to be downloaded.
DATA_BLK
ARRAY [1 .. n] OF UDINT
Array containing data to be downloaded (must be large enough to hold the amount of data to be downloaded).
Description of in-output parameters:
Parameter
Data Type
Meaning
MFB
Must be connected to the MMFStart block of 200 registers.
Description of output parameters:
Parameter
Data Type
Meaning
Q
BOOL
True when the download has completed (reset by R).
ERROR
INT
First error code that is generated during download.
IDN_CNT
UDINT
The actual number of IDNs successfully downloaded to the drive (may be different to the number attempted due to normal errors).
Example
When DNLOAD_SA1 turns on, the drive parameters are downloaded from DataDown to SA1. The value placed in IDN_TOTAL is the total numbers of IDNs that were downloaded to the drive.
Runtime Errors
For a list of all error codes and values of the block, refer to Tables of Error Codes for the Motion Library.