I ama a beginner and for experiment I have bought the Beckhoff's Twincat PLC HMI supplement for the hmi developement within the PLC Control software, but so far unable to create a single visualization.
Now go to Variables, select Text Display and press F2. This will bring up a list of variables from your program. Select an integer variable if you used %d from above
If you login, you will now see the value of the variable you selected.
You Americans are really helpful and good nation.... no wonder 3rd world happens to have such bad ideas for Americans... I am really thankful to you...