Programming FCs (Functions) and FBs for S7 Ethernet CPs
Parameter | Declara- | Type | Possible |
| Remarks |
| tion |
| Values |
|
|
|
|
|
|
| |
LEN | INPUT | INT | On ISO | Number of bytes to be sent from the data area | |
|
|
| Transport and | with this job. The possible values range from 1 | |
|
|
| to length specified for the SEND parameter. | ||
|
|
| TCP: | S Note the block type: | |
|
|
| 1,2, to 32767 | – | |
|
|
| (or up to “length | ||
|
|
|
| With older versions of FC AG_SEND | |
|
|
| specified for |
| |
|
|
|
| (up to V3.0), the data area is always | |
|
|
| SEND |
| |
|
|
|
| restricted to a maximum of 240 bytes. | |
|
|
| parameter”) |
| |
|
|
|
| The current versions allow up to 8192 | |
|
|
|
|
| |
|
|
| On UDP: |
| bytes (2048 bytes for UDP). |
|
|
|
|
| |
|
|
| 1,2,...2048 (or | – | |
|
|
| up to “length | ||
|
|
| specified for |
| With FC AG_SEND, the data area is |
|
|
| SEND |
| restricted to a maximum of 240 bytes. |
|
|
| parameter”) | S Note on the | |
|
|
|
| ||
|
|
|
| Data transfer may be restricted to | |
|
|
|
| LEN<=240 bytes with older versions of the | |
|
|
|
| CP firmware! | |
|
|
|
| For further information, see /1/ | |
|
|
|
| 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. | |
|
|
|
|
| |
DONE | OUTPUT | BOOL | 0: Job active | This parameter indicates whether or not the job | |
|
|
| 1: done | 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. | |
|
|
|
|
| |
ERROR | OUTPUT | BOOL | 0: – | For the meaning of this parameter in | |
|
|
| 1: error | conjunction with the DONE and STATUS | |
|
|
|
| parameters, refer to the follow table. | |
|
|
|
|
|
|
STATUS
OUTPUT
WORD see following table
Status code
The following table shows the condition codes formed by the DONE and ERROR parameters.
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.
156 | SIMATIC NET NCM S7 for Industrial Ethernet |