Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
  • Gurux Club
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Single action schedule
gxdn
Profile picture for user Administrator
By Administrator, 23 January, 2018
Single action schedule object is used to execute selected script in given time.

Properties

  • 1. Logical Name
    Logical name of the object.
  • 2. Executed script
    Script to execute.
  • 3. Type
    Execution type.
  • 4. Execution time
    List of script execution times.
    Note! Time zone or Daylight Saving Time info is not send in part of the execution time. Some meters are executing this using meter's time and some as EPOCH time.

Actions

There are no actions available for this object type.

Access data from ANSI C

  • Initialize
  • Show
//Add new action schedule.
unsigned char target[6] = { 0, 1, 10, 1, 101,255 };
gxtime* tm;
const unsigned char ln[6] = { 0,0,15,0,0,255 };
cosem_init2((gxObject*)&actionSchedule, DLMS_OBJECT_TYPE_ACTION_SCHEDULE, ln);
memcpy(actionSchedule.executedScriptLogicalName, target, 6);
actionSchedule.executedScriptSelector = 1;
actionSchedule.type = DLMS_SINGLE_ACTION_SCHEDULE_TYPE1;
//Add new execution time to the list.
tm = (gxtime*)malloc(sizeof(gxtime));
time_now(tm);
arr_push(&actionSchedule.executionTime, tm);
//How to access action schedule data.
int pos = 0, ret;
gxtime* tm;
hlp_printLogicalName("Name: %s\r\n", object->executedScriptLogicalName);
printf("Executed Script Selector: %d\n",object->executedScriptSelector);
printf("Type: %d\n", object->type);
for (pos = 0; pos != object->executionTime.size; ++pos)
{
  ret = arr_getByIndex(&object->executionTime, pos, (void**)&tm);
  if (ret != DLMS_ERROR_CODE_OK)
  {
    break;
  }
  time_print(tm);
}

Book traversal links for Single action schedule

  • Invocation counter
  • Up
  • Special days table
  • Log in or register to post comments
  • Create new account
  • Reset your password

Book navigation

  • Activity calendar
  • Association Logical Name
  • Auto Connect
  • Auto answer
  • Clock
  • Compact data
  • Data
  • Demand register
  • Disconnect control
  • Extended register
  • GPRS modem setup
  • GSM diagnostic
  • IEC HDLC setup
  • IEC local port setup
  • IPv4 setup
  • IPv6 setup
  • Image transfer
  • Limiter
  • M-Bus Client
  • M-Bus master port setup
  • M-Bus slave port setup
  • MAC address setup
  • Modem configuration
  • PPP setup
  • Profile generic
  • Push Setup
  • Register
  • Register Monitor
  • Register activation
  • Register table
  • SAP assignment
  • Script table
  • Security setup
  • Single action schedule
  • Special days table
  • Status mapping
  • Tcp Udp Setup
  • Utility tables

Hire Us!

Latest Releases

Fri, 03/24/2023 - 14:22
gurux.dlms.c 20230324.1
Thu, 03/23/2023 - 11:01
GXDLMSDirector 9.0.2303.2301
Thu, 03/23/2023 - 09:10
Gurux.DLMS.Python 1.0.142
Wed, 03/22/2023 - 13:51
Gurux.DLMS.Net 9.0.2303.2201
Wed, 03/22/2023 - 10:15
gurux.dlms.c 20230322.1

Open bugs

Gurux.DLMS.AMI4
1
Gurux.DLMS.Android
1
gurux.dlms.c
3
gurux.dlms.cpp
3
gurux.dlms.delphi
1
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin