Robotron Datenbank-Software GmbH Firmenlogo
MIT DATEN MEHR BEWEGEN.
🇩🇪 🇬🇧

EdgeMethod

Function Description and Usage

The Edge Method block (Edge Method Invocation) calls an Edge Method and forwards its result depending on the success to another processing or output block.

Table 1. Configuration parameters Edge Method block
ParameterDescription

Name

Name of the block instance.

Method

Name of the method to be called.

Parameter

List of constant parameters for calling the method

Example: Updating an OPC UA Node

In this example, an OPC UA Node is set as soon as a message triggers the block.

edge method invocation sample
Figure 1. Configuration of the Edge Method block

Frequently Used Methods

The following describes methods of the RoboGate Edge that are suitable for use together with the Edge Method block.

robogate.opcua.writeNodeValue

Method of the OPC UA module. Sets a node of a configured OPC UA server to a constant value.

ParameterDescription

server

Name of the configured server

nodeId

Node ID of the node to be set

value

Value of the node. This can also be set dynamically from a topic. To do this, a $ sign must be placed before the variable. For example $TOPIC_NAME.

robogate.opcua.readNodeValue

Method of the OPC UA module. Reads the value of a node from a configured OPC UA server.

ParameterDescription

server

Name of the configured server

nodeId

Node ID of the node to be set

value

Value of the node

Response message

PropertyDescription

val

Read value

robogate.rfc1006.readSignal

Method of the RFC1006 module. Reads a value from a memory area of a configured PLC.

ParameterDescription

plc

Name of the configured PLC

dataType

Memory type on PLC

  • DataBlock

  • Memory

  • Timer

  • Counter

  • Input

  • Output

dataBlock

Name of the DataBlock (for DataType DataBlock)

startByte

Start byte of the value to be read in the memory area

count

Number of bytes to be read from the memory area

bit

Bit to be read within the byte to be read (for VarType = Bit)

varType

Data type to which the read value should be converted

  • Bit (boolean)

  • Byte

  • Word

  • DWord

  • Int

  • DInt

  • Real

  • String

  • StringEx

  • Timer

  • Counter

  • DateTime

  • DateTimeLong

Response message

PropertyDescription

value

Read value

robogate.rfc1006.writeSignal

Method of the RFC1006 module. Writes a value to a memory area of a configured PLC.

ParameterDescription

plc

Name of the configured PLC

dataType

Memory type on PLC

  • DataBlock

  • Memory

  • Timer

  • Counter

  • Input

  • Output

dataBlock

ID of the DataBlock

startByte

Start byte of the value to be read in the memory area

varType

Data type to which the read value should be converted

  • Bit (boolean)

  • Byte

  • Word

  • DWord

  • Int

  • DInt

  • Real

  • String

  • StringEx

  • Timer

  • Counter

  • DateTime

  • DateTimeLong

value

Value to be written

modbus-testread

Method of the Modbus module. Reads a value from a configured Modbus slave.

Parameter

Description

serverInstance

Name of the configured Modbus

slaveId

ID of the slave to be read in the Modbus

functionCode

Modbus Function Code

  • 1: Read Coil (Boolean)

  • 2: Read Input (Boolean)

  • 3: Read Holding Register (2 byte)

  • 4: Read Input Register (2 byte)

registerStartAddress

Start address of the memory area to be read

registerLength

Length of the memory area to be read in words (2 byte) for function codes 3 and 4

type

Data type to which the read value should be converted

  • UInt16 (16 bit unsigned integer, length: 1 word)

  • Int16 (16 bit signed integer, length: 1 word)

  • UInt32 (32 bit unsigned integer, length: 2 words)

  • Int32 (32 bit signed integer, length: 2 words)

  • UInt64 (64 bit unsigned integer, length: 4 words)

  • Int64 (64 bit signed integer, length: 4 words)

  • Float (single-precision floating point, length: 2 words)

  • Double (higher-precision floating point, length: 4 words)

  • RawHex (raw data of the read memory area as hexadecimal string)

For function codes 1 and 2: Bool, length 1

valueGain

Constant factor of the read value to obtain the correct value (default: 1.0)

valueOffset

Constant offset of the read value to obtain the correct value (default: 0.0)

isLittleEndian

If true, interprets the first read byte as the least significant byte when reading the value. (Default: false ⇒ big-endian)

Response message

PropertyDescription

resultCode

Result code ("Ok" or "Error")

data.Variable

Read value

robogate.set_led

This method is only available on RoboGate devices powered by Turck. Configures the blinking behavior of an HMI LED on the device.

ParameterDescription

name

Name of the LED

  • red, green, blue : Upper LED

  • ered, egreen: Middle LED

  • bred, bgreen: Lower LED

modus

Blink mode

  • off: Permanently off

  • on: Permanently on

  • flash: Blinks at the frequency of frequence

  • heartbeat: Blinks in the rhythm of a heartbeat

robogate.opcua.triggerReadGroup

This method enables a re-read of an OPC UA poll group. This can be used, for example, to only read an OPC UA group under certain conditions, which can help reduce CPU load.

ParameterDescription

server

Name of the configured server

name

Name of the OPC UA group to be triggered

Note: the module itself only triggers the specified group. The module only outputs status information about whether the action was successful. See also the figure.

edgemethod opcuagruppe
Figure 2. OPC UA group trigger in typical use

If the group should respond exclusively to the trigger and not to regular polling, the polling of the respective OPC UA group must be set to 0 seconds.

robogate.opcua.callMethod

With the callMethod, OPC UA methods can be called. The following parameters must be specified:

ParameterDescription

server

Name of the configured server

objectNodeid

NodeId for the object to be used

methodNodeid

NodeId for the method to be used

inputParameter

JSON with the input parameters ( "<PARAMETER NAME>": <VALUE>, "<PARAMETER NAME>": <VALUE>, …​ )

robogate.opcua.<OpuUA Methode>

This method is similar to the callMethod, but has the advantage that objectNodeid and methodNodeid do not need to be specified in the EdgeMethod. These have already been defined in the EdgeMapping of the OPC UA module. The method name for calling is also defined in the OPC UA module. The input parameter (in the example x) must correspond to the name on the OPC UA server. See the next figure.

callquadrat
Figure 3. OPC UA method call and the corresponding entry in OPC UA Expert