-

AX_CONTROL

Type Function block
Description Sends firmware services to an Axioline master.

Sending the firmware service request saved in SD_1 is started in the cycle in which the rising edge is detected at the REQ input. The duration of the read operation depends on the current system utilization. Once the response to the service request has been received, the NDR output is set to TRUE. The receive data saved in RD_1 is only valid and readable during the cycle in which NDR is TRUE.

In the event of an error, the ERROR output is set to TRUE. The corresponding error code can be read at the STATUS output. The error information saved in the STATUS array is only valid and readable during the cycle in which the ERROR output is set to TRUE. In the following cycle the ERROR output is set to FALSE. The user can now set the REQ input to FALSE to prepare the next send operation. In the following cycle the next send operation can be executed with a rising edge at the REQ input.

If an invalid variable type or an array with an invalid length is applied to RD_1 or SD_1, the ERROR output is set to TRUE and the corresponding error code is output at the STATUS output. In this case the ERROR output remains TRUE until the error has been eliminated. While ERROR = TRUE, the corresponding error code can be read at the STATUS output.
Notes
  • The firmware services PDI_READ_OBJECT and PDI_WRITE_OBJECT are sent with the function blocks PDI_READ and PDI_WRITE.
  • A negative confirmation received as response to a sent service request does not generate an error at the ERROR output. Any confirmation, either positive or negative, is copied to the RD_1 array without evaluating the content and the NDR output is set to TRUE accordingly. The evaluation of the response has to be done by the user. The ERROR output only indicates general internal function block errors.
  • Function blocks have to be instantiated. The instance name of the function block has to be declared in the 'Variables' table of the POU where the FB is going to be used. The instance name must be unique within the POU.
Parameters Input

REQ

Input/Output

SD_1

RD_1

Outputs

NDR

ERROR

STATUS
Error codes Error codes at the STATUS output