8 programming examples – JUMO 902910 CANtrans T RTD Temperature Probe with CANopen Output Operating Instructions User Manual

Page 31

Advertising
background image

31

8 Programming examples

appears:

The ID (Hex) (1) determines the telegram type (PDO, SDO or LSS), the address
and the priority of the message. The lowest ID has the highest priority in the
case of CAN telegrams.

The fields Data (0..7) contain the user data of the CAN telegram in
hexadecimal format. Please note the following arrangement:

The data field (2) contains the control byte. Here you can define whether the
CAN device should be read out or written to. At the same time, you can also
define the type of value here. The following parameters are possible:

Read: 0x40
Write an 8-bit value:

0x2F

Write a 16-bit value:

0x2B

Write a 32-bit value:

0x22

The next two bytes (3) specify the object index (Chapter 7), whereby it is
absolutely essential to write the Low byte first and then the High byte. The
object index 0x6132 has been entered in the screenshot above, by way of
example.

The byte (4) specifies the 8-bit subindex, which can also be taken from the
table in Chapter 7. The value 00 is entered here for objects without a subindex.

The last 4 bytes (5) contain object values that are read or written. As a rule, the
Low byte must also be entered first here. The byte fields that are not required
are filled with the value 00. Some examples will be given below.

The data telegram created in this way is transmitted to the CAN device by
clicking OK (6).

The transmitted CAN message is logged in the “Transmit” field and listed.
The CAN response of the transmitter

is logged in the “Transmit” field and

listed.

Wrong entries may result in uncontrollable behavior!

(1)

(2) (3) (4)

(5)

(6)

Advertising