Skip to content

Variable Server, I/Os

Setup KeStudio Project

Variables and digital I/Os can be exchanged between drag&bot and a KemroX PLC device via the KemroX Variable Server. Before used, the KeStudio project has to be configured specifically.

  1. Activate the Variable Server in the Expert Entries.

    [VarSREST]
    disable=0
    

  2. Add a Global Variable List to the Application and name it GVL_DNB.

  3. Configure the I/Os of your hardware (DI570, DM556, DO550, etc.) in the GVL_DNB file. The naming follows the structure DOutXXX for digital outputs and DInXXX for digital inputs, while both numberings XXX are starting from zero and being booleans. An example for a DM570 with eight inputs and outputs is shown below. Other variables can also be defined and exchanged later with drag&bot, but should not follow this structure to avoid confusions.

  4. Use each variable and I/O at least once in the PLC program, otherwise it will not be updated correctly by the variable server in case of mapping to a device.

  5. Add a Symbol Configuration and build the program for it.

  6. Setup access rights inside the Symbol Configuration. Digital outputs need read and write access, digital inputs need at least read access. Other variables should have read and write access, if they are meant to be accessed by drag&bot.

  7. Apply the I/O mappings for your target device, e.g. a DM570.

Setup drag&bot

  1. Add KemroX Variable Client component in the drag&bot Component Manger.
  2. Configure the parameter IP for your setup. It has to match with the IP, where the KemroX PLC device is available from the network.
  3. The configured I/Os should be available in the Operator Panel -> I/O Tab -> Subtab Keba.

Interact with other variables than I/Os

To interact with other variables than digital I/Os, use the following function blocks described below. Currently its only possible to interact with integer values.

KemroX Variable Server - Get Value - Integer

Gets the integer variable value from the KemroX Variable Server.

Name Data type Description
Inputs Path String The identifying path of the variable on the Variable Server. Usually it starts with 'APPL.Application.GVL_DNB'.
Outputs Value Integer The integer value of the variable.
Exceptions PATH_NOT_FOUND - The exception is raised, if the item can not be found on the variable server or is not acessible.
MISMATCHING_DATATYPE - The exception is raised, if the variable datatype is not an integer.
MODULE_NOT_AVAILABLE - The exception is raised, if the KemroX Variable Client component is not running.

KemroX Variable Server - Set Value - Integer

Sets an integer variable value at the KemroX Variable Server.

Name Data type Description
Inputs Path String The identifying path of the variable on the Variable Server. Usually it starts with 'APPL.Application.GVL_DNB'.
Value Integer The integer value to set to the variable.
Outputs -
Exceptions PATH_NOT_FOUND - The exception is raised, if the item can not be found on the variable server or is not acessible.
MISMATCHING_DATATYPE - The exception is raised, if the variable datatype is not an integer.
MODULE_NOT_AVAILABLE - The exception is raised, if the KemroX Variable Client component is not running.