![IFM PDM360NG Series System Manual Download Page 177](http://html1.mh-extra.com/html/ifm/pdm360ng-series/pdm360ng-series_system-manual_3875026177.webp)
ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
CAN in the PDM360
CAN-FBs on layer 2 (RAW-CAN)
177
CAN_ENABLE
7492
Unit type = function block (FB)
Contained in the library:
ifm_RawCAN_NT_Vxxyyzz.LIB
Available for the following devices:
- BasicController: CR040n
- BasicDisplay: CR0451
- PDM360NG: CR108n, CR9042
Symbol in CoDeSys:
Description
7494
With CAN_ENABLE the CAN hardware is initialised. Without this call no other calls are possible in
RAW-CAN or they return an error.
In order to change the baud rate the following procedure is required:
►
Maintain the function block on ENABLE=FALSE for the duration of one cycle.
> All protocols are reset.
> Re-initialisation of the CAN interface and the CAN protocols running on it. Any information
available for cyclical transmission is lost as well and must be newly created.
> At renewed ENABLE=TRUE, the new baud rate is adopted.
Parameters of the inputs
7495
Parameter
Data type
Description
ENABLE BOOL
FALSE
TRUE (edge):
interface is initialised
TRUE:
interface is aktive
FALSE:
this function is not executed
CHANNEL
BYTE
CAN interface (1...n) depending on the device
BAUDRATE
WORD
Baud rate [kBit/s]
Permissible values = 20, 50, 100, 125, 250, 500, 800, 1 000
preset = 250