
72
Instruction book, PHD API Reference
CANopen channel events
Appendix B
cos.od
Event
cos.od
Event Data
Keys
Values
Description
index
<0..65535>
Index of the object dictionary element
subindex
<0..65535>
Subindex of the object dictionary element
datatype
<0..65535>
Data type of the object dictionary element
access
<0..65535>
Access level of the object dictionary element
value
<0..4294967295>
Value of the object dictionary element
Direction
input
Channel
cos
Notes
Received by the application in response to a
cos.request_od
event.
The example below assumes the Storyboard application is set up to call Lua function
canopen_receive_od
when a
cos.od
event occurs. Event data is available through
the mapargs argument.
Lua Example
function
canopen_receive_od
(
mapargs
)
local
ev
=
mapargs
.context_event_data
local
index
=
ev
["
index
"]
local
subindex
=
ev
["
subindex
"]
local
value
=
ev
["
value
"]
if
(
ev
["
index
"] ~=
nil and
ev
["
subindex
"] ~=
nil and
ev
["
value
"] ~=
nil
)
then
("
Received
"..
ev
["
value"
].."
from OD:
"
..
ev
["
index"
].."
,
"..
ev
["
subindex
"].."
.
")
end
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...