Technical data

Table Of Contents
SFBs for Compact CPUs
System Software for S7-300/400 System and Standard Functions - Volume 2/2
28-40
A5E00739858-01
28.6 Sending Data (ASCII, 3964(R)) with SFB 60
"SEND_PTP"
Description
You can transmit a data block from a DB via SFB SEND_PTP (SFB 60).
The send operation is executed after the block is called and a positive edge on
control input REQ.
The range of data to be transmitted is determined in SD_1 (DB number and start
address). The length of the data block is determined in LEN.
To enable the SFB to process the job, you must call it with R(Reset)=FALSE. At
the positive edge on control input R the current transmission is aborted and the
SFB is reset to basic state. An aborted job is terminated with an error message
(STATUS output).
For your submodule, you declare the I/O address, which you specified in "HW
Config", in LADDR.
DONE is set TRUE if the job was terminated without error, or ERROR is set TRUE
if the job was terminated with an error.
If the job was processed with DONE=TRUE this means that:
When using the ASCII driver: The data where transmitted to the communication
partner. It is not ensured that all data has been received by the communication
partner.
When using the procedure 3964(R): The data have been transmitted to the
communication partner and they where acknowledged positively by the partner.
It is not ensured that the data were passed on the partner CPU.
In STATUS the CPU indicates an error or, as a result of a warning, the respective
event ID.
DONE or ERROR/STATUS are also output when the SFB is RESET (R=TRUE).
The binary result BIE is reset if an error has occurred. The status of the binary
result is TRUE if the block was terminated without error.
Note
A parameter check is not included in the SFB. The CPU might go into STOP mode
if the parameterization is faulty.
Instance DB
The SFB SEND_PTP operates in combination with an instance DB. The DB
number is passed on with the call. Accessing data in the instance DB is not
permitted.