Manual VIPA System 300S SPEED7
Chapter 4 Deployment
HB140E - CP - RE_341-2CH71 - Rev. 09/46
4-11
The FB 8 - P_SND_RK transfers a data block of a DB to the CP, specified
by the parameters
DB_NO
,
DBB_NO
and
LEN
. For data transfer the FB is
to be called either cyclically or statically by a timer-driven program.
Information about the parameters, which were necessary for the loadable
protocols, may be found at the corresponding protocol description in the
chapter "Communication protocols".
Parameter Declaration Data type Description
SF
Input
CHAR
S = Send, F = Fetch. At ASCII and 3964R the default
value "S" for Send may be used
REQ
Input
BOOL
Initiates request with positive edge
R
Input
BOOL
Aborts request - current request is aborted and sending is
blocked.
LADDR
Input
INT
Logical basic address of the CP - corresponds to the
address of the hardware configuration of the CP.
DB_NO
Input
INT
Data block number - number of the send DB, zero is not
allowed.
DBB_NO
Input
INT
Data byte number - transmitted data as of data byte
0
≤
DBB_NO
≤
8190
LEN
Input
INT
Length of message frame to be sent in byte
1
≤
LEN
≤
1024
R_...
Input
-
These parameters are not relevant for ASCII and 3964(R).
But they may be used by loadable protocols.
DONE
1)
Output
BOOL
Request complete without errors, data sent
Parameter STATUS = 00h
ERROR
1)
Output
BOOL
Request complete with error
Parameter STATUS contains error details
STATUS
1)
Output
WORD
Specification of the error on ERROR = 1
1)
Parameter is available until the next call of the FB.
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.
A running request may me canceled 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 deactivated.
Note!
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.
Send data
FB 8 - P_SND_RK
Parameter
Release and
cancel a request
Summary of Contents for CP 341S
Page 1: ...VIPA System 300S SPEED7 CP 341 2CH71 Manual HB140E_CP RE_341 2CH71 Rev 09 46 November 2009 ...
Page 4: ...Contents Manual VIPA System 300S SPEED7 ii HB140E CP RE_341 2CH71 Rev 09 46 ...
Page 8: ...Safety information Manual VIPA System 300S SPEED7 4 HB140E CP RE_341 2CH71 Rev 09 46 ...
Page 70: ...Index Manual VIPA System 300S SPEED7 A 2 HB140E CP RE_341 2CH71 Rev 09 46 M Stich ...