FUNCTION_BLOCK TEST_ADP_PLG

TEST_ADP_PLG

As shown above, an instance of this composite function block type is a provider for an adapter connection of type TEST_ADP, that is, it contains a plug of type TEST_ADP . It contains GUI (graphic user interface) elements that enable it to function as a server for the testing of the adapter connection. Additional event and data inputs ( REQ_EVT WITH QI ) and outputs ( CNF_EVT WITH QO ) are provided to illustrate a separate event/data "pass-through" functionality, independent of the plug interface.

See the TEST_ADP_SYS configuration for an example of the use of an instance of this type.

An instance of this type can be launched and tested, with the results shown below.

  1. The initial situation.
  2. The INIT event creates the GUI elements.
  3. Entering data and clicking CNF has no effect, since there is no socket to receive this event and data.
  4. Changing the state of QI and clicking REQ_EVT passes the value through to QO, independent of the plug interface.
1
2
3
4