Skip to main content

5.8 Function Points

Function points are the key configuration methods that connect symbols with live data. Through combined symbols, state switching, attribute values, progress, animation effects, and events, collected data automatically drives the screen and presents the running status of devices. This chapter is organized by task:

📄️ Setting Symbol States

Both regular symbols and combined symbols can have states. A state consists of a condition plus an appearance: the condition is evaluated against the bound value of a symbol attribute, and when it matches, the symbol automatically switches to the corresponding appearance — a regular symbol changes color or plays an animation, while a combined symbol switches to the corresponding child symbol. For example, on and off, or the rotation and stop of a fan, can be configured as two states of a combined symbol; red, yellow, and green alarm lights can serve as three states that switch automatically with the collected value.

📄️ Setting Symbol Events

Events are the core mechanism that drives the canvas with data: by defining event types, event actions, and trigger conditions, symbols automatically change their appearance on data changes or mouse operations. Event types include mouse enter, mouse leave, selection, etc., but the most important is "symbol attribute value change." The attributes of a symbol can be bound to an IDMP element's attribute, and when a trigger condition for this value is met, a specified event action can be triggered. Event actions include starting animations, stopping animations, etc., but the most important action is "setting symbol attributes," which can change the display of the symbol, such as its color, background color, displayed text, etc.