
21
System hardware interface channel events
2 Application Programming Interface (API)
PHD API Reference
nxs.rtc
Event
nxs.rtc
Event Data
Keys
Values
Description
seconds
<0..59>
minutes
<0..59>
hours
<0..23>
day
<1..31>
month
<0..11>
year
<1900..no limit>
Direction
input
Channel
nxs
Notes
Received by the application in response to a nxs.request_rtc event.
Note that if subscribed to, this event generates a new value every second. In
addition, the application is not expected to use the RTC to keep track of time. Rather,
it should use the system time, which is set by the PHD using the RTC on each
startup.
The example below assumes the Storyboard application is set up to call Lua function
rtc_receive
when the
nxs.rtc
event occurs. Event data is available through the
mapargs
argument.
Lua Example
function
rtc_receive
(
mapargs
)
local
ev
=
mapargs
.context_event_data
local
sec
=
ev
["
second
"]
local
min
=
ev
["
minute
"]
local
hr
=
ev
["
hour
"]
local
day
=
ev
["
day
"]
local
mon
=
ev
["
month
"]
local
yr
=
ev
["
year
"]
(
yr
.."-"..
mon
.."-"..
day
.." "..
hr
..":"..
min
..":"..
sec
)
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...