Programming
CX8050, CX8051 - Embedded-PCs for
CANopen and CAN
54
Version: 1.4
7.3
Diagnostics
7.3.1
FUNCTION F_CX80xx_ADDRESS
With this function the address selection switch or the DIP switch of the CX80xx device can be read out.
Here, for example, you can activate different parts of the program depending on the address by reading the
switch position.
VAR_INPUT
VAR_INPUT
iCX_Typ : INT;
END_VAR
iCX_Typ
: The CX type used is entered here - just the number without the designation CX: for
example, CX8031 is then entered as 8031.
VAR_OUTPUT
F_CX80xx_ADDRESS : INT;
F_CX80xx_ADDRESS
: -1, non-implemented CX, address of the switch
Prerequisites
Development environ-
ment
Target platform
Hardware
PLC libraries to be
linked
TwinCAT v2.11.0 build
2220 or higher (R3)
ARM
CX80xx
TcSystemCX80xx.lib
7.4
CAN
7.4.1
Reading the CAN baud rate
The baud rate can be displayed and evaluated via InfoData[1]. This can be helpful for slaves with AutoBaud,
to ascertain whether the right baud rate was found if there is an issue with the communication, for example.
NodeState value
Description
0x01040400
1 MBaud
0x01040600
800 kBaud
0x01040C00
500 kBaud
0x010A0C00
250 kBaud
0x01160C00
125 kBaud
0x011C0C00
100 kBaud
0x013A0C00
50 kBaud
0x01940C00
20 kBaud
0x01941A10
10 kBaud
Summary of Contents for CX8050
Page 2: ......