Parameters | Inputs
EN_C
Data type: | BOOL |
Description: | The EN_C input (EN_C = Enable Connect) is for establishing and maintaining communication connections.The following applies:
- EN_C = TRUE
The connection is established or maintained. Connection queries of other function blocks are answered positively.
- EN_C = FALSE
The connection has been terminated. Connection queries of other function blocks are answered negatively.
|
Input/Output
ADD_ERROR
Data type: | ARRAY OF WORD with 7 elements |
Description: | If an error occurs, the error code is written into ADD_ERROR. The error codes represent PCP error messages. These are described in the PCP manual. If an incorrect format is used, the function block returns an error (ERROR=TRUE).
Note
The error codes stored in ADD_ERROR are only valid in the cycle in which ERROR changes from FALSE to TRUE. |
|
PARTNER
Data type: | STRING |
Description: | Specifies the Communication Reference CR. Note that the CR can change, for example, due to a project-wide renumbering.
In this case, you have to adapt the CR numbers here, otherwise incorrect devices can be addressed. |
Outputs
VALID
Data type: | BOOL |
Description: | This parameter displays whether a valid communication connection exists. The parameter ID is only valid if VALID=TRUE. |
ERROR
Data type: | BOOL |
Description: | With a rising edge, this output displays that an error has occurred. Within the cycle, in which the rising edge occurs, the error code can be read from ADD_ERROR. |
ID
Data type: | INT |
Description: | This parameter is the designation of the established communication connection. Using the parameter ID it is differentiated between several communication connections. ID is only valid if the parameter VALID is TRUE. |
|