5 — VEHICLE CONTROL LANGUAGE (VCL)
Curtis Model 1351 – December 2018
pg. 98
Configuration of a Transmit Mailbox
function
Setup_CANopen_Transmit_Mailbox()
Sets up the initial parameters for
a CANopen mailbox
This CANopen specific function sets up the initial parameters for a CANopen
mailbox.
It serves the same purpose as the generic setup function, but simplifies the setup
for CANopen users.
This function MUST BE called before defining the data for the mailbox or trying
to use the mailbox.
syntax
Setup_CANopen_Transmit_Mailbox(Handle,Messsge_
type,Node_ID,Method)
arguments:
Handle
The 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
returns:
0
Mailbox not setup
1
Mailbox setup
reported errors:
Bad_ID
Handle out of Range
BAD_MO_ID
Message ID is NOT unique