page 38
6.6. Description of the CAN function blocks
The CAN function blocks for use in the application program will
be described below.
To utilize the full functions of CAN it is absolutely required for
the programmer to create a precise bus concept before starting
to work. The number of the data objects with their identifiers
must be defined as well as a reaction to possible CAN errors.
Also, the frequency with which data must be transmitted has to
be taken into account. So the functions CAN_TRANSMIT and
CAN_RECEIVE must be called just as frequently. The
programmer must additionally monitor whether his transmission
orders have been passed on successfully to CAN_TRANSMIT
(bit RESULT) or must make sure that the data received are read
from the data buffer of the queue with CAN_RECEIVE and are
immediately processed in the program.
To be able to set up a communication link the same
transmission rate (baud rate) must first be set for all participants
of the CAN network. For the R 360 this is done with the function
CAN_BAUDRATE.
Example program
An example program in function block diagram (FBD) is stored
on the program diskette ecolog 100
plus
(CAN 3_66.PRO). In this
example data objects are exchanged with another CAN
participant via the identifiers 1 and 2. To do so, the other
participant must have a receive identifier for the transmit
identifier (or vice versa).
The function CAN_ACCEPTANCE is not further described here
because the application requires thorough hardware knowledge
of the CAN controller. Users who need this special feature are
requested to contact the technical support.
Содержание ecomat 100 R 360 Series
Страница 1: ...System manual ecomat 100 type R 360 ...
Страница 14: ...page 14 ...
Страница 26: ...page 26 ...
Страница 86: ...page 86 ...
Страница 100: ...page 100 ...
Страница 126: ...page 126 ...
Страница 146: ...page 146 ...
Страница 162: ...page 162 ...
Страница 163: ...page 163 Annex 2 Wiring Annex 2 1 Type CR0015 ...
Страница 164: ...page 164 Annex 2 2 Type CR0016 ...
Страница 165: ...page 165 Annex 2 3 Type CR0017 ...
Страница 166: ...page 166 Annex 2 4 Type CR0501 ...