Your project helped me in programming my Java version, so I will add something new... In newer versions of CoDeSys there is a new setting Request on bootup/ Answer bootup request. When Answer bootup request is activated, the current value of the variable(s) can be requested through this. The data is in CTelegram format, but there are a few changes.
CTelegram.ID = 6
CTelegram.Index = Cob-ID
CTelegram.SubIndex = 0 / Variable index If "Pack-Variables" is disabled
CTelegram.items = Number of Variables / 1 If "Pack-Variables" is disabled
CTelegram.Length = 0x14
CTelegram.Counter = always 0
CTelegram.Flags = always 0
CTelegram.Checksum = always 0
CTelegram.Data = byte[0]
Your project helped me in programming my Java version, so I will add something new... In newer versions of CoDeSys there is a new setting Request on bootup/ Answer bootup request. When Answer bootup request is activated, the current value of the variable(s) can be requested through this. The data is in
CTelegram
format, but there are a few changes.Example: