92
ifm System Manual ecomatmobile BasicDisplay (CR0451) V01
CAN in the PDM360 CAN-FBs on layer 2 (RAW-CAN)
CAN_TX
7522
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
Symbol in CoDeSys:
CAN_TX
ENABLE
RESULT
CHANNEL
ID
DATA
Description
7523
CAN_TX is the easiest transmit function. With it, a standard message per cycle can be sent with
minimal knowledge (and with resources such as IEC RAM).
> If an instance of this FB is called several times during a cycle, the data is also sent several times.
In case of the simple functions CAN_TX and CAN_RX, it is determined by means of the ID whether a
standard or an extended frame is to be sent. With the enhanced versions this is set via the input
EXTENDED. Therefore, extended frames in the ID area 0...2047 cannot be sent via the easy
functions.
Parameters of the inputs
7524
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: 2 048...536 870 912 (2
29
)
DATA ARRAY [0...7] OF BYTE data to be sent (1...8 bytes)