Programming FCs (Functions) and FBs for S7 Ethernet CPs
Note
In principle, it is possible to call the FC more than once within the CPU cycle to speed up the handling of the job. Do not forget, however, that this increases the load during the CPU cycle (the load differs depending on the CPU type)!
Explanation of the Formal Parameters
The following table explains all the formal parameters for the AG_SEND /AG_LSEND functions.
Parameter | Declara- | Type | Possible | Remarks |
| tion |
| Values |
|
|
|
|
|
|
ACT | INPUT | BOOL | 0,1 | If an FC is called with ACT=1, LEN bytes are |
|
|
|
| sent from the ISO transport data area specified |
|
|
|
| with the SEND parameter. |
|
|
|
| If an FC is called with ACT = 0, the status |
|
|
|
| codes DONE, ERROR and STATUS are |
|
|
|
| updated. |
|
|
|
|
|
ID | INPUT | INT | 1,2...64 | The connection number of the connection is |
|
|
| specified in the parameter ID. (see | |
|
|
| 1,2...16 | 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. |
|
|
|
|
|
SEND | INPUT | ANY |
| Specifies the address and length. |
|
|
|
| The address of the data area refers to one of |
|
|
|
| the following: |
|
|
|
| – Process image area |
|
|
|
| – Bit memory |
|
|
|
| – Data block area |
|
|
|
|
|
178 | SIMATIC NET NCM S7 for Industrial Ethernet |
Release 6/2003 |