5/29/2011 9:57 PM | |
Joined: 9/23/2005 Last visit: 11/19/2024 Posts: 4353 Rating: (1454)
|
Hi, Normally it is necessary to be compliance with the variable data type in the user program. For example, a real variable can not be used in logical instruction or a word variable can not be used in arithmetical instructions. The argument AT makes possible declare more than one name to a single variable (address), so that it could be handle as different data types. To do it, it is necessary to declare the variables together (one behind the other). The typing of “AT” argument is not intuitive. It should be typing in the “data type” column, alone, but after the enter it appears in the column “Name”. The attached file has a cast with the declaration. Once declared, just use the variable names at the correspondents instructions types: the int,dint, real, etc. in the arithmetical instructions, and bool, word, dword at the logical instructions. This tip is specialy validy for non optimized blocks. Attachmentat.zip (737 Downloads) |
Last edited by: Pegaia at: 5/29/2011 9:58 PMLast edited by: Denilson Pegaia at: 7/18/2016 6:06:23 PMDenilson Pegaia |
|
This contribution was helpful to3 thankful Users |
Follow us on