![]() At compilation time, the compiler will take an address out of the memory area and assign it to the local label, e.g. M6000 to M7000) or a B-range or whatever depending on what you have defined. In my example, the compiler takes a device address out of the device memory area that you have reserved for bits. The compiler needs to assign an address to this local bit at compilation time before transferring it to the plc. For example, say you use a local label of datatype Bit somewhere in your code. You can define these in the Tool menu (Device/Label Automatic-Assign Setting). The compiler needs a device memory area (for each device datatype: timers, bits, counters, latch dataregisters.) which it can use to assign local labels (and global labels without device assigned to them) at compilation time. You need to define a bigger area of devices for the compiler to use.
0 Comments
Leave a Reply. |