Ä Chap. 14.2.22 ‘SFB 54 - RALRM - Receiving an interrupt from a periphery module’page 77714.2.21 SFB 53 - WRREC - Writing record setThe SFB 53 WRREC interface is identical to the FB WRREC defined inthe standard "PROFIBUS Guideline PROFIBUS Communication andProxy Function Blocks according to IEC 61131-3".With the SFB 53 WRREC (Write record) you transfer a record set with the number INDEXto a module that has been addressed via ID. Specify the byte length of the record set tobe transmitted. The selected length of the source area RECORD should, therefore, haveat least the length of LEN bytes. TRUE on output parameter DONE verifies that therecord set has been successfully transferred to the DP slave. The output parameterERROR indicates whether a record set transmission error has occurred. In this case, theoutput parameter STATUS contains the error information. System dependent this blockcannot be interrupted!The SFB 53 WRREC operates asynchronously, that is, processing covers multiple SFBcalls. Start the job by calling SFB 52 with REQ = 1. The job status is displayed via theoutput parameter BUSY and bytes 2 and 3 of output parameter STATUS. Here, theSTATUS bytes 2 and 3 correspond with the output parameter RET_VAL of the asynchro-nously operating SFCs (see also meaning of REQ, RET_VAL and BUSY with Asynchro-nously Operating SFCs). Please note that you must assign the same value to the actualparameter of RECORD for all SFB 53 calls that belong to one and the same job. Thesame applies to the LEN parameters. Record set transmission is completed when theoutput parameter BUSY = FALSE.ParametersParameter Declaration Data type Memory block DescriptionREQ INPUT BOOL I, Q, M, D, L,constantREQ = 1: Transfer record setID INPUT DWORD I, Q, M, D, L,constantLogical address of the module.For an output module, bit 15 must be set(e.g. for address 5: ID: DW = 8005h).For a combination module, the smaller ofthe two addresses should be specified.INDEX INPUT INT I, Q, M, D, L,constantRecord set number.LEN INPUT INT I, Q, M, D, L,constantMaximum byte length of the record set tobe transferred.DONE OUTPUT BOOL I, Q, M, D, L Record set was transferred.BUSY OUTPUT BOOL I, Q, M, D, L BUSY = 1: The write process is not yet ter-minated.ERROR OUTPUT BOOL I, Q, M, D, L ERROR = 1: A write error has occurred.Error informationDescriptionOperating principleVIPA SPEED7Integrated StandardSystem Function Blocks > SFB 53 - WRREC - Writing record setHB00 | OPL_SP7 | Operation list | en | 18-30776