
62
Receive Subscriptions
Appendix A
Instruction book, PHD API Reference
j1939.canX.pgnYYYYYY.saZZ
Event
j1939.canX.pgnYYYYYY.saZZ
Event Data
Keys
Values
Description
[parameters]
<parameter data>
Each parameter in the message is accessible using the
parameter name as the key.
Direction
input
Channel
j1939
Notes
Sent by the J1939 service to other services which have subscribed to the event. The
path is described generically where:
•
canX is the name of the interface
•
pgnYYYYYY is the PGN of interest
•
saZZ is the source address of the target CA.
For example, data for PGN 0xF004 from SA 0x00 on interface can0, the path would
be:
j1939.can0.pgn61444.sa0
.
Note that it is possible to exclude the ’saZZ’ argument in order to receive PGN
YYYYYY from any source address. Be aware however that this requires a
corresponding message entry in the configuration file where the
’ignoreSourceAddress’ attribute has been set to ’true’.
Note that all PGN and SA values must be specified in decimal notation (base 10).
Lua Example
Note that the example assumes the application has been configured to call
cb_update_rpm upon receipt of PGN 0xF004.
function
cb_update_rpm
(
mapargs
)
local
ev
=
mapargs
.context_event_data
local
data
= {}
local
rpm
=
ev
["
spn190
"] /
8
local
rpm_rot
= (
rpm
/
10000
*
49
data
["
tach_exterior.pointer_tach_exterior.rot
"] =
rpm_rot
gre
.set_data(
data
)
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...