EasyManua.ls Logo

IFM CR0452 - Page 53

IFM CR0452
209 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...
53
ifm Programming Manual BasicDisplay CR0452 v03.02 05 / 2018
ifm function elements ifm function elements for the device CR0452
>
CAN_ENABLE
7492
Unit type = function block (FB)
Unit is contained in the library ifm_RawCAN_NT_Vxxyyzz.LIB
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: enable CAN interface
FALSE: disable CAN interface
CHANNEL
BYTE
CAN interface (1...n) depending on the device
BAUDRATE
WORD := 250
Baudrate [kbits/s]
permissible = 20, 50, 100, 125, 250, 500, 1000
>
Parameters of the outputs
8530
Parameter
Data type
Description
RESULT
BYTE
feedback of the function block
(possible messages following table)
Possible results for RESULT:
Value
dec | hex
Description
0
00
FB is inactive
1
01
FB execution completed without error data is valid
8
08
function block is active
9
09
CAN is not active
242
F2
Error: setting is not possible

Table of Contents

Related product manuals