API reference
Namespaces
Name |
Description |
---|---|
TwinCAT HMI namespace |
Functions
Name |
Description |
---|---|
Decodes a Base64 string. | |
Encodes a user-defined text string into a Base64 string. | |
Compares two values for equality | |
Clones a data object. | |
Restores a path. | |
Creates a string with a Globally Unique Identifier |
Constants
Name |
Description |
---|---|
TCHMI_ENGINEERING Available from version 1.12 | Is true if the framework has been loaded into the Designer or Live View instance. |
TCHMI_DESIGNER Available from version 1.12 | Is true if the framework has been loaded into the Designer instance. |
TCHMI_LIVEVIEW Available from version 1.12 | Is true if the framework has been loaded into Live View instance. |
TCHMI_RUNTIME Available from version 1.12 | Is true if the framework was loaded into the Runtime instance. |
TCHMI_ENABLE_DESIGNER_MODE Available from version 1.8 Please use instead: TCHMI_ENGINEERING | Is true if the framework has been loaded into the Designer or Live View instance. |
TCHMI_ENABLE_DESIGNER_MODE_MASTER Available from version 1.8 Please use instead: TCHMI_DESIGNER | Is true if the framework has been loaded into the Designer instance. |
TCHMI_ENABLE_DESIGNER_MODE_SLAVE Available from version 1.8 Please use instead: TCHMI_LIVEVIEW | Is true if the framework has been loaded into Live View instance. |
TCHMI_CONSOLE_LOG_LEVEL Available from version 1.8 | See TcHmi.Log |
Events
The framework fires many events at different times. These can be used graphically or via JavaScript code (TcHmi.EventProvider.register).
Each control has many events, which are documented under the control (see Base Control, for example). The system also provides a series of events:
Name |
Description |
---|---|
Available from version 1.12 | There was a change in the tchmiconfig.json file. This can only occur during engineering. |
Available from version 1.8 | At this point, the system is initialized and the main control (view) was loaded. Other controls may not be loaded or visible at this time. |
Available from version 1.8 | The language of the current display has been set or changed. |
Available from version 1.10 | The theme system has new values or CSS styles. In addition, this event is fired when a new font is loaded. This can happen at any time for characters that have never been displayed on the screen before. |
Available from version 1.12 | A new user has been logged in. |
Available from version 1.12 | A new user has been logged in and / or the configuration (time zone, ...) of the current user is now known to the system or has changed. |
Available from version 1.8 | The system now knows or has changed the group membership of the current user. |
Available from version 1.8 | The communication to the server was successfully established. |
Available from version 1.8 | The communication to the server was interrupted. In normal operation, the connection is automatically re-established. |
- TcHmi
- tchmi_base64decode
- tchmi_base64encode
- tchmi_clone_object
- tchmi_create_guid
- tchmi_css_escape_selector
- tchmi_decode_control_characters
- tchmi_decode_html
- tchmi_encode_html
- tchmi_equal
- tchmi_escape_regex
- tchmi_format_string
- tchmi_path
- tchmi_text_to_html
- any
- Array
- boolean
- JQuery
- Date
- number
- null
- object
- string
- undefined
- TcHmiCharting.LineGraph.Point
- TcHmiCharting.IAxis.Position
- Map