1.2. Coolmay L02 System Architecture............4 1.3. Host operation..................5 1.4. L02 series host and modules description........... 7 1.5. L02 series host and module power reference table......8 1.6. Precautions for L02 series host programming........9 2. Device Number....................11 2.1. Device number table................11 3.
Page 3
7.2.1. Normal interpolation function...........42 7.2.2. Continuous interpolation function........... 44 7.3. Pulse width modulation PWM.............47 7.4. Handwheel pulse function..............50 8. Coolmay L02 series PLC communication manual........53 8.1. MODBUS instruction explanation and communication address.....................53 8.1.1. Function and operation description of read/write data command....................
Page 4
8.7. Network N:N communication............104 8.7.1. Related device content............104 8.7.2. Program settings and instructions........106 9. Coolmay L02 series PLC hardware identification and address allocation........................108 9.1. Hardware identification of digital input and output modules..108 9.2. Address allocation of digital input and output modules....109 9.3.
By setting program to establish various network device links. With the built-in memory card function of the L02 series CPU module, system settings can be quickly backed up or restored. This manual describes the basic operating functions of the L02 system, allowing users to quickly get started with the L02 system.
Page 6
◆Digital input and output expansion, the expansion address starts from X20, Y20. ◆L02 series can be matched with L02-EIP module to establish remote I/O communication. Remarks: 256 points (X0~X177, Y0~Y177) in FX3G mode.
Page 7
Note: Structured programming and tags are not supported. 6) Multifunctional communication interface ◆L02 series host PLC has two default programming ports, 1 Type-C programming port, the download speed is faster; 1 RS232, which the interface terminal is an 8-hole mouse head female socket.
CR1620 battery, drawer type which can be installed by itself. ◆Easy to install. It can be installed on DIN rail (35mm width). ◆When the power is off, all L02 series modules support buckle installation and replacement modules. ◆Flexible use, more specifications and batches can be customized according to customer requirements.
(That is 50 points, excluding the host AI/O points) 1.3. Host operation The host is the core component of the entire L02 series. In addition to executing the user's logic program, it is also responsible for all I/O data receiving and sending, and data communication processing. The relationship...
Page 10
Coolmay L02 Series PLC Programming Manual program aspects. If you are interested in a deeper understanding, please refer to the complete description. The content of the manual, the complete host operation process is listed below for reference. On power ↓...
ADC resolution: 24 bits Built-in two Ethernet interfaces, support switch function Ethernet/IP L02-EIP Support Ethernet/IP protocol, remotely expand I/O Module available. 1.5. L02 series host and module power reference table Product model Voltage (V) Current (mA) Maximum power loss (W) L02M32R DC24...
L02-EIP DC24 L02-60P AC220 1.6. Precautions for L02 series host programming The PLC is compatible with GX Developer8.86Q/GX Works2 and the following version programming software. Use other versions of the software, there may be incompatibilities. A prompt error occurred during PLC program download: the com port cannot be specified.
Page 14
Coolmay L02 Series PLC Programming Manual Select in the GX Works2 software version as shown in the figure: (Note: the use of labels is prohibited) https://en.coolmay.com/...
Coolmay L02 Series PLC Programming Manual 2. Device Number 2.1. Device number table Name Contents I/O relay Input relay X000~X377 256 points It is octal number Total 512 I/O Output relay Y000~Y377 256 points Auxiliary relay General M0~M383 384 points...
Page 16
Coolmay L02 Series PLC Programming Manual Name Contents Data register(32 bit when using in pair) General(16bit) D0~D127 128 points EEPROM hold (16 bit) D128~D7999 7872 points Special (16 bit) D8000~D8511 512 points V0~V7,Z0~ Index (16 bit) 16 points Extended register·extended file register 23000points Support power failure R0~R22999...
Coolmay L02 Series PLC Programming Manual 3. Special relay and register 3.1. Special relay number and content Content Remarks Num Content Remarks C224 Increase/decrease counting M8000 In RUN,Normally closed M8224 action C225 Increase/decrease counting M8001 In RUN,Normally open M8225 action...
Page 18
Coolmay L02 Series PLC Programming Manual Content Remarks Num Content Remarks action action OFF:increase STL temporary control is C247 Increase/decrease counting M8047 M8247 action effective action C248 Increase/decrease counting M8048 Signal alarm action M8248 action C249 Increase/decrease counting M8049 Signal alarm is effective...
Page 19
Coolmay L02 Series PLC Programming Manual Content Remarks Num Content Remarks temporary control inversion Y001 positioning command M8079 Sampling tracking system area M8358 driver M8120 Can't use M8359 2nd pulse stop RS/RS2 command sends 3rd pulse operation temporary M8121 M8360...
Coolmay L02 Series PLC Programming Manual 3.2. Special register number and content Content Remarks Content Remarks D8000 Watchdog timer D8186 Z3 Register contents Main version D8001 PLC type and system version D8187 V3 Register contents number 2...2K steps; 4...4K steps;...
Page 22
Coolmay L02 Series PLC Programming Manual Content Remarks Content Remarks Initial value:50000 X0 falling edge ring counter D8076 D8357 High value [1/6μs unit] D8077 High D8358 2nd pulse acceleration time D8078 D8359 2nd pulse deceleration time X0 pulse width / pulse period [10μs unit]...
Page 23
High D8435 calculation result D8169 Restrict access status D8436 RS2 sends summation D8182 Z1 Register contents D8183 V1 Register contents D8184 Z2 Register contents D8185 V2 Register contents Specific functions please refer to “Coolmay PLC Instructions Programming Manual V20.81” https://en.coolmay.com/...
Coolmay L02 Series PLC Programming Manual 4. Function Instructions 4.1. List of basic logic instructions Mnemonic Name Features Available devices Normally open contact logic operation Take X,Y,M,S,D□.b,T,C starts Normally closed contact logic operation Negate X,Y,M,S,D□.b,T,C starts Take the rising edge of Start of operation to detect rising edge X,Y,M,S,D□.b,T,C...
Coolmay L02 Series PLC Programming Manual 4.2. Applied instructions【Sequence is according to instruct variety】 (Contrast with MITSUBISHI) Applied instruction can be divided into the following 18 kinds. Data move instructions Data conversion instructions Comparison instructions Arithmetic operation instructions Logical operation instructions...
Page 26
Coolmay L02 Series PLC Programming Manual GBIN Gray Code to Decimal Conversion ★ Conversion to Floating Point ★ Floating Point to Integer Conversion ★ Floating Point to Scientific Notation EBCD ★ Conversion Scientific Notation to Floating Point EBIN ★ Conversion Floating Point Degree to Radian Conversion ★...
Page 27
Coolmay L02 Series PLC Programming Manual 4. Arithmetic operation instructions Mnemonic FNC No. Function Support Addition ★ Subtraction ★ Multiplication ★ Division ★ EADD Floating Point Addition ★ ESUB Floating Point Subtraction ★ EMUL Floating Point Multiplication ★ EDIV Floating Point Division ★...
Page 28
Coolmay L02 Series PLC Programming Manual 8. Shift instructions Mnemonic FNC No. Function Support SFTR Bit Shift Right ★ SFTL Bit Shift Left ★ Bit Shift Right with Carry ★ Bit Shift Left with Carry ★ Word Shift Right WSFR ★...
Page 29
Coolmay L02 Series PLC Programming Manual BIN to Character String Conversion ★ Character String to BIN Conversion ★ Decimal ASCII to BIN Conversion DABIN ★ BINDA BIN to Decimal ASCII Conversion ★ ASCI Hexadecimal to ASCII Conversion ★ ASCII to Hexadecimal Conversion ★...
Page 30
Coolmay L02 Series PLC Programming Manual 14. Pulse output/positioning control instruction Mnemonic FNC No. Function Support Absolute Current Value Read ★ DSZR DOG Search Zero Return ★ Zero Return ★ Batch Data Positioning Mode ★ DVIT Interrupt Positioning ★ DRVI Drive to Increment ★...
Page 31
Coolmay L02 Series PLC Programming Manual 18. Other handy instructions Mnemonic FNC No. Function Support Watchdog Timer Refresh ★ Alternate State ★ Timed Annunciator Set ★ Annunciator Reset ★ HOUR Hour Meter ★ RAMP Ramp Variable Value ★ Speed Detection ★...
When using, Please notice the difference between Host L02M24 and Expansion analog module. 5.1. Analog input L02 series PLC input accuracy is 12bit, and expansion analog module input accuracy is 16bit. When using, you can directly read the register value corresponding to each analog.
Coolmay L02 Series PLC Programming Manual D8032 AD2(Current 1) D8033 AD3(Current 2) When 4-20mA type, Registers read less than 3.8mA, the value is 32760, that is break value. R23960 starts with a zero correction value and default is 0 (Namely, size correction).
Page 34
Coolmay L02 Series PLC Programming Manual expanded), such as L02-4AD/L02-4AD2DA, etc. Among them, D8055 is the number of analog input words; the address is directly assigned, and the read value of the register expanded is shown in the following table:...
Coolmay L02 Series PLC Programming Manual register deviates greatly from the actual temperature, you need to send the module back to the manufacturer for recalibration. 5.1.5. Host Analog input sampling Filtering cycles=( R23600~R23603)* PLC scanning time, if R23600=1, sample one time each scan circle and change the 1st analog value for one time.
Page 36
Coolmay L02 Series PLC Programming Manual reading / 200; When the input is 4-20 mA analog, the actual analog value = register reading / 250 + 4. 5.1.6.2 Module analog input example The following example is an example of the first channel temperature...
Coolmay L02 Series PLC Programming Manual reading / 2000 + 4. 5.2. Analog output 5.2.1. L02M24 Host analog output setting L02M24T/L02M24R has default 4analog input and 4analog output;Analog output type:2*0-10V, 2*0-20mA(4-20mA), analog output setting range is 0- 4000, accuracy is 12bit.
Coolmay L02 Series PLC Programming Manual DA register Range Output type R23750 0-32000 R23751 0-32000 When R23550~R23599=1 Indicates 4~20mA DA48 R23798 0-32000 DA49 R23799 0-32000 5.2.3. Host analog output program example As below, it shows the host 0-10V voltage analog output.
Coolmay L02 Series PLC Programming Manual Save data register number of the target value BIN16 bit (SV) Save data register number of the measured BIN16 bit value (PV) Save the data register number of the parameter BIN16 bit Save data register number of the output...
Page 40
Coolmay L02 Series PLC Programming Manual Setting item Setting content Remark Value shorter than the calculation Sampling time(Ts) 1~32767(ms) period can’t be run 0: positive action; bit0 Action direction (ACT) 1: reverse action. 0: No input change alarm; bit1 1: Input change amount alarm is valid.
Coolmay L02 Series PLC Programming Manual 0: The output change amount (reduction side) does not overflow; bit3 1: Output change amount (reduction side) overflow. *1: When S3+1 action setting (ACT) bit1=1, bit2=1 or bit5=1, S3+20~24 is occupied. 5.3.4. Notice When using multiple instructions: It can be executed multiple times at the same time (the number of loops is not limited), but note that the S3 and D devices used in the operation cannot be repeated.
Page 42
Coolmay L02 Series PLC Programming Manual https://en.coolmay.com/...
6. Application of high speed counter 6.1. Assignment table of built-in high speed counter For L02 series PLC, high speed counter is default as single phase 6 channels 60KHz, or AB(Z) phase 2 channels 30KHz+AB phase 1 channel 5KHz; Among them,AB phase double counter input is default as 1 times frequency.
Coolmay L02 Series PLC Programming Manual 4 times frequency: at most 2 channels, Max frequency is 24KHz; 6.2. Related device 1. For switching up/down counting of Single phase single counter Counter Designated Down Type number device counting counting C235 M8235...
7. Application of high speed pulse 7.1. high speed pulse output Coolmay L02 series plc default has 8 channels high speed pulse, Y0-Y3 each 100KHz, Y4-Y7 each 50KHz, variable speed supported, the initial/final speed of start/stop is 0, diagram as below: (take accelerate and decelerate time D8148 as an example).
M8434 = 1 D8340 shows the current address of X axis, D8350 shows the current address of Y axis. In CoolMay L02 PLC,interpolation motion still adopts DPLSR for pulse output. Description of the Operand: represents the pulse frequency, that is, the speed of the interpolation motion.
Page 47
Coolmay L02 Series PLC Programming Manual S.+4 represents the Y-axis target address. specify the Y number with pulse output (Currently only supports Y0, the corresponding direction is Y4; Y1 is another axis, the corresponding direction is Y5). In center interpolation mode: S.+6 represents the center X coordinate address.
Coolmay L02 Series PLC Programming Manual Note 1: The current address of X and Y must be on the same circle as the destination address. Note 2: When the current address coincides with the target address, it indicates that the motion track is a full circle.
Page 49
Coolmay L02 Series PLC Programming Manual In CoolMay L02 series PLC, continuous interpolation motion uses DPLSR for pulse output. Operand Description:All use 32-bit registers. S1. indicates the pulse frequency, that is, the speed of the interpolation motion. S2. indicates the X-axis target address.
Page 50
Coolmay L02 Series PLC Programming Manual When S2.+8 is used, it is in hexadecimal. The bit values of each group are as below: =1:linear mode interpolation b3~b0 =2:center mode interpolation =3:radius mode interpolation =0:clockwise rotation b7~b4 =1:counterclockwise rotation = any other value: linear mode =1:relative position...
Coolmay L02 Series PLC Programming Manual 7.3. Pulse width modulation PWM 1. Summary: This instruction is used to specify pulse output with pulse period and ON time. 2. PWM instruction format and parameter description. Instruction format: https://en.coolmay.com/...
Page 52
Coolmay L02 Series PLC Programming Manual Parameter description: Operand Type of Content Character device Ranges type data KnX 、 KnY 、 KnM 、 KnS 、 Pulse width (ms) data or word 0~32767 BIN16 bit device number for storing data T、C、D、R、V、Z、K、H KnX 、...
Page 53
Coolmay L02 Series PLC Programming Manual R >> P t = R(KΩ)* C(µF) = 470ms >>T0 The time constant τ of the filter is a very large value compared to the pulse period T0. The fluctuation value Δe in the average output current e is approximately 5.
CNC wire cutting machine tools, CNC EDM machine tools, printing equipment, textile machinery and other fields. Coolmay L02 series PLC supports the function of handwheel (only supports servo motors, not stepper motors). With the cooperation of L02 PLC, the handwheel is used to control the rotation of the motor, which can realize https://en.coolmay.com/...
Page 55
Coolmay L02 Series PLC Programming Manual the rotation of the handwheel by one pulse and the motor also rotates correspondingly number of pulses. Special sign: M8228: Turn ON to enable the handwheel function (the original C228 function is temporarily not used) Instruction format and parameter description when using handwheel.
Page 56
Coolmay L02 Series PLC Programming Manual The function program of the hand wheel is shown in the figure below: This program is 1:1 pulse output, that is, how many pulses will Y0 output when the handwheel rotates how many pulse.
Coolmay L02 Series PLC Programming Manual 8. Coolmay L02 series PLC communication manual The L02 series PLC is equipped with a programming port (RS232), two RS485, a CAN port, and a network port to meet the needs of users to connect several types of equipment.
Coolmay L02 Series PLC Programming Manual Modbus. m1 represents the station number of the slave device to be written, ranging from 1-247. m2 represents the first address number of the written register in the slave device; S. indicates the number of registers to be written, the range is 1-123 (the range is 1-45 in Modbus ASCII, and the range is 1-90 in CAN communication).
Page 59
Coolmay L02 Series PLC Programming Manual No. 02 function: read the input status, get the current status (ON/OFF) of a group of switch inputs, the range is 1-512 No. 03 function: read the holding register, obtain the current binary value in one or more holding registers, the range is 1-125 No.
Coolmay L02 Series PLC Programming Manual 8.1.5. ADPRW instruction function parameters Operand MODBUS address/sub Access points/sub Data storage device Function code Functions function code function data start MODBUS address: Access points: Read target device Coil readout D.R.M.Y.S 0000H~FFFFH 1~2000 MODBUS address:...
Page 62
Coolmay L02 Series PLC Programming Manual end of sending RS/RS2 sending complete M8425 Need to reset manually flag RS/RS2 receiving end flag M8123 M8403 M8423 Need to reset manually RS/RS2 receiving process M8124 M8404 M8424 Data is being received flag...
Coolmay L02 Series PLC Programming Manual the RS instruction, ), reset automatically. M8123: RS command receiving end flag, need to be reset manually. M8124: RS command data is being received. M8161: 8-bit/16-bit mode distinguishing flag of RS instruction. M8128: RD3A/WR3A receives the correct flag and needs to be reset manually.
Coolmay L02 Series PLC Programming Manual 8.3.2. Mitsubishi BD Protocol When used as the Mitsubishi BD protocol function: set M8196=1, M8125=0; D8120 is set as the communication parameter, and D8121 is set as the slave station number. For example, set D8120=H6086, D8121=H1 (communication parameter is 9600/7/E/1, slave station number is 1).
Coolmay L02 Series PLC Programming Manual Example of PLC as slave program: HMI can communicate with PLC by setting BD protocol master station. 8.3.3. Freeport protocol functions and examples When used as Mitsubishi Freeport protocol function: set M8196=1, M8125=0; the difference between Mitsubishi protocol 1 and protocol 4 is that...
Coolmay L02 Series PLC Programming Manual Program example: The data obtained by using the serial port tool to monitor the serial port 2 is: [2019:11:01:10:49:16] [Receive] 31 32 33 8.3.4. Modbus RTU protocol When used as Modbus RTU protocol: set M8196=1, M8125=1; D8120 is set as communication parameter, D8121 is set as slave station number.
Page 67
Coolmay L02 Series PLC Programming Manual Baud rate (b7,b6,b5,b4) (0100):600bps (0101):1200bps (0110):2400bps (0111):4800bps (1000):9600bps (1001):19200bps (1010):38400bps (1011):57600bps (1101):115200bps Set 0 RTU/ASCII mode setting 0:RTU 1:ASCII Set 1 Set 1 Set 1 RD3A program example (refer to chapter 8.1.1 for instruction...
Page 68
Coolmay L02 Series PLC Programming Manual Program explanation: D300 saves the number of registers read, here it means reading 10 data. When using serial port 2, D.-1, here D299 must be set to 0. The program means to read a total of 10 data from registers D100-D109 in the PLC whose slave station is 1, and save them in the registers D301-D310 of the master station PLC.
Coolmay L02 Series PLC Programming Manual Slave program: Program explanation: The program means to write 1 data of register D301 in the master station PLC to the slave station as 1 PLC, and save it in the slave station PLC register D100.
Page 70
Coolmay L02 Series PLC Programming Manual 03 function code holding register output program example(refer to chapter 8.1.2 for instruction introduction) Host program: Slave program: Use the serial port tool to monitor the serial port 2 to get the following data: [2017:11:01:17:48:54][ receive]01 03 00 00 00 06 C5 C8 https://en.coolmay.com/...
Coolmay L02 Series PLC Programming Manual [2017:11:01:17:48:54][ receive]01 03 0C 00 0C 00 17 00 22 00 38 00 4E 00 63 C4 29 8.3.6. Modbus ASCII protocol When used as Modbus ASCII protocol: The specific parameter settings are the same as 8.3.3, only the 12th bit setting of D8120 is different. For specific settings, refer to the introduction of D8120 parameter settings in chapter 8.3.3.
Coolmay L02 Series PLC Programming Manual Slave program: The data display status of the host D300~D303 before and after program execution is shown in the figure below. 8.4. Serial port 3: RS485 (A1 B1) Support Mitsubishi programming port protocol, RS2 protocol and MODBUS...
Page 73
Coolmay L02 Series PLC Programming Manual of sending RS/RS2 sending complete flag M8425 Need to reset manually RS/RS2 receiving end flag M8123 M8403 M8423 Need to reset manually RS/RS2 receiving process flag M8124 M8404 M8424 Data is being received RS/RS2 instruction 8-bit/16-bit...
Page 74
Coolmay L02 Series PLC Programming Manual M8029: Communication completion flag (communication completion flag when using ADPRW instruction, manual reset is required). M8161: 8-bit/16-bit mode distinction flag for RS/RS2 instructions D8400: Save the communication parameters of Modbus RTU protocol, see the setting introduction in the table for details.
Coolmay L02 Series PLC Programming Manual Stop bit 0:1 bit 1: 2 bits Baud rate (b7,b6,b5,b4) 0100:600bps 0101:1200bps 0110:2400bps 0111:4800bps 1000:9600bps 1001:19200bps 1010:38400bps 1011:57600bps 1100:Not use b8~b15 Not available, set to 0 D8401 communication parameter format setting: Select protocol 0: Other communication protocol...
Coolmay L02 Series PLC Programming Manual The data obtained by using the serial port tool to monitor the serial port 3 is: [2017:11:01:11:49:16][ receive]31 32 32 RS2 command last parameter =1: Serial port 3; =2: CAN. 8.4.3. Modbus RTU function RD3A/WR3A instruction When used as Modbus RTU protocol: set M8192=1;...
Page 77
Coolmay L02 Series PLC Programming Manual Slave program: Use the serial port tool to monitor the serial port 3 data, and get the following results: [2017:11:01:09:00:11][ receive]01 03 00 64 00 0A 84 12 [2017:11:01:09:00:11][ receive]01 03 14 00 42 00 4D 00 58 00 58 00 63 00...
Page 78
Coolmay L02 Series PLC Programming Manual Host program: Slave program: Use the serial port tool to monitor the serial port 3 data, and get the following results: [2017:11:01:09:25:20][ receive]01 10 00 64 00 08 10 00 0B 00 16 00 21 00...
Coolmay L02 Series PLC Programming Manual 8.4.4. Modbus RTU Function ADPRW instruction 04 Input register readout demo program (detail of instruction introduction please refer to chapter 8.1.2). Master program Slave program https://en.coolmay.com/...
Coolmay L02 Series PLC Programming Manual Use the serial port tool to monitor data of serial port 3 , and get the following results: [2017:11:01:17:38:34][receive]01 04 00 00 00 06 70 08 [2017:11:01:17:38:34][receive]01 04 0C 00 15 00 20 00 2B 00 41 00 57 00 00 5F A7 8.4.5.
Coolmay L02 Series PLC Programming Manual Slave program: The data display status of slave D100~D109 before and after program execution is shown in the figure below. 8.5. CAN Communication port Support RS2 protocol and MODBUS RTU protocol. Note: After the CAN port setting is completed, the PLC must be disconnected (at least 15 seconds).
Page 82
Coolmay L02 Series PLC Programming Manual The special relays and special registers involved are as follows: Serial port Serial port Function Description CAN(H/L) Remarks 2(A/B) 3(A1/B1) Programming port M8196=0 M8192=0 Non power retentive M8196=1 RS/RS2 function M8192=1 M8125=0 Automatically reset at the end of...
Page 83
Coolmay L02 Series PLC Programming Manual M8425:After sending, it needs to be reset manually; M8426:Multi-machine mode and master-slave mode switching M8426=1: CAN is a multi-machine mode, there is no distinction between master and slave, and can transmit up to 8 bytes of data.
Coolmay L02 Series PLC Programming Manual D8434:Slave station number D8440:Save the ID number of the machine (slave station number). D8442:When multi-channel interconnection, save the slave station ID number (which slave station sent the data read, the ID of the slave station).
Coolmay L02 Series PLC Programming Manual RS2 command last parameter=1: Serial port 3; =2: CAN. 8.5.2. Modbus RTU function RD3A/WR3A instruction RD3A program example (refer to chapter 8.1.1 Master program: https://en.coolmay.com/...
Page 86
Coolmay L02 Series PLC Programming Manual Slave program Monitoring the master station program, the master station D301-D316 has a total of 16 data at the speed of subtracting 1 per second and changing between 300-200. WR3A program example (refers to chapter 8.1.1...
Coolmay L02 Series PLC Programming Manual Slave program: Monitoring the program of the slave station, a total of 16 data from the stations D100-D115 can be changed between 200-400 at the speed of adding 1 per second. 8.5.3. Modbus RTU function ADPRW instruction 01 Input register readout program example (refer to chapter 8.1.2...
Coolmay L02 Series PLC Programming Manual Slave program It means to communicate with the CAN port of the slave PLC through the CAN port of this PLC, and read the 4-bit M0~M3 of the slave PLC to D0 of the master PLC.
Page 89
Coolmay L02 Series PLC Programming Manual Function Description Network usage remarks Network preparation M8193 =1:Communication is normal =0:The connection Connection communication flag M8395 communication is abnormal; Change from normal to abnormal, automatically reconnect once Write network address M8197 MODBUS timeout...
Page 90
Coolmay L02 Series PLC Programming Manual D8395:EtherNet/IP and MODBUS_TCP switch; D8395=0: EtherNet/IP master station (with 4 slave stations at most) D8395=1:MODBUS_UDP Slaves D8395=2:MODBUS_UDP Masters D8395=3:MODBUS_TCP Slaves(Server) D8395=4:MODBUS_TCP Masters(Client, with up to 4 slaves) D8395=5:EtherNet/IP Slaves(Server) Note: In the local area network, MODBUS TCP or Ethernet/IP communication can be used, and Mitsubishi programming software can be used to program through the network port.
Coolmay L02 Series PLC Programming Manual retry twice, each time = (R23814*5)ms. R23815 is the number of MODBUS sent packets R23816 is the number of MODBUS received packets. 8.6.1. MITSUBISHI MC protocol Note: a. MC protocol and cloud configuration background can coexist, even when MC protocol is used, it can also be connected with Coolamy Cloud background.
Page 92
Coolmay L02 Series PLC Programming Manual Method 2: Use cloud parameter setting software (Cloudset.exe) to set https://en.coolmay.com/...
Page 93
Coolmay L02 Series PLC Programming Manual 2. Diagram of network connection a. Without switching equipment https://en.coolmay.com/...
Page 94
Coolmay L02 Series PLC Programming Manual b. Through the switching equipment https://en.coolmay.com/...
Page 95
Coolmay L02 Series PLC Programming Manual 3. HMI settings (different manufacturers have different HMI settings) a. Weilun HMI protocol settings: https://en.coolmay.com/...
Coolmay L02 Series PLC Programming Manual The settings in the above figure indicate that the HMI accesses the PLC whose IP is 10.31.1.223, and the port is 5556. 8.6.2. Modbus TCP Function The master station supports WR3A RD3A instructions, WR3A D300 D400 D500, RD3A D300 D400 D500, and requires D499=3 When D499=0, it is serial port 2 MODBUS.
8.6.3. Etherenet/IP function 8.6.2.1 Communication with L02-EIP When the L02 series host computer and L02-EIP module use the Ethernet/IP protocol to communicate, the L02-EIP module is used as the slave station, and the DIP switch needs to be used to set the slave station IP address on the L02-EIP.
Page 99
Coolmay L02 Series PLC Programming Manual =1 means connecting =0 not connected =2 successfully connected =345 is the EIP handshake process =5 the handshake is successful R23834, R23844, R23854, R23864 set the number of bytes input by switch; R23835, R23845, R23855, R23865 set the number of analog input words;...
Page 101
Coolmay L02 Series PLC Programming Manual 2) Analog output: 50 words (100 bytes) (R23350-R23399) Slave station address allocation: D1024-D1123 The third slave address allocation: 1) Digital input: 24 bytes (M5400-M5591) Slave station address allocation: D2000-D2023 2) Analog input: 50 words (100 bytes) (R23200-R23249)
Page 102
Coolmay L02 Series PLC Programming Manual https://en.coolmay.com/...
Page 103
Coolmay L02 Series PLC Programming Manual 8.6.2.3 L02 PLC as Ethernet/IP slave When the L02 host PLC is used as a slave station for Ethernet/IP protocol communication, it needs to be set as follows: M8197: =1 to write the network address and automatically reset.
Page 104
Coolmay L02 Series PLC Programming Manual 8.6.2.4 L02 series Ethernet/IP protocol use structure diagram 1. The L02 host is the master station of the Ethernet/IP protocol, and L02- EIP is the slave station of the Ethernet/IP protocol, passing through the router.
Page 105
Coolmay L02 Series PLC Programming Manual 2. The L02 host is the master station of the Ethernet/IP protocol, and the L02-EIP is the slave station of the Ethernet/IP protocol, without going through the router. https://en.coolmay.com/...
Page 106
Coolmay L02 Series PLC Programming Manual 3. The L02 host is the master station of the Ethernet/IP protocol, and the L02 host is the slave station of the Ethernet/IP protocol. https://en.coolmay.com/...
Page 107
Coolmay L02 Series PLC Programming Manual 4. The L02 host is the master station of the Ethernet/IP protocol, and the L02 host and the L02-EIP module are mixed as the slave station of the Ethernet/IP protocol https://en.coolmay.com/...
Coolmay L02 Series PLC Programming Manual 8.7. Network N:N communication 8.7.1. Related device content 1. N:N Device for network setting Device Name Content value Set the flag bit for communication parameters. Parameter It can also be used as a flag bit for confirming...
Page 109
Coolmay L02 Series PLC Programming Manual Select the mode of the number of device points to Refresh communicate with each other. D8178 Range setting No setting is required in the programmable controller of the slave station. [Initial value: 0] =2:Serial port2...
Coolmay L02 Series PLC Programming Manual 2) In mode 1 (D8178=1) Station No. Station 0 Station 1 Station 2 Station 3 Station 4 Station 5 Station 6 Station 7 Word device M1000~ M1064~ M1128~ M1192~ M1256~ M1320~ M1384~ M1448~ (32 points...
Page 111
Coolmay L02 Series PLC Programming Manual Master program: Slave program: 2. Serial port 3 Such as serial port 2, only need the master and slave program to set D8394=3 3. CAN port Master program: https://en.coolmay.com/...
9. Coolmay L02 series PLC hardware identification and address allocation The L02 series PLC host can expand digital and analog according to customer needs. This chapter introduces the hardware identification and address allocation of the extension module by the host.
Coolmay L02 Series PLC Programming Manual For example, the product is L02M24R + L02-16EX + L02-16ER, which expands 24 digital inputs and 8 digital outputs. Monitor the data of D8054 and D8056 as shown in the figure below. 9.2. Address allocation of digital input and output modules When the host detects the expansion of the digital input and output, it will automatically sort from X20 or Y20 from left to right.
Coolmay L02 Series PLC Programming Manual 9.3. Hardware identification of analog input and output modules When expanding the analog module, you need to set the type of each analog in the R23500~R23549 register of the host. For the correspondence between values and types, please refer to chapter 5.1.4.
Coolmay L02 Series PLC Programming Manual value of R23500-R23507 in the R register of the host first (Note that the default is 0) as shown in the following table. Monitor the data of D8055 and D8057 as shown in the figure below.
Appendix Version Change Record Changed Date Change content version 1.4 L02 series host and modules description--modified the description of power module Aug. 2021 V21.81 7.3 Pulse width modulation PWM--5. Special instructions, changed the output frequency 3.1 Special Relays and Registers-Change Interpolation Flag Dec.2021...
Need help?
Do you have a question about the L02 Series and is the answer not in the manual?
Questions and answers