This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
comfilehmi:hmieditor_susik:index [2023/04/07 12:46] COMFILE Technology [Example] |
comfilehmi:hmieditor_susik:index [2024/02/01 13:27] (current) COMFILE Technology |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Variables and Expressions====== | + | ====== Internal Variables and Expressions====== |
- | ===== Variables ===== | + | ===== Internal Variables ===== |
- | In the ComfileHMI, a //variable// refers to a named location in the ComfileHMI hardware's memory. | + | In the ComfileHMI, a //Internal variable// refers to a named location in the ComfileHMI hardware's memory. |
- | If a variable is used without first being declared, it will be implicitly declared and available for use immediately. | + | {{ :comfilehmi:hmieditor_susik:hmiandplc2.png?nolink |}} |
+ | |||
+ | If a Internal variable is used without first being declared, it will be implicitly declared and available for use immediately. | ||
* All variables are global, so **they must be given unique names**, and can be used on any screen. | * All variables are global, so **they must be given unique names**, and can be used on any screen. | ||
Line 15: | Line 17: | ||
* //Motor Status// is invalid because it contains a space | * //Motor Status// is invalid because it contains a space | ||
- | A list of variables in use can be obtained from the ComfileHMI Editor's main menu: //Project//->//View Addresses and Variables in Use//. | + | A list of variables in use can be obtained from Comfile Studio's main menu: //Project//->//View Addresses and Variables in Use//. |
==== String Variables ==== | ==== String Variables ==== | ||
- | String variables were added in a subsequent version of the ComfileHMI Editor software. They are declared and used with ''$'' prefix. For example <html><code>$a="hello"</code></html>. | + | String variables were added in a subsequent version of Comfile Studio. They are declared and used with a ''$'' prefix. For example <html><code>$a="hello"</code></html>. |
===== Internal Memory ===== | ===== Internal Memory ===== | ||
Internal memory is a specific memory region in the ComfileHMI hardware. It is volatile, so it will be erased when the ComfileHMI hardware is powered off. | Internal memory is a specific memory region in the ComfileHMI hardware. It is volatile, so it will be erased when the ComfileHMI hardware is powered off. | ||
+ | |||
+ | {{ :comfilehmi:hmieditor_susik:arrayexplain2.png?nolink |}} | ||
There are 1024 memory locations (indexed 0~1023) that can be written and read to. They can store 64-bit integers and double-precision floating point values. | There are 1024 memory locations (indexed 0~1023) that can be written and read to. They can store 64-bit integers and double-precision floating point values. |