Parameters | Inputs
REQ
Data type: | BOOL |
Description: | A rising edge at the REQ input (REQ = Request) starts the execution of the function block. A falling edge at the input prepares the function block for a restart. |
ID
Data type: | INT |
Description: | This parameter is the designation of the communication connection previously established using the PCP_CONNECT function block. |
DATA_CNT
Data type: | INT |
Description: | DATA_CNT specifies the number of data bytes in the output buffer SD_1 to be sent. |
Input/Output
ADD_ERROR
Data type: | ARRAY OF WORD with 2 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. |
|
VAR_1
Data type: | ARRAY OF WORD |
Description: | VAR_1 contains the index of the corresponding PCP object in the first word and the subindex in the second word. |
SD_1
Data type: | ARRAY OF WORD or ARRAY OF BYTE |
Description: | SD_1 represents the transmit buffer of the function block. The data can be of each predefined or user defined data type. The function block is only able to send all data correctly, if SD_1 is greater or equal than the data to be sent. |
Outputs
DONE
Data type: | BOOL |
Description: | With a rising edge, this output displays that data have been written successfully from the transmit buffer SD_1 either to the PCP object (specified in VAR_1) or to the variable. |
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. |
|