hit counter script

Siemens SIMATIC S7 System Manual page 412

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

103BCommunication
10.2 PROFINET
TSEND and TRCV
Table 10- 11 TSEND and TRCV instructions
LAD / FBD
STEP 7 automatically creates the DB when you insert the instruction.
1
Table 10- 12 Data types for the parameters of TSEND and TRCV
Parameter and type
REQ
IN
EN_R
IN
ID
IN
LEN
IN
DATA
IN_OUT
412
SCL
"TSEND_DB"(
req:=_bool_in_,
ID:=_word_in_,
len:=_uint_in_,
done=>_bool_out_,
busy=>_bool_out_,
error=>_bool_out_,
status=>_word_out_,
data:=_variant_inout_);
"TRCV_DB"(
en_r:=_bool_in_,
ID:=_word_in_,
len:=_uint_in_,
ndr=>_bool_out_,
busy=>_bool_out_,
error=>_bool_out_,
status=>_word_out_,
rcvd_len=>_uint_out_,
data:=_variant_inout_);
Data type
Description
Bool
TSEND: Starts the send job on a rising edge. The data is
transferred from the area specified by DATA and LEN.
Bool
TRCV: Enables the CPU to receive; with EN_R = 1, the TRCV is
ready to receive. The receive job is processed.
CONN_OUC
Reference to the associated connection. ID must be identical to
(Word)
the associated parameter ID in the local connection description.
Value range: W#16#0001 to W#16#0FFF
UInt
Maximum number of bytes to be sent (TSEND) or received
(TRCV):
Variant
Pointer to send (TSEND) or receive (TRCV) data area; data area
contains the address and length. The address refers to I memory,
Q memory, M memory, or a DB.
Description
TCP and ISO on TCP: TSEND sends data
through a communication connection from the
CPU to a partner station.
TCP and ISO on TCP: TRCV receives data
through a communication connection from a
partner station to the CPU.
Default = 0: The DATA parameter determines the length of the
data to be sent (TSEND) or received (TRCV).
Ad hoc mode = 65535: A variable length of data is set for
reception (TRCV).
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents

Save PDF