Vd12

This is Siemens MicroWin for anybody else wanting to help.

We have no way of knowing where VD12 gets its value, all we know is that it is a double width variable (32 bit wide). To check if it is only used in one place you need some basic tools.

Save the program under a new name for safety, always recommended. Compile the program and check that the errors in the output box are zero, if there are errors, fix them and then compile again. Once the program has compiled go to 'Cross Reference' and you should find any references to VD12, also look for VB12 and VW12 in case the variable is referenced by parts. There is also the chance that VD12 is indirectly addressed, read the manual on 'Indirect Addressing'. VD12 could also be set in the Data Block, so have a look there. It would also be helpful to check if VD12 is a retained value, if it isn't then it must be set somewhere within the program each time it is started. You are only seeing the Variable internal names, the programmer may have given them human readable names, trying going to the Symbol Table, if there is a list of names there then go to View and enable Symbolic Addressing. It might make the program easier to read. Finally if you want to view a value you use the Status Chart, in the manual look for 'Using the Status Chart to Monitor Your Program'.
 
Back
Top Bottom