
77
Instruction book, PHD API Reference
CANopen channel events
Appendix B
cos.set_od
Event
cos.set_od
Event Data
Keys
Values
Description
index
<0..65535>
Index of the object dictionary element
subindex
<0..65535>
Subindex of the object dictionary element
value
<0..4294967295>
New value of the object dictionary element.
Direction
output
Channel
cos
Notes
Sent by the application to set the value of a given object dictionary item.
The example below assumes the Storyboard application is set up to call Lua function
canopen_set_od
with arguments of
index
and
subindex
with values of 0 through
65535 and
value
with values of 0 through 4294967295.
Lua Example
function
canopen_set_od
(
mapargs
)
local
index
=
mapargs[
"
index
"]
local
subindex
=
mapargs[
"
subindex
"]
local
value
=
mapargs[
"
value
"]
local
data
= {}
if
(
index
~=
nil and
subindex
~=
nil and
value
~=
nil
)
then
data
["
index
"] =
index
data
["
subindex
"] =
subindex
data
["
value
"] =
value
gre.
send_event_data("
cos.set_od
",
"
4u1 index 4u1 subindex 4u1 value
",
data
, "
cos
")
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...