EasyManua.ls Logo

YASKAWA VIPA SPEED7 - FB 63 - TSEND - Sending Data - TCP Native and ISO on TCP

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 In this case, when calling the sending block you have to specify the address parame-
ters of the receiver (IP address and port number). During data transmission, informa-
tion on the length and the end of the message is also transmitted.
n Analog after finishing the receive block you get a reference to the address parameter
of the sender (IP address and port no.)
n In order to be able to use the sending and receiving blocks first you have to configure
the local communications access point at both sides.
n With each new call of the sending block, you re-reference the remote partner by spec-
ifying its IP address and its port number.
n If you have specified the length of the data to be received greater than the length of
the data to be sent, the receive block will copy the received data completely into the
receive range. After this, it will set NDR to TRUE and write RCVD_LEN with the
length of the sent data.
n If you have specified the length of the data to be received less than the length of the
sent data, the receive block will not copy any data into the receive range but instead
will supply the following error information: ERROR = 1, STATUS = 8088h.
8.1.3 FB 63 - TSEND - Sending data - TCP native and ISO on TCP
n FB 63 TSEND Sends data over an editing communications connection. FB 63
TSEND is an asynchronously functioning FB, which means that its processing
extends over several FB calls.
n To start sending data, call FB 63 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 63 or when the establish-
ment of the connection 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 63 TSEND, you must keep the
data in the sender area consistent until the DONE parameter or the
ERROR parameter assumes the value TRUE.
UDP
Description
VIPA SPEED7
Network Communication
Open Communication > FB 63 - TSEND - Sending data - TCP native and ISO on TCP
HB00 | OPL_SP7 | Operation list | en | 18-30 115

Table of Contents

Related product manuals