Adding and Editing a Literal
In the Basic Blocks palette or toolbar, click a * Literal button (
,
,
,
,
). The mouse cursor is loaded with a literal.
Click in the drawing area to place the literal.
You can edit the value of the literal.
Do one of the following:
- Right-click the literal and select Edit Literal from the context menu.
- Double-click the literal.
The Literal editor window opens.
- Activate the respective Numeric * option when you need a numeric literal in hexadecimal or binary format.
- Activate the Others option when you need a numeric literal in physical representation, or a non-numeric literal.
In the combo box, enter or select a value for the literal.
If you want to use an enumerator as literal, it is recommended that you enter the enumeration name as qualifier, to avoid ambiguities: <enumeration_name>.<enumerator_name> Otherwise, a warning WMdl942 will be issued during code generation if two different enumerations use the same enumerator name.
Click OK to close the Literal editor.
When you selected an invalid value, an error message opens.
- Click OK to confirm the message, and correct the value in the Literal editor.
See also