Skip to main content
Skip table of contents

send_load_module(package, sub_type, active)

Features

Loads the Framework Module and returns the UniqueID of the loaded Module.

Parameters

Parameter NameData TypeDefault ValueDescription

package

str-
Package name of module to load

sub_type

int-
Sub type of module to load

0 : None

1 : TCP/IP

2 : Serial

4 : Modbus Slave

5 : Force Compliance

7 : Modbus Master

10 : Other

active

int-
Whether to activate after loading

0 : no active

1 : active

(Used only when sub_type is Force Compliance)

Return

ValueDescription

int

Sub type of loaded module

int

status value
0 : success
Value other than 0 : Error code

int

UniqueID of loaded module

str

Package name of the loaded module

Exception

ExceptionDescription

DR_Error (DR_ERROR_TYPE)

Parameter data type error occurred

DR_Error (DR_ERROR_VALUE)

Parameter value is invalid

DR_Error (DR_ERROR_RUNTIME)

C extension module error occurred

DR_Error (DR_ERROR_STOP)

Program terminated forcefully

Example

PY
sub_type, status, id, name = send_load_module("com.dart.module.default.admittancecontrol", 5, 1)
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.