LCM-16EX

Last modified by Leo Wei on 2023/12/18 21:30

1 Naming rule

Naming rule of LCM I/O input expansion module:

LCM-16EX User manual_html_ebe98bcd646c1f95.png

  1. WECON PLC series;
  2. Input points No.
  3. Product type, E means expansion;
  4. Expansion input(X);

2 Dimensions

LCM-16EX User manual_html_68c5a29b5500b36c.png

  1. Input indicator for each channel
  2. LINK: RS485 communication state
  3. 485 communication terminal
  4. Module power DC24V
  5. Extension module name
  6. Analog signal input terminal
  7. DIN rail mounting slot
  8. DIN rail hook
  9. Mounting holes (φ4.5)

LCM-16EX User manual_html_af08a5d98d9f129d.png

NameDescriptionLed statesEvent state
LINKRS485 communication statesLed BlinkNormal communication
Led OFFCommunication exception, stop, or failure
Led ONAbnormal 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.

LCM-16EX User manual_html_5bc4b53029347d0f.png

3 Input specification

ItemDC input
ModeLCM-16EX
Output circuitimage-20230107103618-2.png

 

Input voltageDC ± 24V ± 10% *1
Input current5mA/ DC 24V
Input ON currentMore than 3.5mA
Input OFF currentLess than 1.5mA
Input response timeAbout 10ms
X0~X7 built-in digital filter
Input signalContactor NPN or PNP
Circuit insulationPhoto-coupling
LEDLights when input is energized

*1 DC Power,follow 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 rate9600~115200 (Adjust by DIP switch)
Stop bit1
Data bit8
Parityeven

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 Station1 byteSlave station
Function code1 byte0x01
Start address2 byte0x0000 to 0x000F
Coil address No.2 byte1 to 16
CRC2 byteCRC

Response (by slave)

Slave station1 byteSlave station
Function code1 byte0x01
Byte No.1 byteN
Coil statesN byten=N or N+1
CRC2 byteCRC

N=Output number/8, if remainder is not equal to 0, then N=N+1

Error (Slave respond)

Slave station1 byteSlave station
Error code1 byte0x81
Exception code1 byte

01 (cannot support this function)

02 (Address crossing domain)

CRC2 byteCRC

Example: read 0x0000-0x0007 coils address

Request (by Master)Respond(By slave)
Slave0ASlave0A
Function code01Function code01
Coil high start address00Byte No.01
Coil low start address00Output states (0-7)FF
Read number (High 8 bits)00CRC Low bit13
Read number (Low 8 bits)08CRC High bitEC
CRC Low bitB7  
CRC High bit3C  

2.0x05(Write signal coil)

Request (By Master)

Slave station1 byteSlave station
Function code1 byte0x05
Output address2 byte0x0000 to 0x000F
Output value2 byte0x0000(Write 0) or 0xFF00 (Write 1)
CRC2 byteCRC

Respond (By Slave)

Slave station1 byteSlave station
Function code1 byte0x05
Output address2 byte0x0000 to 0x000F
Output value2 byte0x0000 or 0xFF00
CRC2 byteCRC

Error Respond (By Slave)

Slave station1 byteSlave station
Error code1 byte0x85
Exception code1 byte

01 (cannot support this function code)

02 (Address crossing domain)

CRC2 byteCRC

Example: write 0x000 address coil

Request(by master)Respond(by slave)
Slave Station0ASlave station0A
Function code05Function code05
Coil high start address00Coil high start address00
Coil low start address00Coil low start address00
Write number(High 8 bits)FFWrite number(High 8 bits)FF
Write number(Low 8 bits)00Write number(Low 8 bits)00
CRC Low bitBD BD
CRC High bit41 41

3.0x0F (Write continuous coil)

Request (by Master)

Slave station1 byteSlave station
Function code1 byte0x0F
Start address2 byte0x0000 to 0x000F
Output number2 byte1 to 16
Byte number1 byteN
Output valueN*1 byte 
CRC2 byteCRC

N=Output value/8,if remainder is not equal to 0,then N=N+1

Respond (by slave)

Slave station1 byteSlave station
Function code1 byte0x0F
Start address2 byte0x0000 to 0x000F
Output value2 byte1 to 16
CRC2 byteCRC

Error Respond (By Slave)

Slave station1 byteSlave station
Error code1 byte0x8F
Exception code1 byte

01 (can not support this function code)

02 (Address crossing domain)

CRC2 byteCRC

Example: Write 0x0000 address to 0x0007 coil

Master requestSlave respond
Slave station0ASlave station0A
Function code0FFunction code0F
Coil high start address00Coil high start address00
Coil low start address00Coil low start address00
Operations number high 8 bit00Operations number high 8 bit00
Operations number low 8 bit08Operations number low 8 bit08
Byte number01CRC low bit55
Write number88CRC high bit76
CRC low bit40  
CRC high bitBF  

4.3 Introduction of DIP switch

1.DIP switch introduction

LCM-16EX User manual_html_93aa56002bebd679.png

LCM-16EX User manual_html_79b07e8411c992f6.png

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 setting

In 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:

#1 DIP switch#2 DIP switch#3 DIP switch#4 DIP switch#5 DIP switchModule station
000001
100002
010003
110004
001005
101006
011007
111008
000109
1001010
0101011
1101012
0011013
1011014
0111015
1111016
0000117
1000118
0100119
1100120
0010121
1010122
0110123
1110124
0001125
1001125
0101127
1101128
0011129
1011130
0111131
1111132

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 switchModule baud rate
000115200
10057600
01038400
11019200
0019600
101Reserved for later expansion (Default: 115200)
011Reserved for later expansion (Default: 115200)
111Reserved 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.

ModuleMaximum accessible address(BFM address)
16EX15(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.

LCM-16EX User manual_html_da1804bfa712cd21.png

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