Beijer Electronics iX Developer Software 仕様ガイド

ページ / 48
Function Keys
16.2 Defining Function Key Scripts
Function keys can also be used to trigger scripts.
16.2.1
Area Calculation
Program a function key with the area calculation for the rectangle object:
1. Click on the row for function key F11. Select Script view mode by clicking on
the Script tab at the bottom of the screen.
2. Click on the F11 node, and double-click on its KeyDown node.
3. Calculate the area on the KeyDown event with this code:
Using a function key script eliminates the need for the separate trigger tag
(Calc).
16.2.2
Acknowledge All Alarms
Program a function key with an “Acknowledge All” for alarms:
1. Select the KeyDown node for function key F12.
2. Type the following KeyDown event code:
C# code in the script tab:
Beijer Electronics, MAEN832F
46