
17
System hardware interface channel events
2 Application Programming Interface (API)
PHD API Reference
nxs.encoder_val
nxs.key_press
Event
nxs.encoder_val
Event Data
Keys
Values
Description
encoder_value
<0..4294967295>
Encoder value.
Direction
input
Channel
nxs
Notes
Received by the application when the encoder is rotated clockwise or counter-
clockwise. For each clockwise “click” of the encoder, the value increases by one.
For each counter-clockwise “click” of the encoder, the value decreases by one.
The initial Encoder value is 0xFFFFFFFF / 2 or 2147483647. This value minimizes
the likelihood of a roll over or roll under of the count, but the possibility of a roll
over or roll under should still be accounted for.
Lua Example
Event
nxs.key_press
Event Data
Keys
Values
Description
keypress
<key_string>
A string containing the name of the key that was pressed.
Direction
input
Channel
nxs
Notes
Received by the application when a keypad key is pressed.
The key_string published is read from the keypad configuration XML file.
The example below assumes the Storyboard application is set up to call Lua function
key_press
when the
nxs.key_press
event occurs. Event data is available through the
mapargs
argument.
Lua Example
function
key_press
(
mapargs
)
local
ev
=
mapargs
.context_event_data
local
key
=
ev
["
keypress
"]
if
(
key
~=
nil
)
then
print("
Key pressed:
"..
key
)
end
end
Summary of Contents for PHD28
Page 1: ...Parker Hannifin Display PHD User Guide UG PHD 1040001 201707 010...
Page 52: ...44 PHD Mounting the PHD 9 1 2 PHD50 Figure 18 PHD50 dimensions mm...
Page 53: ...User Guide 45 Mounting the PHD 9 1 3 PHD70 Figure 19 PHD70 dimensions mm...
Page 58: ...Parker Hannifin Display PHD User Guide HY33 5021 IB US...
Page 59: ...PHD Network Interface Configuration Publ no HY33 5021 M1 UK Edition 2017 02 02...
Page 75: ...PHD API Reference Publ no HY33 5021 M2 UK Edition 2017 02 13...