Programming FCs (Functions) and FBs for S7 Ethernet CPs
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
SIMATIC NET NCM S7 for Industrial Ethernet | 155 |