Adding a value to a program
You can assign a value (literal) without creating a variable.
- Start editing the real-time application.
- In the menu bar, click Program.
- On the worksheet, click Add.
- A dialogue box is opened.
- Select the Values tab.
- In the Data type drop-down list, select the data type.
- In the Value text field, enter the desired value.
- If the value is out of the data type range, an error message is displayed.
- Click OK.
- The value is added to the worksheet.
- Drag-and-drop the value to the desired position in the worksheet.