Siemens SIMATIC NET S7-300 Manual page 234

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
FB88 PN_InOut / FB90 PN_InOut_Fast - continued
Parameter
Declaration
LADDR
INPUT
DONE
OUTPUT
ERROR
OUTPUT
STATUS
OUTPUT
Evaluating Status Codes
Remember that the status codes DONE, ERROR, STATUS are updated at each
block call.
The following table shows the condition codes formed by the DONE, ERROR and
STATUS parameters that must be evaluated by the user program.
Table 7-10 Codes for PN_InOut (FB88) and PN_InOut_Fast (FB90)
DONE
ERROR
1
0
0
0
0
0
0
1
0
1
0
1
A -234
Type
WORD
BOOL
BOOL
WORD
STATUS
0000
Job completed without error.
H
0000
No job being processed; the block can be called
H
S
8181
Job active.
H
or
S
(only with FB90) : Connection establishment to addressed
module active (see also information under 8090
8183
(S7-300 only)
H
The service has not yet started; data acceptance is not yet
possible.
S
8184
Bad instance DB, generally triggered by illegal writing of the
H
instance DB by the user program.
or
S
(only with FB90)
Bad send or receive job.
8085
(only with FB90)
H
Bad interface DB.
Remarks
Module base address
When you configure the CP with STEP 7 HW
Config, the module base address is displayed in
the configuration table. Specify this address here.
Do not modify the parameter until the job is
completed (DONE=1 or ERROR=1).
Reports the (positive) completion of a job.
This indicates that the job could not be executed
error-free.
This parameter supplies detailed information about
the execution of the job. Status codes can be
returned during execution of the job (DONE=0 and
ERROR=0).
Meaning
S7-CPs for Industrial Ethernet Configuring and Commissioning
).
H
Release 01/2007
C79000-G8976-C182-07

Advertisement

Table of Contents
loading

Table of Contents