(16.01.2023, 09:14)Daniel Wrote: Please explain the steps how do you perform the write.now = os.date('*t')
wday = now.wday == 1 and 7 or now.wday - 1
time = {
day = wday,
hour = now.hour,
minute = now.min,
second = now.sec,
}
date = {
day = now.day,
month = now.month,
year = now.year,
}
grp.write('1/0/6', time, dt.time) -- time value
grp.write('1/0/7', date, dt.date) -- date value
log(time)
grp.write('0/4/11', false)
------------
This is a standard script. It works on other logic machines. The problem is only on the current one.
The last line is the address to check that there is a connection and the values are being sent (the values are being sent).
I tried deleting objects in the logic engine and recreating them from ets. Tried to create objects completely manually - nothing helps.
(16.01.2023, 09:19)spoty2008 Wrote:(16.01.2023, 09:14)Daniel Wrote: Please explain the steps how do you perform the write.now = os.date('*t')
wday = now.wday == 1 and 7 or now.wday - 1
time = {
day = wday,
hour = now.hour,
minute = now.min,
second = now.sec,
}
date = {
day = now.day,
month = now.month,
year = now.year,
}
grp.write('1/0/6', time, dt.time) -- time value
grp.write('1/0/7', date, dt.date) -- date value
log(time)
grp.write('0/4/11', false)
------------
This is a standard script. It works on other logic machines. The problem is only on the current one.
The last line is the address to check that there is a connection and the values are being sent (the values are being sent).
I tried deleting objects in the logic engine and recreating them from ets. Tried to create objects completely manually - nothing helps.
The values of the object in the logic machine change, but nothing is written to the bus. I watch group monitoring from ets.