User Tools

Site Tools

한국어

comfilehmi:hmieditor_function:index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
comfilehmi:hmieditor_function:index [2018/12/27 16:39]
COMFILE Technology [System Functions]
comfilehmi:hmieditor_function:index [2019/05/23 17:21] (current)
COMFILE Technology [System Functions]
Line 33: Line 33:
  
   * ''​scale(input,​ minimum input, maximum input, minimum output, maximum output)''​ : Scales ''​input''​ proportionally to (''​maximum input''​ - ''​minimum input''​) / (''​maximum output''​ - ''​minimum output''​).   * ''​scale(input,​ minimum input, maximum input, minimum output, maximum output)''​ : Scales ''​input''​ proportionally to (''​maximum input''​ - ''​minimum input''​) / (''​maximum output''​ - ''​minimum output''​).
 +  * ''​float_to_bytes(floatValue,​ "​variable1",​ "​variable2",​ "​variable3",​ "​variable4"​)''​ : Decomposes a floating point value into its composed bytes. ​ Afterward the bytes can be manipulated in various ways to, for example, change the byte order and store the values in addressable internal memory. ​ ''​variable1''​ is the least significant byte and ''​variable4''​ is the most significant byte. ''​variable''​s are case-sensitive and must be enclosed in double quotes.
  
  
Line 64: Line 65:
  
   * ''​action_group_repeat_index()''​ : Retrieves the number of times a user event was executed.   * ''​action_group_repeat_index()''​ : Retrieves the number of times a user event was executed.
 +  * ''​cpu_usage()''​ : Returns the current CPU utilization as a percentage.
 +  * ''​firmware_version''​ : Retrieves the firmware version running on the panel PC.  For example ''​273''​ corresponds to v2.73.
   * ''​idle_seconds()''​ : Returns the number of seconds since the screen was last touched.   * ''​idle_seconds()''​ : Returns the number of seconds since the screen was last touched.
   * ''​idle_minutes()''​ : Returns the number of minutes since the screen was last touched.   * ''​idle_minutes()''​ : Returns the number of minutes since the screen was last touched.
   * ''​prev_screen_id()''​ : Returns the id of the screen that the current screen navigated from.   * ''​prev_screen_id()''​ : Returns the id of the screen that the current screen navigated from.
-  * ''​screen_id()''​ : Returns the id of the screen ​the current screen.+  ​* ''​reboot_system()''​ : Reboots the panel PC 
 +  ​* ''​screen_id()''​ : Returns the id of the current screen
 +  * ''​set_data_processing_period(value)''​ : This function can be used to throttle CPU usage. ​ If the CPU usage for a project is too high, the data processing period can be increased to throttle back the amount of resources that the HMI software dedicates to processing data.  ''​value''​ is in units of milliseconds;​ default is 1 ms.
   * ''​tick_count()''​ : The number of milliseconds since the system was powered on.   * ''​tick_count()''​ : The number of milliseconds since the system was powered on.
   * ''​touch_duration()''​ : The number of milliseconds since the last time the screen was touched. ​ If the screen has never been touched -1 is returned.   * ''​touch_duration()''​ : The number of milliseconds since the last time the screen was touched. ​ If the screen has never been touched -1 is returned.
-  * ''​cpu_usage()''​ : Returns ​the current CPU utilization as percentage.+  * ''​verify_developer_key(value)''​ : Using the ComfileHMI panel PC's runtime configuration screen, ​unique key can be assigned to a individual device or group of devices. ​ ''​verify_developer_key''​ can then be used at runtime within a project to test which device a project is running on and dynamically offer a different experience. The developer key cannot be read; one can only check if ''​value''​ matches the developer key assigned to the device. ​ This function returns ''​1''​ if the ''​value''​ matches the developer key assigned to the device or ''​0''​ if it does not.
  
 ===== Type Conversion Functions ===== ===== Type Conversion Functions =====
comfilehmi/hmieditor_function/index.1545896369.txt.gz · Last modified: 2018/12/27 16:39 by COMFILE Technology