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 | ||||||||||||||||
b15 | b14 | b13 | b12 | b11 | b10 | b9 | b8 | b7 | b6 | b5 | b4 | b3 | b2 | b1 | b0 | |
D8196 | 16机 | 15机 | 14机 | 13机 | 12机 | 11机 | 10机 | 9机 | 8机 | 7机 | 6机 | 5机 | 4机 | 3机 | 2机 | 1机 |
D8197 | 32机 | 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 | ||||||||||||||||
D8150 | Start | End | Description | D8150 | Start | End | Description | |||||||||
0 | D1000 | D1031 | Host shared register | 17 | D1544 | D1575 | Unit 17 shared register | |||||||||
1 | D1032 | D1063 | Unit 1 shared register | 18 | D1576 | D1607 | Unit 18 shared register | |||||||||
2 | D1064 | D1095 | Unit 2 shared register | 19 | D1608 | D1639 | Unit 19 shared register | |||||||||
3 | D1096 | D1127 | Unit 3 shared register | 20 | D1640 | D1671 | Unit 20 shared register | |||||||||
4 | D1128 | D1159 | Unit 4 shared register | 21 | D1672 | D1703 | Unit 21 shared register | |||||||||
5 | D1160 | D1191 | Unit 5 shared register | 22 | D1704 | D1735 | Unit 22 shared register | |||||||||
6 | D1192 | D1123 | Unit 6 shared register | 23 | D1736 | D1767 | Unit 23 shared register | |||||||||
7 | D1224 | D1255 | Unit 7 shared register | 24 | D1768 | D1799 | Unit 24 shared register | |||||||||
8 | D1256 | D1287 | Unit 8 shared register | 25 | D1800 | D1831 | Unit 25 shared register | |||||||||
9 | D1288 | D1319 | Unit 9 shared register | 26 | D1832 | D1863 | Unit 26 shared register | |||||||||
10 | D1320 | D1351 | Unit 10 shared register | 27 | D1864 | D1895 | Unit 27 shared register | |||||||||
11 | D1352 | D1383 | Unit 11 shared register | 28 | D1896 | D1927 | Unit 28 shared register | |||||||||
12 | D1384 | D1415 | Unit 12 shared register | 29 | D1928 | D1959 | Unit 29 shared register | |||||||||
13 | D1416 | D1447 | Unit 13 shared register | 30 | D1960 | D1991 | Unit 30 shared register | |||||||||
14 | D1448 | D1479 | Unit 14 shared register | 31 | D1992 | D2023 | Unit 31 shared register | |||||||||
15 | D1480 | D1511 | Unit 15 shared register | 32 | D2024 | D2055 | Unit 32 shared register | |||||||||
16 | D1512 | D1543 | Unit 16 shared register | |||||||||||||
Note: LK3U PLC-Communication port pin definition 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 |