Programming FCs (Functions) and FBs for S7 Ethernet CPs
146 SIMATIC NET NCM S7 for Industrial Ethernet
C79000-G8976-C129–06
Setting Block Parameters Automatically1)
To ensure correct parameter settings for the block calls, The LAD/STL/FBD editor
in STEP 7 provides you with the option of accepting all the relevant parameters
from the hardware configuration (HW Config) and from the connection
configuration.
When assigning the parameters for the block in the user program, follow the steps
outlined below:
1. Select the block call and its block parameters;
2. Right-click and select the menu command “Connections...”.
3. Depending on the block type, you can now select the connection and/or module
intended for the block from a list.
4. Confirm your selection; as far as possible, the available parameter values are
entered in the block call.
Response to Incorrect Addresses
If the S7 CPU cannot communicate with the Ethernet CP using the specified
module base address, the errors described below occur.
Cause Reaction / Code
No module can be addressed or
identified at the specified CP address. The CPU remains in the stop with system error
state; in this case, evaluate the diagnostic
buffer of the CPU.
The CP address points to a different
module type. Possible error code in the STATUS parameter
of the communication block:
8184H System error
80B0H Module does not
recognize data
record.
80C0H Data record cannot
be read.
80C3H Resources
occupied (memory).
80D2H Logical base address
wrong.
Notice
If you inadvertently address not a CP but another module type, errors occur that
cannot be indicated by the error messages of the FCs themselves.
1). This function is possible only with the block library ..V5.0 SP3 or later.