CAN Layer

29Bit CAN – Receive message

29Bit CAN – Receive message This block makes it possible to configure a CAN receive message. The block represents the values received recently. Max. 8 RX messages can be configured. Further messages will be marked as errors. They can be overwritten multiply during one program cycle f. e.: - CAN message will be send with 2 ms, - the cycle of the program task is 10 ms, - the message is received 4 times, the block gives out the recently received values. If the output “NewDat” is permanently on...

29Bit CAN – Send message

29Bit CAN – Send message This block makes it possible to configure a CAN send message Parameters Over the parameter dialog (call during implementation of the block or over the context menu): - the CAN ID (29 Bit), - an optional description for messages (only for documenting reasons), - the inputs regarding their data type, - and an optional description for the regarding input (only for documenting reasons) can be configured. Errors during ID giving (decimal/hexadecimal are possible) or con...

Controller Status

Controller Status The controller status is given out binary. To receive the single bits, an adapter and a bit vector has to be used. Value Meaning Bit 0 This bit is a flag of the RXWARN and TXWARN bits. 1 = The RXWARN or the TXWARN bits are set 0 = Neither the RXWARN or the TXWARN bits are set Bit 1 RXWARN: Receiver Warning bit 1 = 127 ≥ Receive error counter > 95 0 = Receive error counter ≤ 95 Bit 2 TXWARN: Transmitter Warning bit 1 = Transmit error counter > 95 0 = Transmit error count...

CAN – Receive message

CAN – Receive message This block makes it possible to configure a CAN receive message. The block represents the values received recently. Max. 8 RX messages can be configured. Further messages will be marked as errors. They can be overwritten multiply during one program cycle f. e.: - CAN message will be send with 2 ms, - the cycle of the program task is 10 ms, - the message is received 4 times, the block gives out the recently received values. If the output “NewDat” is permanently on High,...

CAN – Send message

CAN – Send message This block makes it possible to configure a CAN send message Parameters Over the parameter dialog (call during implementation of the block or over the context menu): - the CAN ID (11 Bit), - an optional description for messages (only for documenting reasons), - the inputs regarding their data type, - and an optional description for the regarding input (only for documenting reasons) can be configured. Errors during ID giving (decimal/hexadecimal are possible) or configura...

CAN Controller Init/Info

CAN Controller Init/Info This block uses a high signal at the input „bReset” during download and sets the CAN controller into configuration mode, initializes it with the implemented baud rate and sets the controller back to “normal” mode afterwards. At the output “Stat”, the current mode of the CAN controller is given out. The function block can only be used once in the project and has to be the first block within the used CAN blocks. This condition will be checked while downloading at latest...