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. |
Input/Output
ADD_ERROR
Data type: | ARRAY OF DWORD with 1 element / ARRAY OF WORD with 2 elements /
ARRAY OF BYTE with 4 elements |
Description: | If an error occurs when using the function block, the error code is written into ADD_ERROR. A value unequal to 0 in the first word indicates an error. In this case RD_1 or SD_1 is connected to a variable with a wrong data type.When receiving a negative confirmation in RD_1, the received confirmation contains the error value instead of ADD_ERROR.
Note
The error codes stored in ADD_ERROR are only valid in the cycle in which ERROR changes from FALSE to TRUE. |
|
SD_1
Data type: | ARRAY OF BYTE / ARRAY OF WORD |
Description: | SD_1 represents the transmit buffer of the function block. You have to transfer the firmware service to the transmit buffer.
Note
No PCP services can be transferred. |
Further Info
Further information about the configuration and the parameters of the used firmware service can be found in the Firmware manual.
Also refer to the PLCnext Info Center which provides many information and practical user tips on the PLCnext control platform and PLCnext Engineer |
|
RD_1
Data type: | ARRAY OF BYTE / ARRAY OF WORD |
Description: | RD_1 represents the receive buffer of the function block. The receive buffer is used for receiving the acknowledgment (Confirmation) which contains the message code, the parameter count, and the requested data. |
Outputs
NDR
Data type: | BOOL |
Description: | With a rising edge, this output (New Data Received) displays the availability of data (acknowledgment) which are read from the RD_1 receive buffer. Using NDR=TRUE, you can read the data from the receive buffer.
Note
The data stored in RD_1 are only valid in the cycle in which NDR changes from FALSE to 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. |
|