Programming FCs (Functions) and FBs for S7 Ethernet CPs
Parameter | Declara- | Type | Possible | Remarks |
| tion |
| Values |
|
|
|
|
|
|
ID | INPUT | INT | 1,2...16 for | The connection number of the connection is |
|
|
| specified in the parameter ID. (see | |
|
|
| 1,2...64 for | Configuration Section 4.3.1) |
|
|
|
| |
|
|
|
| |
|
|
|
|
|
LADDR | INPUT | WORD |
| Module base address |
|
|
|
| When you configure the CP with STEP 7 |
|
|
|
| hardware configuration, the module base |
|
|
|
| address is displayed in the configuration table. |
|
|
|
| Specify this address here. |
|
|
|
|
|
LOCKED | OUTPUT | BOOL | 0: not (yet) | Shows the status of the access lock requested |
|
|
| locked | on the specified FETCH/WRITE connection. |
|
|
| 1: locked |
|
|
|
|
|
|
STATUS
OUTPUT
WORD see following table
Status code
For meaning, refer to the table below.
Condition Codes
The following table shows the STATUS code that must be evaluated by the user program.
Table
STATUS | Meaning |
|
|
7000 | CP is not processing a job |
|
|
7001 | FETCH active |
|
|
7002 | WRITE active |
|
|
8183 | FETCH/WRITE not configured for this connection |
|
|
8186 | ID number not in permitted range (e.g. 1...64 with |
|
|
170 | SIMATIC NET NCM S7 for Industrial Ethernet |