12.07.2015 Views

GX Works 2 Operating Manual Structured Project - Automation ...

GX Works 2 Operating Manual Structured Project - Automation ...

GX Works 2 Operating Manual Structured Project - Automation ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

10.5 Compilation10.5.2 Assigning devicesAssign the devices set on the Device/Label Automatic-Assign Setting screen during compilation.In structured ladder/FBD and ST, create actual programs with temporary variable during compilation.Temporary variable is a device to retain the operation result of programs temporarily, and assign thedevice within the range set on the Device/Label Automatic-Assign Setting.Temporary variable is used for such as the following situations.• Ladders are branched in structured ladder/FBD• Over 3 items of four arithmetic operations are used in ST• Other situations which require retaining the operation result temporarilyTemporary variable can be checked by compilation result. (Section 6.2.7)■Assigning devices defined on the label setting editor to the labelsThe following explains the device assignment to the labels defined on the label setting editor.For global labels, only labels whose “Device”/ “Address“ are blank on the label setting editor can beassigned.When both global labels and local labels are assigned, global labels are assigned to devices first, andthen local labels are assigned to devices.● Assigning only one type of device automaticallyAssign the devices in top down order on the label setting editor.Devices are assigned in descending order on the screen (assigned from higher number of a devicenumber) of device range set on the Device/Label Automatic-Assign Setting.For pointer (P), devices are assigned in ascending order (assigned from lower number of a devicenumber).ExampleSet the following device range.• D device: 8000 to 81919SEARCHING FORSPECIFIC POSITION10CONVERTING/COMPILING PROGRAMS11WRITING/READING DATA TO/FROMPROGRAMMABLE CONTROLLER CPU12MONITORING13USING USERLIBRARIES14DefinitionorderLabel nameData type1 Label_A Word (signed) D81912 Label_B Word (signed) D81903 Label_C Double-precision real D81864 Label_D Double-precision real D8182Example of devices to beassignedDescendingorderSETTING OPTIONSIAPPENDIXAINDEX10.5.2 Assigning devices 10 - 15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!