YASKAWA VIPA SPEED7 Operation Manual page 218

Table of Contents

Advertisement

Serial Communication
Serial communication > FB 8 - P_SND_RK - Send to CP 341
Parameter
Parameter
Declaration
SF
IN
REQ
IN
R
IN
LADDR
IN
DB_NO
IN
DBB_NO
IN
LEN
IN
R_...
IN
DONE*
OUT
ERROR*
OUT
STATUS*
OUT
*) Parameter is available until the next call of the FB.
Release and cancel a
request
Mechanism for startup
synchronization
218
The FB 8 - P_SND_RK transfers a data block of a DB to the CP, specified by the parame-
ters DB_NO, DBB_NO and LEN. For data transfer the FB is to be called either cyclically
or statically by a timer-driven program. Please note that this block calls the FC or SFC
192 CP_S_R internally. These must not be overwritten! The direct call of an internal block
leads to errors in the corresponding instance DB!
Data type
Description
CHAR
S = Send, F = Fetch. At ASCII and 3964R the default value "S" for
Send may be used
BOOL
Initiates request with positive edge
BOOL
Aborts request - current request is aborted and sending is blocked.
INT
Logical basic address of the CP - corresponds to the address of the
hardware configuration of the CP.
INT
Data block number - number of the send DB, zero is not allowed.
INT
Data byte number - transmitted data as of data byte 0 ≤ DBB_NO ≤
8190
INT
Length of message frame to be sent in byte 1 ≤ LEN ≤ 1024
-
These parameters are not relevant for ASCII and 3964(R). But they
may be used by loadable protocols. With Modbus enter here "X".
BOOL
Request complete without errors, data sent Parameter STATUS =
00h
BOOL
Request complete with error Parameter STATUS contains error
details
WORD
Specification of the error on ERROR = 1
n
The data transmission is initiated by a positive edge at the REQ input of FB 8 -
P_SND_RK. A data transmission operation can run over several program cycles,
depending on the amount of data involved.
n
A running request may me cancelled at any time with R = "1" then the FB is reset to
the basic state. Please regard that data, which the CP still has received from the
CPU, were sent to the communication partner.
If the R input is statically showing the signal state "1", this means that sending is
n
deactivated.
The FB 8 has a mechanism for startup-synchronization between CPU and CP, which is
automatically executed at the first call of the FB. Before the CP can process an activated
request after the CPU has changed from STOP to RUN mode, the CP CPU start-up
mechanism must be completed. Any requests initiated in the meantime are transmitted
once the start-up coordination with the CP is finished.
A minimum pulse time is necessary for a signal change to be identified.
Significant time periods are the CPU cycle time, the updating time on the
CP and the response time of the communication partner.
HB00 | OPL_SP7 | Operation list | en | 18-30
VIPA SPEED7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents