Variable status bit in internal variables

Variable status bit in internal variables

Hi! I'm trying to read the status bits of the variables but I can't get some of them.

The configuration I have in Service engine settings (zenon Supervisor) and Project setting - compiling (zenon Logic)  is as follows:
  1. I have “State/Timestamp for Intern Driver variables” enabled - Yes. 
  2. Allocate status bits for variables having properties - Yes
  3. Embed symbols of all variables - Yes
  4. Keep case of embedded symbols - Yes 
Compiling

I have tried to set and get the values of bits M1-M8 (with VSIGetBit and VSISetBit) and I have succeeded, but when I try to get the values of WR_SUC and WR_ACK while changing the variable values in zenon runtime (service engine), I get no changes in these bits. 
I also get the time and date with VSIGetDate and VSIGetTime.
I do all this in online (connection) in zenon logic and the part of the code and the part of the code that is not working correctly is as follows:
Code
As I understood it, with the configuration I have I could read all the status bits of the internal variable. Is there something missing in my configuration or in the code?

    Disclaimer

    This document governs the use of our Community Forum. By registering and using the platform, you accept these conditions.

    The COPA-DATA Community Forum serves to encourage the exchange of information and experience about the zenon software between forum users respectively zenon users.

    Please mind that any published information on the Community Forum is the subjective opinion and view based on the experience and the level of knowledge of the author. COPA-DATA does not overtake any responsibility for the content and the accuracy of the shared information.

    Users of the Community Forum are encouraged to share only well-founded experiences and to point out any risks associated with the implementation of proposed solutions to problems. COPA-DATA at its absolute discretion, reserves the right to moderate the forum. In this connection COPA-DATA may remove any information containing false facts, potentially dangerous solutions, bad language or content that may insult, degrade or discriminate others. COPA-DATA may block a non-complying user from forum access if the user violated this provision.

    COPA-DATA reserves the right to change this document from time to time at own discretion.


    Ing. Punzenberger COPA-DATA GmbH
    Karolingerstraße 7b · 5020 Salzburg · Austria
    www.copadata.com