
5 Using the Command Interface
54
CP 343−2 / CP 343−2 P AS−Interface Master
Release 08/2008
C79000−G8976−C149−04
Call Interface
ACT
DONE
ASI_3422
STARTUP ERROR
STATUS
BOOL
BOOL
DWORD
BOOL
BOOL
LADDR
SEND
WORD
ANY
RECVANY
DWORD
Table 6-1 Formal Parameters
Name
Para Type Data Type Memory Area Remarks
ACT I BOOL I,Q,M,D,L,constant As long as ACT = 1, command
processing is started provided no
other call is being processed.
STARTUP I BOOL I,Q,M,D,L,constant A CPU startup is indicated to the FC
by STARTUP = 1. After the function is
run through the first time, STARTUP
must be reset by the user.
LADDR I WORD I,Q,M,D,L,constant Base address of the CP 343-2 in the
S7 address space.
The module base address is specified
during STEP 7 configuration.
SEND I ANY I,Q,M,D,L Send buffer
The parameter references a memory
area in which the command must be
specified by the user.
for example: P#DB20.DBX 20.0 byte
10
RECV I ANY I,Q,M,D,L 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 Q BOOL Q,M,D,L DONE = 1 signals ’job completed
without error’.
ERROR Q BOOL Q,M,D,L ERROR = 1 signals ’job terminated
with error’.
Comentarios a estos manuales