246
14 PROCEDURES BEFORE OPERATION
14.9 Programming
14.9
Programming
Create a program. This section describes how to create a program using the following program example.
Program example
• When Start1 turns on, Timer1 starts counting, and Lamp1 turns on.
• When the current value of Timer1 reaches 1000, Lamp1 turns off.
• When Stop1 turns on, Lamp1 turns off.
Registering labels
Label is a variable whose name and data type can be declared by a user.
Use of labels allows programming without concern to devices and buffer memory addresses. For this reason, programs using
labels can be used in other systems where the module configuration is different.
Labels can be registered on the label editor.
[Navigation]
[Program]
[Scan]
[MAIN]
[ProgPou]
[Local Label]
Procedure
Register the label "Start1" in the program example, following the procedure below.
Register other labels in the program example in the same way.
• The class, and constant of labels can be set as needed by clicking the [Show Details] button on the label
editor.
• Labels can also be registered while programming without opening the label editor. (
program elements by key input)
• Devices can be assigned to global labels. Open the global label editor, and enter a device in the "Assign
(Device/Label)" field.
1.
Enter the name, "Start1", in the "Label Name" field (1).
2.
Click the button (2) on the right of the "Data Type" field
to open the "Data Type Selection" window.
3.
Specify the data type. Select "Bit", and click the [OK]
button.
(1)
(2)
Содержание MELSEC iQ-F FX5UC Series
Страница 2: ......
Страница 142: ...140 8 CONNECTOR CONVERSION MODULE PERFORMANCE SPECIFICATIONS 8 2 External Dimensions MEMO ...
Страница 144: ...142 9 SD MEMORY CARD PERFORMANCE SPECIFICATIONS 9 2 Formatting MEMO ...
Страница 146: ...144 10 BATTERY PERFORMANCE SPECIFICATIONS 10 2 Battery Life MEMO ...
Страница 275: ...APPX Appendix 4 Handling of Batteries and Devices with Built in Batteries in EU Member States 273 A MEMO ...
Страница 277: ...I 275 MEMO ...
Страница 281: ......