5 — VEHICLE CONTROL LANGUAGE (VCL)
Curtis Model 1351 – December 2018
Return to TOC
pg. 98
Conguration of a Transmit Mailbox
Setup_CANopen_Transmit_Mailbox() Sets up the initial parameters for
a CANopen mailbox
is CANopen specic function sets up the initial parameters for a CANopen
mailbox.
It serves the same purpose as the generic setup function, but simplies the setup
for CANopen users.
is function MUST BE called before dening the data for the mailbox or trying
to use the mailbox.
Setup_CANopen_Transmit_Mailbox(Handle,Messsge_
type,Node_ID,Method)
:
Handle e mailbox ID
Message type NMT, SYNC, EMR, SDO_TX, SDO_RX, TPDO,
RPDO
Node ID Node ID to include in the message
Method If set to EVENT (=0) then this mailbox with send
on the send command
(One-time, or non-recurring message)
If set from 4-16,000, it will send every 4mS to 16sec,
based on this value
:
0 Mailbox not setup
1 Mailbox setup
:
Bad_ID Handle out of Range
BAD_MO_ID Message ID is NOT unique