EasyManua.ls Logo

YASKAWA VIPA SPEED7 - Page 119

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...
n FB 64 TRCV is an asynchronously functioning FB, which means that its processing
extends over several FB calls. To start receiving data, call FB 64 with REQ = 1.
n The job status is indicated at the output parameters BUSY and STATUS. STATUS
corresponds to the RET_VAL output parameter of asynchronously functioning SFCs
(see also Meaning of the Parameters REQ, RET_VAL and BUSY with Asynchronous
SFCs).
n The following table shows the relationships between BUSY, DONE and ERROR.
Using this table, you can determine the current status of FB 64 or when the receiving
process is complete.
BUSY DONE ERROR Description
TRUE irrelevant irrelevant The job is being processed.
FALSE TRUE FALSE The job was completed successfully.
FALSE FALSE TRUE The job was ended with an error. The cause of the error
can be found in the STATUS parameter.
FALSE FALSE FALSE The FB was not assigned a (new) job.
Due to the asynchronous function of FB 64 TRCV, the data in the
receiver area are only consistent when the NDR parameter assumes the
value TRUE.
Parameters
Parameter Declaration Data type Memory area Description
EN_R INPUT BOOL I, Q, M, D, L With EN_R = 1, FB 64 TRCV is ready to receive
(Control parameter). The receive job is pro-
cessed.
ID INPUT WORD M, D, constant Reference to the connection to be terminated. ID
must be identical to the associated parameter id
in the local connection description.
Range of values: 0001h ... 0FFFh
LEN INPUT INT I, Q, M, D, L
n LEN = 0 (ad hoc mode): use implied length
specified in the ANY pointer for DATA. The
received data are made available immedi-
ately when the block is called. The amount of
data received is available in RCVD_LEN.
n 1 £ LEN £ max: number of bytes to be
received. The amount of data actually
received is available in RCVD_LEN. The
data are available after they have been com-
pletely received. "max" depends on the con-
nection type:
max = 1460 with connection type 01h
max = 8192 with connection type 11h
max = 1452 with connection type 12h
with a CP
max = 8192 with connection type 12h
without a CP
Function
VIPA SPEED7
Network Communication
Open Communication > FB 64 - TRCV - Receiving Data - TCP native and ISO on TCP
HB00 | OPL_SP7 | Operation list | en | 18-30 119

Table of Contents

Related product manuals