Siemens SIMATIC NET S7-300 Manual page 198

Cps for industrial ethernet
Hide thumbs Also See for SIMATIC NET S7-300:
Table of Contents

Advertisement

7 Programming FCs (Functions) and FBs for S7 Ethernet CPs
FC5 AG_SEND / FC50 AG_LSEND - continued
Parameter
Declaratio
n
LEN
INPUT
DONE
OUTPUT
ERROR
OUTPUT
STATUS
OUTPUT
Condition Codes
The following table shows the condition codes formed by the DONE, ERROR and
STATUS parameters that must be evaluated by the user program.
A -198
Type
Possible
Values
INT
On ISO
Transport and
ISO-on-TCP /
TCP:
1,2, to 32767
1 2 t 32767
(or up to "length
specified for
SEND
parameter")
On UDP:
1,2,...2048 (or
1,2,...2048 (or
up to "length
specified for
SEND
parameter")
BOOL
0: Job active
1: done
BOOL
0: -
1: error
WORD
see following
table
S7-CPs for Industrial Ethernet Configuring and Commissioning
Remarks
Number of bytes to be sent from the data area
with this job. The possible values range from 1
to length specified for the SEND parameter.
S
Note the block type:
-
S7-300
With older versions of FC AG_SEND
(up to V3.0), the data area is always
restricted to a maximum of 240 bytes.
The current versions allow up to 8192
bytes (2048 bytes for UDP).
-
S7-400
With FC AG_SEND, the data area is
restricted to a maximum of 240 bytes.
S
Note on the S7-400:
Data transfer may be restricted to
LEN<=240 bytes with older versions of the
CP firmware!
For further information, see /2/
S
Improved performance with shorter data
records:
Transfer of data records up to 240 bytes
results in better performance regardless of
the block type used.
This parameter indicates whether or not the job
was completed without errors.
As long as DONE = 0, no further job can be
triggered. DONE is set to 0 by the CP when it
accepts a new job.
For the meaning of this parameter in
conjunction with the ERROR and STATUS
parameters, refer to the following table.
For the meaning of this parameter in
conjunction with the DONE and STATUS
parameters, refer to the following table.
Status code
The following table shows the condition codes
formed by the DONE and ERROR parameters.
C79000-G8976-C182-07
Release 01/2007

Advertisement

Table of Contents
loading

Table of Contents