
16
System hardware interface channel events
2 Application Programming Interface (API)
PHD API Reference
nxs.dout_errors
Event
nxs.dout_errors
Event Data
Keys
Values
Description
dout_errors
0x0004 – OUTPUT1_SHORT_BATT
0x0008 – OUTPUT1_SHORT_GND
0x0010 – OUTPUT2_SHORT_BATT
0x0020 – OUTPUT2_SHORT_GND
0x0040 – P5V0_SHORT_BATT
0x0080 – P5V0_SHORT_GND
0x0100 – P12V0_SHORT_BATT
0x0200 – P12V0_SHORT_GND
A 16-bit value with each bit flagging a
different dout error.
Direction
input
Channel
nxs
Notes
Received by the application in response to an nxs.dout_errors event.
More than one bit may be set at a time. The bit field is only published when it
changes; this includes when there is no longer an error condition.
The example below assumes the Storyboard application is set up to call Lua function
dout_errors_receive
when the
nxs.dout_errors
event occurs. Event data is available
through the
mapargs
argument.
Lua Example
function
dout_errors_receive
(
mapargs
)
local
ev
=
mapargs
.context_event_data
local
errors
=
ev
["
dout_errors
"]
if
(
errors
~=
nil
)
then
if
(
bit32
.band(
errors
,
0x0004
) ~=
0x0000
)
then
("
OUTPUT1_SHORT_BATT error bit set.
")
end
end
-- Other DOUT errors left as an exercise
end
Содержание PHD28
Страница 1: ...Parker Hannifin Display PHD User Guide UG PHD 1040001 201707 010...
Страница 52: ...44 PHD Mounting the PHD 9 1 2 PHD50 Figure 18 PHD50 dimensions mm...
Страница 53: ...User Guide 45 Mounting the PHD 9 1 3 PHD70 Figure 19 PHD70 dimensions mm...
Страница 58: ...Parker Hannifin Display PHD User Guide HY33 5021 IB US...
Страница 59: ...PHD Network Interface Configuration Publ no HY33 5021 M1 UK Edition 2017 02 02...
Страница 75: ...PHD API Reference Publ no HY33 5021 M2 UK Edition 2017 02 13...