We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 12
LCM-16EX
Last mocifed by Lea Wel (oin/view/Wiki/admin) on 2023/12/18 21:30,
1 Naming rule
Naming rule of LCM I/O input expansion module:
1. WECON PLC series;
2. Input points No.
3, Product type, E means expansion;
4, Expansion input(X);
2 Dimensions
Weight: Approx 0.3kg, Dimensions: mm
coal a 90mm
8
ws
1. Input indicator for each channel
2. LINK: RS485 communication state
3. 485 communication terminal
4. Module power DC24V5. Extension module name
6. Analog signal input terminal
7. DIN rail mounting slot
8. DIN rail hook
9. Mounting holes ((p4.5)
oi)
6
Name Description se Event state
states
Led Blink Normal communication
Ling S485 communication Led OFF Communication exception, stop, or failure
states
Ledon Abnormal software operation or hardware
failure
2.1 Crimp terminations
* Please use crimp terminals as indicated on the graph.
* The tightening torque should be applied 5 to 8 Kg.cm.
* Other terminals should be empty but only wiring terminals mention in this manual.Less than aot
6.2mm (0.24" of “
Use M3 (0.12"
Less than
6.2mm (0.24") {urs
3 Input specification
Item
Mode
Output circuit
Input voltage
Input current
Input ON current
Input OFF current
Input response time
DC input
LCM-16EX
SIS |r
DC + 24V + 10% *1
SmA/ DC 24V
More than 3.5mA
Less than 1.5mA,
About 10ms
X0~X7 built-in digital filterInput signal Contactor NPN or PNP
Circuit insulation Photo-coupling
LED Lights when input is energized
+1 DC Powerfollow the power supply voltage range of each unit
4 Modbus communication
4.1 Com port communication configuration
Com port comm. configuration
Station No. 1~32 (Adjust by DIP switch)
Baud rate 9600~115200 (Adjust by DIP switch)
Stop bit 1
Data bit 8
Parity even
4.2 Module communication mode (function code)
LCM-16EX communication with coil :01(read coil), 05(write signal coil), 15(write continuous
coils)
1.0x01(Read coil)
Request (by Master)
Slave Station 1 byte Slave station
Function code 1 byte 0x01
Start address 2byte 0x0000 to 0x000F
Coil address No. 2byte 1t0 16
crc 2byte cRC
Response (by slave)
Slave station 1 byte Slave station
Function code 1 byte 0x01
Byte No. 1 byte N
Coil states N byte n=N or N#1crc
2byte
RC
N=Output number/8, if remainder is not equal to 0, then N=N+1
Error (Slave respond)
Slave station 1 byte Slave station
Error code Tbyte | 0x81
01 (cannot support this function)
Exception cod 1b
ee eee vie | 02 (Address crossing domain)
CRC 2 byte CRC
Example: read 0x0000-0x0007 coils address
Request (by Master) Respond(By slave)
Slave 0A | Slave 0A
Function code 01 | Function code 01
Coil high start address 00 | Byte No. 01
Coil low start address 00 | Output states (0-7) FF
Read number (High 8 bits) 00 | CRC Low bit 13
Read number (Low 8 bits) 08 | CRC High bit EC
CRC Low bit 87
CRC High bit 3c
2.0x05(Write signal coil)
Request (By Master)
Slave station 1byte Slave station
Function code Tbyte 0x05
Output address 2byte 0x00 to OxO00F
Output value 2byte —_0x0000(Write 0) or OxFFOO (Write 1)
crc 2byte CRC
Respond (By Slave)Slave station 1 byte Slave station
Function code 1 byte 0x05
Output address 2byte (0x0000 to OxO00F
Output value 2byte (0x0000 or OxFFOO
cRC 2byte cRC
Error Respond (By Slave)
Slave station ibyte | Slave station
Error code Tbyte | 0x85
01 (cannot support this function code)
Exception code Tbyte | 2 (Address crossing domain)
crc 2byte | CRC
Example: write 0x000 address coil
Request(by master) Respond(by slave)
Slave Station 0A Slave station 0A
Function code 05 Function code 05
Coil high start address 00 Coil high start address oo
Coil low start address 00 Coil low start address 00
Write number(High 8 bits) FF Write number(High 8 bits) FF
Write number(Low 8 bits) 00 Write number(Low 8 bits) 00
CRC Low bit BD BD
CRC High bit 4 a
3.0x0F (Write continuous coil)
Request (by Master)
Slave station 1 byte Slave station
Function code 1 byte Ox0F
Start address 2byte 0x0000 to 0x000FOutput number 2byte 11016
Byte number 1 byte N
Output value N*1 byte
crc 2byte crc
N=Output value/8,if remainder is not equal to 0,then N=N+1
Respond (by slave)
Slave station 1 byte Slave station
Function code 1 byte OxOF
Start address 2byte 0x0000 to 0xo00F
Output value 2byte 11016
crc 2byte crc
Error Respond (By Slave)
Slave station 1byte | Slave station
Error code Tbyte | Ox8F
Exception code 1 byte
01 (can not support this function code)
02 (Address crossing domain)
crc 2byte | CRC
Example: Write 0x0000 address to 0x0007 coil
Master request Slave respond
Slave station 0A Slave station oA
Function code OF Function code oF
Coil high start address 00 Coil high start address 00
Coil low start address 00 Coil low start address 00
Operations number high 8 bit 00 Operations number high 8 bit 00
Operations number low 8 bit 08 Operations number low 8 bit 08
Byte number 01 | CRC low bit 55Write number 88 | CRC high bit 76
CRC low bit 40
CRC high bit BF
4.3 Introduction of DIP switch
1.DIP switch introduction8-6 | Baud rate
000 115200
001 57600
010 38400
O11 19200
100 9600.
101 | Reserved
110 | Reserved
111 | Reserved
5-1: Use to select station nunber
Figure 4-1 DIP switch
‘Note:
In practical use, the dial switch is ON (1) downward and OFF (0) upward. As shown in the figure,
the status of the DIP switch is downward, all are ON.
2.DIP switch and station settingIn practical use, the #1 to #5 of the DIP switch is used for the selection of the module station
number, and the relationship between the station number and the 1 # 5 dial number switch is
shown in the following table:
#1DIP #2DIP #3 DIP #4DIP #5 DIP Module
‘switch ‘switch ‘switch ‘switch switch ‘station
0 0 0 0 0 1
1 0 0 0 0 2
0 1 0 0 0 3
1 1 0 0 0 4
0 fo lq 0 0 5
1 0 1 0 0 6
0 1 1 0 0 7
1 1 1 0 0 8
0 0 0 1 0 9
1 0 0 1 0 10
0 1 0 1 0 u
1 1 0 1 0 12
0 0 1 1 0 13
1 0 1 1 0 14
0 i i 1 0 15
i a ft 1 0 16
0 0 0 0 1 7
1 0 0 0 1 18
0 a 0 0 1 19
1 1 0 0 1 20
0 0 1 0 1 21
1 0 1 0 1 22
0 1 1 0 1 23
1 1 1 0 1 240 0 0 1 1 25
1 0 0 1 1 25
0 1 0 1 1 27
1 1 0 1 1 28
0 0 1 1 1 29
1 0 1 1 1 30
0 1 1 1 1 31
1 1 1 1 1 32
3.DIP switch and baud rate setting
In practical use, the #6 to #8 of the DIP switch are used for the selection of the baud rate, and
the relationship between the baud rate and #6-# 8 DIP switch is shown in the following table:
#6 DIP switch #7 DIP switch #8 DIP switch Module baud rate
0 0 0 115200
i 0 0 57600
0 | i! | 0 38400
A | ie | 0 19200
0 fo la 9600
1 0 1 Reserved for later expansion (Default: 115200)
0 1 1 Reserved for later expansion (Default: 115200)
1 1 1 Reserved for later expansion (Default: 115200)
4.4 Note
Communication function are different between LCM-16EX module and LX3V-16EX module,but
register function is same.
Module Maximum accessible address(BFM address)
16EX 15(input terminal)
5 Example
Set DIP switch according to 4.2 section introduces, the module station is 2, and baud rate is
115200. The 16 input terminal of the LCM-16EX module are mapped to M10~M25.+ Set PLC COM? connect LCW-IOBX, set baud rate into 115200 1 8 even
ol por 6128
Prova ation By
{wr «7 min
Li
16] ov HIF DO
Protea waite
J] @@$_$J_$$$ tor rt
read
(wr ns
data Lea
eth
2 {fs om mm m3 po
fser pro] station data len
es Tun red eh
connec OL nite
a {exo
Project explanation
1)Step 0~16: This is for setting communication protocol and communication parameters;
+ Set PLC com2 as Modbus Master;
* Set stop bit =1, data bit=8, Even parity, baud rate=115200(Please check detail in PLC
‘COM2 Modbus setting manual)
2)Step 16~47: 16 input terminal of the LCM-16EX module are mapped to M10~M25
vo
Created by Leo Wei (/bin/view/XWiki/aémin) on 2022/06/08 06:42
No comments for this page