Menu
Your Cart
20% OFF on all products Shop now

LK3U PLC CAN function

CAN function description

The CAN communication port used by our PLC is only used for internal networking between our PLCs (cannot communicate with external CAN port). The networking mode is shared register. All PLCs in the same network can read any PLC shared registers in the network. Values can only be written to registers that are shared by themselves.
1) The CAN function can be set to 1 master, up to 32 slaves (setting range: 1~32), and the maximum number of registers shared by each station is 32 (setting range: 1~32);
2) CAN function communication baud rate can be set: 20K, 50K, 80K, 100K, 125K, 200K, 250K, 400K, 500K, 600K, 1000K (if the unsupported baud rate is set, the automatic default is 250K) ;
3) The shared register of the master and all slaves is shared with each other. Each station can share up to 32 registers. For details, see: Master and slave shared address table;
4) Repeated fault detection with slave/host address, and corresponding fault fault detection, see the fault description for details;
5) Using CAN networking is fast, simple and convenient, just set a few registers.
Special Relays and Register Description
Master
M8150-CAN allows work
M8149-Communication timeout flag (CAN does not communicate or timeout flag. After this flag is ON, it needs to be manually turned OFF in the program)
D8149-Communication timeout parameter (1=1ms, default 50ms)D8150-host settings (0=host)
D8151-number of slaves (1~32, default 8) D8152-Number of shared registers (1~32, default 8)
D8153-communication baud rate (20K~1000K, default 250K)
D8196-Slave that can't communicate (1~16)D8197-Slave that can't communicate(17~32)
D8198-Slave that can't communicate list(1~16)    D8199-Slave that can't communicate list(17~32)
D8200-Maximum time to communicate with the slave successfully (1 = 1ms)
Slave
M8150-CAN allows work
M8149-Communication timeout flag (CAN does not communicate or timeout flag. After this flag is ON, it needs to be manually turned OFF in the program)
D8149-Communication timeout parameter (1=1ms, default 60ms)D8150-slave address setting (1~32)
D8152-Number of shared registers (1~32, default 8)D8153-communication baud rate (20K~1000K, default 250K)
D8196-Slave that can't communicate(1~16) D8197-Slave that can't communicate(17~32)
D8198-Slave that can't communicate list(1~16)    D8199-Slave that can't communicate list(17~32)
D8200-Maximum time for successful communication with the host (1=1ms)
Note:
1. D8196 D8197 communication is not on the slave flag is 500ms automatic reset once;
2, D8198 D8199 communication is not on the slave summary, after the power-on, the communication is not on the machine summary, reset after power off!
3, CAN related register parameters, after setting, you need to disconnect the power before executing according to the new data;
4. Master/slave communication timeout setting: The slave D8149 is recommended to be 10ms larger than the host (host 50ms, slave should be 60ms)
5, the master / slave D8152 (the number of shared registers) must be guaranteed to be the same;

Register that can't communicate
b15b14b13b12b11b10b9b8b7b6b5b4b3b2b1b0
D819616机15机14机13机12机11机10机9机8机7机6机5机4机3机2机1机
D819732机31机30机29机28机27机26机25机24机23机22机21机20机19机18机17机
Note:
1. When the corresponding bit of the above register is 1, it indicates that the address corresponding to the bit is not communicated or the communication error occurs.
2. D8198 D8199 is the slave record that has not been communicated after the main board is powered on, and reset after power off;
Master / slave mutually shared register list
D8150StartEnd DescriptionD8150StartEnd Description
0D1000D1031Host shared register17D1544D1575Unit 17 shared register
1D1032D1063Unit 1 shared register18D1576D1607Unit 18 shared register
2D1064D1095Unit 2 shared register19D1608D1639Unit 19 shared register
3D1096D1127Unit 3 shared register20D1640D1671Unit 20 shared register
4D1128D1159Unit 4 shared register21D1672D1703Unit 21 shared register
5D1160D1191Unit 5 shared register22D1704D1735Unit 22 shared register
6D1192D1123Unit 6 shared register23D1736D1767Unit 23 shared register
7D1224D1255Unit 7 shared register24D1768D1799Unit 24 shared register
8D1256D1287Unit 8 shared register25D1800D1831Unit 25 shared register
9D1288D1319Unit 9 shared register26D1832D1863Unit 26 shared register
10D1320D1351Unit 10 shared register27D1864D1895Unit 27 shared register
11D1352D1383Unit 11 shared register28D1896D1927Unit 28 shared register
12D1384D1415Unit 12 shared register29D1928D1959Unit 29 shared register
13D1416D1447Unit 13 shared register30D1960D1991Unit 30 shared register
14D1448D1479Unit 14 shared register31D1992D2023Unit 31 shared register
15D1480D1511Unit 15 shared register32D2024D2055Unit 32 shared register
16D1512D1543Unit 16 shared register

Note:
The start address of the register corresponding to the above machine number is fixed, and the end address is determined by D8152 (such as D8152=2, then there are only 2 shared registers of the master and slave, the main station D1000-D1001, the first machine D1032-D1033);

LK3U PLC General parameters

LK3U PLC-Communication port pin definition

LK3U PLC Component range

LK3U PLC Supported instructions

LK3U PLC Special relay M function description

LK3U PLC Special register D function description

LK3U PLC High-speed counter instructions

LK3U PLC High-speed counter instructions

LK3U PLC Communication port

LK3U PLC High speed output

LK3U PLC Analog read and write instructions

LK3U PLC CAN function

LK3U PLC PID function