EasyManua.ls Logo

Curtis Instruments 1351 - Page 107

Default Icon
144 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5 — VEHICLE CONTROL LANGUAGE (VCL)
pg. 101
Return to TOC Curtis Model 1351 – December 2018
 Define_CANopen_Receive_Data() Used to dene the data received in a
mailbox is arranged
is function is used to dene how the data received in a mailbox is arranged.
Up to 64 bits can be loaded into a single message.
Multiple dene_recieve_data calls are used to add retrieve data from the message,
up to the 64 bit limit.
No more than 16 Dene Data functions 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 (automatically done by the any setup transmit
mailbox function)

Define_CANopen_Receive_Data(Handle,Data_Source,Start_
Bit,Num_Of_Bits)
:
Handle Holds the ID of the mailbox
Data_Destination Address of Data where the bits will be stored,
such as P_USER_11
Start_Bit e rst, lowest order bit to be included 1-32
that will be packed into bit 1 of the destination
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

Table of Contents