EasyManua.ls Logo

YASKAWA VIPA SPEED7 - SFB 53 - WRREC - Writing Record Set

YASKAWA VIPA SPEED7
1007 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Ä
Chap. 14.2.22 ‘SFB 54 - RALRM - Receiving an interrupt from a periphery module’
page 777
14.2.21 SFB 53 - WRREC - Writing record set
The SFB 53 WRREC interface is identical to the FB WRREC defined in
the standard "PROFIBUS Guideline PROFIBUS Communication and
Proxy Function Blocks according to IEC 61131-3".
With the SFB 53 WRREC (Write record) you transfer a record set with the number INDEX
to a module that has been addressed via ID. Specify the byte length of the record set to
be transmitted. The selected length of the source area RECORD should, therefore, have
at least the length of LEN bytes. TRUE on output parameter DONE verifies that the
record set has been successfully transferred to the DP slave. The output parameter
ERROR indicates whether a record set transmission error has occurred. In this case, the
output parameter STATUS contains the error information. System dependent this block
cannot be interrupted!
The SFB 53 WRREC operates asynchronously, that is, processing covers multiple SFB
calls. Start the job by calling SFB 52 with REQ = 1. The job status is displayed via the
output parameter BUSY and bytes 2 and 3 of output parameter STATUS. Here, the
STATUS 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 actual
parameter of RECORD for all SFB 53 calls that belong to one and the same job. The
same applies to the LEN parameters. Record set transmission is completed when the
output parameter BUSY = FALSE.
Parameters
Parameter Declaration Data type Memory block Description
REQ INPUT BOOL I, Q, M, D, L,
constant
REQ = 1: Transfer record set
ID INPUT DWORD I, Q, M, D, L,
constant
Logical 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 of
the two addresses should be specified.
INDEX INPUT INT I, Q, M, D, L,
constant
Record set number.
LEN INPUT INT I, Q, M, D, L,
constant
Maximum byte length of the record set to
be 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 information
Description
Operating principle
VIPA SPEED7
Integrated Standard
System Function Blocks > SFB 53 - WRREC - Writing record set
HB00 | OPL_SP7 | Operation list | en | 18-30 776

Table of Contents

Related product manuals