EasyManua.ls Logo

IFM Electronic CR0451 - CAN Network Variables

IFM Electronic CR0451
263 pages
Print Icon
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...
167
ifm System Manual ecomatmobile BasicDisplay (CR0451) V01
CAN in the PDM360 CAN POUs to CANopen
CAN network variables
General information................................................................................................................... 167
Configuration of CAN network variables ................................................................................... 167
Particularities for network variables .......................................................................................... 172
1868
General information
2076
Network variables
Network variables are one option to exchange data between two or several controllers. For users the
mechanism should be easy to use. At present network variables are implemented on the basis of CAN
and UDP. The variable values are automatically exchanged on the basis of broadcast messages. In
UDP they are implemented as broadcast messages, in CAN as PDOs. These services are not
confirmed by the protocol, i.e. it is not checked whether the receiver receives the message. Exchange
of network variables corresponds to a "1 to n connection" (1 transmitter to n receivers).
Object directory
The object directory is another option to exchange variables. This is a 1 to 1 connection using a
confirmed protocol. The user can check whether the message arrived at the receiver. The exchange is
not carried out automatically but via the call of FBs from the application program.
chapter The object directory of the CANopen master (→ page 158
)
Configuration of CAN network variables
Settings in the target settings.................................................................................................... 168
Settings in the global variable lists............................................................................................ 169
8518
To use the network variables with CoDeSys you need the libraries
- 3S_CanDrv.lib,
- 3S_CANopenManager.lib,
- 3S_CANopenNetVar.lib and
- 3S_CANopenNetVar_NT_Vxxyyzz.lib.
You also need the library SysLibCallback.lib.
CoDeSys automatically generates the required initialisation code and the call of the network blocks at
the start and end of the cycle.

Table of Contents