5 — VEHICLE CONTROL LANGUAGE (VCL)
pg. 99
Return to TOC Curtis Model 1351 – December 2018
Define_CANopen_Transmit_Data() Used to dene the data sent from
the mailbox.
is function is used to dene the data sent from the mailbox.
Up to 64 bits can be loaded into a single message.
Multiple Define_CANopen_Transmit_Data calls are used to add additional
data to the message, up to the 64 bit limit (no more than 16 denes per mailbox).
e data is ordered in the same order as the functions are called starting at Bit 1
of Byte 1.
e Mailbox must be disabled to use the Dene Data function (automatically
done by the any setup transmit mailbox function)
Define_CANopen_Transmit_Data(Handle,Data_Source,Start_
Bit,Num_Of_Bits)
:
Handle Holds the ID of the mailbox
Data_Source Address of Data to be sent, such as P_USER_11
Start_Bit e rst, lowest order bit to be included 1-32
Num_OF_Bits How many bits are packed by this function into the
message data 1 – 64
:
0 Data format failed (too many bits or not enough bits
in the data source
1 Data format set
:
Bad_ID Handle out of Range
BAD_MO_ID Message ID is NOT unique
BAD_ACCESS Variable is read-only or not accessible