Siemens DP/AS-Interface Link 20E Manual page 73

Plc processors
Table of Contents

Advertisement

Table 3-4
Formal Parameters, continued
Name
Para Type
RECV
I
DONE
Q
ERROR
Q
STATUS
I/Q
Commands in the User Program
To work with commands, you require the following in your user program:
1. In the warm restart branch of your S7 user program, call FC ASI_3422 once
with the parameter value STARTUP = TRUE.
2. Specify the command call in a send buffer in the user program. You transfer this
send buffer with the SEND call parameter.
3. Depending on the command type you will also require a response buffer. You
transfer this response buffer with the RECV call parameter. For status
information, the response buffer is not required for this FC interface.
4. Activate the job with the parameter ACT=1
5. You then query the parameters DONE, ERROR and STATUS. For handling
these parameters in the user program, note the signal sequence of the
parameters explained below.
The diskette supplied with this manual contains sample programs.
DP/AS-Interface Link 20E
Release 11/2002
C79000-G8976-C138–04
Data Type
Memory Area
ANY
I,Q,M,D,L
BOOL
Q,M,D,L
BOOL
Q,M,D,L
DWORD
M,D
Using the Command Interface
Remarks
Receive buffer
This buffer is only relevant for
commands that supply response data.
The parameter references a memory
area in which the command response
is stored. The length information in the
ANY pointer specified here is
irrelevant. The FC itself obtains the
length of the response data.
for example: P#DB30.DBX 20.0 byte 1
DONE = 1 signals 'job completed
without error'.
ERROR = 1 signals 'job terminated
with error'.
1st word: Job status / error code (see
Table 3-5);
For 'job terminated with error', an error
code is generated that describes the
error in greater detail.
2nd word: Required by the FC for
internal purposes and must not be
modified.
Note:
For FC calls to different
DP/AS-i Link 20E modules, different
double words must be used for the
STATUS parameter.
73

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents