
74
Instruction book, PHD API Reference
CANopen channel events
Appendix B
cos.rxNNNN
Event
cos.rxNNNN
where NNNN is equal to the object dictionary item’s index in hexadecimal.
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
input
Channel
cos
Notes
Received by the application when an item in the object dictionary is updated by an
SDO or a PDO message.
Lua Example
function
cos_rx6000
(
mapargs
)
-- This event handler is called when this application receives the
-- cos/cos.rxNNNN event – in this case object 6000.
local
ev
=
mapargs
.context_event_data
local
index
=
mapargs[
"
index
"]
local
subindex
=
mapargs[
"
subindex
"]
local
value
=
mapargs[
"
value
"]
if
(
ev
["
index
"] ~=
nil and
ev
["
subindex
"] ~=
nil and
ev
["
value
"] ~=
nil
)
then
index
=
ev
["
index
"]
subindex
=
ev
["
subindex
"]
value
=
ev
["
value
"]
("
Rcvd [
"..
index
.."
:"
..
subindex
.."
]".."=
"..
value
)
-- Now do something with the new data if needed.
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...