Table 6- 8 Fb 8 P_Snd_Rk Parameters For "Fetch Data" Request - Siemens Simatic S7-300 CP 341 User Manual

Point-to-point communication, installation and parameter assignment
Table of Contents

Advertisement

Assignment in the data area
The FB P_SND_RK works together with an I_SND_RK instance DB. The DB number is
passed on with the call. The instance data block is 62 bytes long. Access to the data in the
instance DB is not allowed.
FB P_SND_RK parameters
The table below lists the parameters of the FB 8 P_SND_RK for the "Fetch data" request.
Table 6- 8
FB 8 P_SND_RK parameters for "Fetch data" request
Name
Sort
SF
INPUT
REQ
INPUT
R
INPUT
LADDR
INPUT
DB_NO
INPUT
DBB_NO
INPUT
LEN
INPUT
R_CPU_NO
INPUT
R_TYP
INPUT
R_NO
INPUT
R_OFFSET
INPUT
R_CF_BYT
INPUT
R_CF_BIT
INPUT
DONE
OUTPUT
1
ERROR
OUTPUT
1
STATUS
OUTPUT
1
The parameter is available until the next time the FB is called.
1
CP 341 Point-to-Point Communication, Installation and Parameter Assignment
Manual, 09/2008, A5E02191071-01
www.gkbpx.com
6.4 Using the Function Blocks with the RK 512 Computer Connection
Data type Comment
CHAR
Selection for Send data or Fetch
data
BOOL
Initiates request on positive edge
BOOL
Cancels request
INT
CP 341 start address
INT
Data block number of destination
INT
Data block number of destination
INT
Data length of the message frame
to be fetched
INT
CPU number of the partner CPU
CHAR
Address type on the partner CPU
INT
Data block number on the partner
CPU
INT
Data byte number on the partner
CPU
INT
Interprocessor communication flag
byte on partner CPU
INT
Interprocessor communication flag
bit on the partner CPU
BOOL
Request completed without errors
BOOL
Request completed with errors
WORD
Specification of error
Communication via Function Blocks
Permitted values, remark
SF = 'F' (Fetch)default value: 'S' (Send)
Cancels the request in progress. Fetching is
disabled. Default: 0
The start address is taken from STEP 7.
Send DB no.: CPU-specific, zero is not
allowed
0 ≤ DBB_NO ≤ 8190 Send data starting from
data byte
1 ≤ LEN ≤ 4096, specified in number of
bytes
1
0 ≤ R_CPU_NO ≤ 4, only with multiprocessor
mode; default value: 1
'D': Data block
'X': Expanded data block
'M': Memory bit
'I': Inputs
'Q': Outputs
'C': Counters
'T': Timers
0 ≤ R_NO ≤ 255
0 ≤ CF_BYTE ≤ 255
Default value: 255 (means: without
interprocessor communication flag)
0 ≤ CF_BIT ≤ 7
STATUS parameter == 16#00;
Error information is written to the STATUS
parameter.
If ERROR == 1, the STATUS parameter will
contain error information.
该文档是极速PDF编辑器生成,
如果想去掉该提示,请访问并下载:
http://www.jisupdfeditor.com/
157

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents