
10
Version supervisor events
2 Application Programming Interface (API)
PHD API Reference
Version supervisor events
serial
Event
serial
Event Data
Keys
Values
Description
name
<string>
Name of device (e.g. PHD28, PHD50, PHD70).
pcb_serial
<string>
Serial number of device.
pcb_mfgdate
<string>
Manufacturing date, in YYYYMMDD format.
serial
<string>
Serial number of device.
mfgdate
<string>
Manufacturing date, in YYYYMMDD format.
Direction
input
Channel
version
Notes
Received by the application when subscribed to.
The
serial
event contains the name, serial number and manufacturing date for the
device. The key names are
name
,
serial
and
mfgdate
.
The example below assumes the Storyboard application is set up to call Lua function
serial_receive
when the
serial
event occurs. Event data is available through the
mapargs
argument.
Lua Example
function
serial_receive
(
mapargs
)
local
ev
=
mapargs
.context_event_data
local
name
=
ev
["
name
"]
local
serial
=
ev
["
serial
"]
local
mfgdate
=
ev
["
mfgdate
"]
local
pcb_serial
=
ev
["
pcb_serial
"]
local
pcb_mfgdate
=
ev
["
pcb_mfgdate
"]
if
(
name
~=
nil and
serial
~=
nil and
mfgdate
~=
nil
and
pcb_serial
~=
nil and
pcb_mfgdate
~=
nil
)
then
("
Model: ". .
ev[
"
name
"])
("
PCB serial number: ". .
ev[
"
pcb_serial
"])
("
PCB manufactured: ". .
ev[
"
pcb_mfgdate
"])
("
Serial number: ". .
ev[
"
serial
"])
("
Manufactured: ". .
ev[
"
mfgdate
"])
end
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...