176
ifm
Programming Manual ecomatController/60-1 (CR711S) Operating System V2.5.0.n
2017-12-19
ifm function libraries
Library ifmRawCAN.library
>
10.9.8
CAN_Tx
2269
Function block type:
Function block (FB)
Behaviour model:
ENABLE
Library:
ifmRawCAN.library
Symbol in CODESYS:
>
Description
7401
By means of this FB CAN messages can be sent asynchronously. The FB writes the configured CAN
message into the buffer storage of the selected CAN channel. When the CAN message is transmitted
depends on the state of the CAN channel and the buffer storage. The FB and the PLC cycle do not
have any influence on this.
The FB can be called several times during a PLC cycle.
The repeated call of the FB during a PLC cycle triggers a repeated transmission of the CAN
message within the PLC cycle.
>
Input parameters
14057
Parameters
Data type
Description
Possible values
xEnable
BOOL
Control activity of the FB
FALSE
FB is deactivated
TRUE
FB is activated
eChannel
CAN_
CHANNEL
Identifier of the CAN Interface
→
CAN_CHANNEL (ENUM)
(
→ p.
udiID
UDINT
Identifier of the CAN message
for Standard Frame (11 bits
identifier):
0 ... 2047
for Extended-Frame (29 bits
identifier):
0 ... 536.870.911
xExtended
BOOL
Requested frame type:
- Standard Frame (11 bits identifier)
- Extended-Frame (29 bits identifier)
FALSE
Standard Frame*
TRUE
Extended Frame
usiDLC
UINT
Number of the data bytes in the CAN
message (DLC = Data Length Count)
0
...
7
0 bytes*
...
7 bytes
aData
ARRAY
[0...7] OF
USINT
Array with the data to be sent
* ... preset value