7/9/2010 6:41 PM | |
Joined: 7/2/2008 Last visit: 3/14/2023 Posts: 928 Rating:
|
Hello Richard,
I hope I could understand your problem correctly. There's a difference between local data (TEMP) of an FB and STAT data. The STAT (STATic) variablesare located in the instance data block which is assigned to the called FB and confusingly can be referred to as local data of FB in help files. The TEMP (local data) is part of the CPU system memory that you can use for scratching (TEMPorarily)but not for storing data. When you move MD1500 to STAT it means you move it to a double word register in the instance data block.
When you access L12.0 it means you are trying to access a bit in local memory (TEMP) which might not be clean and needs to be intialized. You shouldaccess DIX12.0 instead of L12.0 If you still have a problem then I think it will be better if you upload your program here. Best regards. H-H |
This contribution was helpful to
1 thankful Users |
Follow us on