Block Category: Real Time
Description: The CAN PEAK write block transmit data to the CAN bus. The Tx connector must have the value 1 for the block to send a CAN packet. The remaining connectors are data connectors. The values presented on the data connectors are stored into the 8-byte CAN packet buffer for transmission according to the data type and byte offset as setup in the CAN Transmit Properties dialog.
Auto Answer Mode: Writes data only when a device requests it.
Data Input Pins: Specifies the number of output connectors on the CAN PEAK write block. Each connector refers to a data item within the 8-byte CAN packet. Note that the packet length can be from 0 to 8 bytes.
Data Length: Specifies the number of bytes in the data packet. It can have between 0 and 8 bytes.
Each input data connector corresponds to a data item within the 8-byte data packet of a CAN message. For each connector, you can choose:
Byte Offset into CAN Packet: Selects the byte offset into the 8-byte CAN data packet.
Radix Point: Selects the radix point for Scaled Int data types.
Type: Selects the data type for the connector.
Word Length: Selects the word length for Scaled Int data types.
Message ID: Specifies the CAN message identifier. This can be from 0 – 0x7FF for 11-bit identifiers, or from 0 – 0x1FFFFFFF for extended 29-bit identifiers.
Send Extended 29 Bit Frames: The default is 11-bit identifiers. Checking this box will result in the use of 29-bit identifiers.
Set Address Dynamically: Adds a second connector named addr. This connector provides the CAN address for the transmit destination. This value can be changed on the fly as the diagram is executed.
Swap Bytes: Causes the 8-byte data packet to be byte swapped on a 2-byte word basis.