
15
System hardware interface channel events
2 Application Programming Interface (API)
PHD API Reference
nxs.dout
Event
nxs.dout
Event Data
Keys
Values
Description
OUTPUT1
<0..1>
Low side output 1. 0 = disabled. 1 = enabled.
OUTPUT2
<0..1>
Low side output 2. 0 = disabled. 1 = enabled.
P12V0
<0..1>
12V output. 0 = disabled. 1 = enabled.
P5V0
<0..1>
5V output. 0 = disabled. 1 = enabled.
GPIO2
<0..1>
GPIO output 2. 0 = disabled. 1 = enabled.
GPIO3
<0..1>
GPIO output 3. 0 = disabled. 1 = enabled.
GPIO4
<0..1>
GPIO output 4. 0 = disabled. 1 = enabled.
GPIO5
<0..1>
GPIO output 5. 0 = disabled. 1 = enabled.
GPIO6
<0..1>
GPIO output 6. 0 = disabled. 1 = enabled.
Direction
input
Channel
nxs
Notes
Received by the application when subscribed to.
The example below assumes the Storyboard application is set up to call Lua function
dout_receive
when the
nxs.dout
event occurs. Event data is available through the
mapargs
argument.
Lua Example
function
dout_receive
(
mapargs
)
local
ev
=
mapargs
.context_event_data
local
output1
=
ev
["
OUTPUT1
"]
("
State of OUTPUT1 is
")
if
(
output1
~=
nil
)
then
if
(
output1
==
0
)
then
("
disabled
")
else
("
enabled
")
end
end
-- Other DOUT values left as an exercise
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...