Input DescriptionΒΆ

Using CAN2B_SEND, CAN telegrams with 29 bit identifiers according to CAN 2.0B can be transmitted.

Every time a FALSE->TRUE edge is applied to input EN, CAN2B_SEND reads the data at its inputs and sends a corresponding request message to the Communication Module. Further FALSE->TRUE edges at input EN are ignored until the processing of the active requests is completed. The completion of the request processing is indicated by DONE = TRUE and ERR = FALSE. A possibly occurring error is indicated by output ERR = TRUE.

Only one CAN 2.0B can be sent with each transmission.

../_images/dce7a921e3899d9c0a33139000eba54e

EN

Data_Type Default_Value Range Unit
BOOL - - -

The Function Block is activated (EN = TRUE) or deactivated (EN = FALSE) via input EN. If the Function Block is active, the current values are available at the outputs. If the Function Block detects a CAN Communication Module with a configured CAN 2.0A protocol at the specified SLOT, this is indicated by DONE = TRUE and ERR = FALSE. The corresponding status information is then available at the Function Block outputs.

SLOT

Data_Type Default_Value Range Unit
BYTE - - -

At input SLOT, the Communication Module slot (module number) is selected to used by the Function Block.

The internal Communication Module always has the module number 0. All external Communication Modules are serially numbered from right to left, starting with module number 1.

DATA

Data_Type Default_Value Range Unit
DWORD - - -

Input DATA is used to specify the address starting from which the received CAN 2.0A telegrams should be written. Usually, this specification is done via the ADR operator and should point to variables of the type CAN2A_MESSAGE_TYPE or CANOpen_MESSAGE_TYPE.