dayProfileAction = GXDLMSDayProfileAction()
dayProfileAction.startTime = GXTime(GXDateTime('1/12/24 16:00:00','%m/%d/%y %H:%M:%S'))
dayProfileAction.scriptLogicalName = '0.0.10.0.100.255'
dayProfileAction.scriptSelector = 1
dayProfile = GXDLMSDayProfile()
dayProfile.dayId = 1
dayProfile.daySchedules = []
dayProfile.daySchedules.append(dayProfileAction)
activityCalendar = GXDLMSActivityCalendar('0.0.13.0.0.255')
activityCalendar.dayProfileTablePassive = []
activityCalendar.dayProfileTablePassive.append(dayProfile)
activityCalendar.time = GXDateTime(GXDateTime(writeTOD))
self.write(activityCalendar, 9)
activityCalendar.activatePassiveCalendar(self.client)
I am trying to update this TOD in Indian Standard meter using python library but it is throwing Access Error : Device reports a hardware fault this error .Is there any issue with code ?
Hi, It looks correct. Can…
Hi,
It looks correct. Can you try to read the activity calendar and then write the same values back to the meter? Is that working?
BR,
Mikko