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)
187
CAN_TX_ENH
7558
= CAN TX enhanced
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
7559
Additional setting options are offered through CAN_TX_ENH (for: enhanced). Here, all CAN specific
characteristics can be set individually, e.g.:
Is it an 11 or a 29 bit identifier?
The additional inputs can be preset so that CAN_TX (
→
) is not required.
> If an instance of this FB is called several times during a cycle, the data is also sent several times.
Parameters of the inputs
7634
Parameter
Data type
Description
ENABLE
BOOL
TRUE:
unit is executed
FALSE:
unit is not executed
> POU inputs and outputs are not active
CHANNEL
BYTE
CAN interface (1...n) depending on the device
ID
DWORD
number of the data object identifier:
normal frame:
0...2 047 (2
11
)
extended frame:
0...536 870 912 (2
29
)
Extended
(optional use of the parameter)
BOOL TRUE:
extended
frame
FALSE: normal
frame
(preset for ID < 2 048)
DATALENGTHCODE
BYTE
number of the data bytes to be sent (0...8)
DATA
ARRAY [0...7] OF BYTE
data to be sent (1...8 bytes)