
11
Version supervisor events
2 Application Programming Interface (API)
PHD API Reference
Version
Event
version
Event Data
Keys
Values
Description
count
<0..100>
Number of version items in message.
partnumX
<0..4294967295>
Software part number for entry X.
nameX
<string>
Software name for entry X.
majorX
<0..4294967295>
Software major version number for entry X.
minorX
<0..4294967295>
Software minor version number for entry X.
Direction
input
Channel
version
Notes
Received by the application when subscribed to.
The
version
event contains count version items, each consisting of the four keys,
partnumX
,
nameX
,
majorX
and
minorX
, where X is a number from 0 to count.
The example below assumes the Storyboard application is set up to call Lua function
version_receive
when the
version
event occurs. Event data is available through the
mapargs
argument. Note that Lua "for loops" are inclusive, so the example below is
written to loop from 0 through count -1.
Lua Example
function
version_receive
(
mapargs
)
local
ev
=
mapargs
.context_event_data
local
count
=
ev
["
count
"] - 1
local
i
for
i
=
0
,count
do
("
Name: ". .
ev[
"
name
"..
i
])
("
Part number: ". .
ev[
"
partnum
"..
i
])
("
Version: V
"..
ev
["
major
"..
i
].."."..
string
.format("
%02d
",
ev
["
minor
"..
i
]))
end
-- Input validation of partnumX against nil 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...