Lk3u PLC

Download as pdf or txt
Download as pdf or txt
You are on page 1of 35

LK3U PLC

General parameters
General parameters

Mounting method DIN35 rail or screw fixing

Operating
0℃~50℃
temperature
Storage
20℃~60℃
temperature
Operating
10%RH~90%RH(no condensation)
humidity

Air requirements Non-corrosive, no dust

Working voltage DC24V±10%

Working current Depends on the specific model,<1A

Programming
GX-Developer/GX-Works2
software

Maximum step 32000

Communication RS232:program download, man-machine interface communication;


port 0 Programming port protocol, default baud rate 19200."

RS485:Human-machine interface communication, various instrument


Communication communication;
port 1 The default programming port protocol, the default baud rate is 19200,
optional MODBUS-RTU/RS/RS2 protocol."

RS485:Human-machine interface communication, various instrument


Communication communication;
port 2 The default programming port protocol, the default baud rate is 19200,
optional MODBUS-RTU/RS/RS2 protocol."

Communication
CAN: PLC expansion port, can be connected to our IO expansion module.
port 3

Digital input DC24V NPN leakage type

https://www.lollette.com
Transistor: DC24V NPN Leakage (500mA)
Digital output
Relay: dry contact (AC250V/DC30V; 3A)
Default 0-10V
Optional 0-20mA
Analog input
NTC10K(-40℃~150℃)
NTC50K(-40℃~210℃)

Analog output 0-10V

Communication port pin definition


9-pin female pin number RS-232

2 TX

3 RX

Port1 5 GND

* The wiring between RS-232 communication port is TX connected to RX, RX is connected to


TX, and GND is connected to GND.

9-pin female pin No. RS-485(1) RS-485(2) CAN

1 A+

2 CANL

3 CANH

4
Port2
5 GND GND GND

6 B-

8 B-

https://www.lollette.com
9 A+

* The wiring between RS-485 communication ports is A+ connected to A+, B-connected to B-;

* The CAN communication port is connected to CANH to the expansion module CANH
(multiple modules are together), CANL is connected to the expansion module CANL (multiple
modules are together), please be sure to use the communication line with shield layer, and the
length is not More than 500mm. The last module Please be sure to switch the terminating
resistor to the connected terminal.

Component range
Component range

M0~M499 500 点
M500~M1023 524 点
Auxiliary relayM
M1024~M7679 6656 点
M8000~M8511 512 点
S0~S9 10 点
S10~S499 490 点
Status relay S S500~S899 400 点
S900~S999 100 点
S1000~S4095 3096 点
T0~T199 200 点
T200~T245 46 点
Timer T T246~T249 4点
T250~T255 6点
T256~T511 256 点
C0~C99 100 点
C100~C199 100 点
Counter C C200~C219 20 点
C220~C234 15 点
C235~C255 20 点

https://www.lollette.com
D0~D199 200 点
D200~D511 312 点
Register D.V.Z D512~D7999 7488 点
D8000~D8511 512 点
V0~V7 Z0~Z7 16 点
N0~N7 8点
P0~P4095 4096 点
Nested pointer I0 口口~I5 口口 6点
I6 口口~I8 口口 3点
I010~I060 6点
16 位 - 32 位 -
K(10 进制) 32768~ 2147483648~214
32767 7483647
Constant 16 位 0~
H(16 进制) 32 位 0~FFFFFFFF
FFFF
-1.0×2128~-1.0×2-
E(浮点数)
126,0,1.0×2-126~1.0×2128

Ladder program capacity 32000

Supported instructions
Basic instructions (all supported)
LD LDI LDP LDF AND ANDP ANDF ANDB OR ORI ORP ORF ORB MPS MRD MPP MC MCR INV PLS PLF OUT

SET RST NOP MEP MEF END STL(Max 8-way branch) RET

https://www.lollette.com
https://www.lollette.com
https://www.lollette.com
https://www.lollette.com
* Support 32-bit plus D command, support pulse plus P command;

* When using an unsupported command, report 6506 failure;

*NO means that the instruction is not supported temporarily;

* Analog data read and write instructions;

https://www.lollette.com
Special relay M function description

M8000:Running monitoring contacts M8001:Running monitoring anti-contact


M8002:Initializing the pulse contact M8003:Initializing pulse anti-contact
M8004:Error indication contact
M8008:
Power failure detection (when poweroff is 1,
after power off is 0)
M8011:10 ms clock pulse M8012:100 millisecond clock pulse
M8013:1 second clock pulse M8014:1 minute clock pulse
M8015:Setting the clock M8016:Clock display stopped
M8017:
M8019:Clock error flag
Clock plus or minus 30 seconds correction
M8020:Zero mark M8021:Borrowing sign
M8022:Carry flag
M8029:Instruction execution end flag
M8031:Non-latched data clear M8032:Latched data clear
M8034:All outputs are disabled M8039:Constant scan mode
M8040:STL prohibits transfer M8046:STL action
M8048:S900-S999 Yes: S900-
M8047:STL monitoring is effective
S999 has ON status
M8049:Signal alarm is valid
M8050:I0 port interrupt is forbidden M8051:I1 port interrupt is forbidden
M8052:I2 port interrupt is forbidden M8053:I3 port interrupt is forbidden
M8054: I4 port interrupt is forbidden M8055:I5 port interrupt is forbidden
M8059:
I010, I020, I030, I040, I050, I060 Count interr
upt disabled
M8121:The first road weighs incorrectly and
M8120:Start the first weighing function
cannot be reset automatically.
M8123:The second way weighs incorrectly a
M8122:Start the second weighing function *1
nd cannot be reset automatically.
M8125:The third way weighing error, can no
M8124:Start the third weighing function
t be automatically reset

https://www.lollette.com
M8127:The fourth way weighs incorrectly an
M8126:Start the fourth weighing function
d cannot be reset automatically
M8129:
Serial port 1 communication timeout flag
M8139: HSCS, HSCR, HSZ, HSCT high-
speed counter comparison instruction
execution
M8149:CAN communication timeout flag M8150:CAN allowed work mark *2
M8152:User interrupt input command Y4 M8153:User interrupt input command Y5
*3
M8154:User interrupt input command Y6 M8155:User interrupt input command Y7
M8168:
M8161:16-bit/8-bit switching flag
SMOV instruction HEX processing function
M8170:X0 pulse capture M8171:X1 pulse capture
M8172:X2 pulse capture M8173:X3 pulse capture
M8174: X4 pulse capture M8175:X5 pulse capture
M8196:C251 C252 C254 2 multiplier flag M8197:C253 C255 2 multiplier flag
M8198: C251 C252 C254 4 multiplier flag M8199: C253 C255 4 multiplier flag
M8200-M8234:C200- M8235-M8345:
C234 Counting direction setting Counting direction setting of C235-C245
M8246-M8255:C246-
C255 Counting direction sign
M8329:
Instruction execution ended abnormally
M8338:
PLSV command acceleration and decelerati
on
M8340-M8349:High- M8350-M8359:
speed output Y0 related function High speed output Y1 related function
M8360-M8369: M8370-M8379:
High speed output Y2 function High speed output Y3 function
M8440-M8449: M8450-M8459:
High speed output Y4 function High speed output Y5 function
*3
M8470-M8479: M8480-M8489:
High speed output Y6 function High speed output Y7 function
M8401: M8402:
RS command is being sent (M8121) RS command transmission (M8122)

M8403:
https://www.lollette.com
RS command reception flag (M8123)

M8409:
Communication timeout flag (M8129)
M8401:Channel 1- M8421:Channel 2-
MODBUS communication MODBUS communication
M8402: M8422:
Channel 1- MODBUS communication error Channel 2- MODBUS communication error
M8403: M8423:
Channel 1- MODBUS communication error l Channel 2- MODBUS communication error l
atch atch *4

M8408: Channel 1 - Retry M8428:Channel 2 - Retry


M8409:Channel 1 has timed out M8429:Channel 2 has timed out
M8410:
Channel 1/2 is switched using the ADPRW i
nstruction
M8404:ENET is ready M8406:Executing time setting
M8411:Execution time setting M8492:IP address save area write request
M8493:
The IP address save area is written to the en M8494:IP address save area write error
d *5
M8495:
M8496:IP address save area clear ends
IP address save area clearing requirement
M8498:
M8497:IP address save area clear error
Change IP address function running flag
M8460:User interrupt input command Y0 M8461:User interrupt input command Y1
M8462:User interrupt input command Y2 M8463:User interrupt input command Y3
M8464: M8465:
DSZR, ZRN instruction Y0 clear signal specifi DSZR, ZRN instruction Y1 clear signal specifi
cation is valid cation is valid

M8466: M8467:
DSZR, ZRN instruction Y2 clear signal specifi DSZR, ZRN instruction Y3 clear signal specifi
cation is valid cation is valid

*1 weighing function related

*2 CAN function related

*3 High speed 8-axis correlation

*4 MUDBUS function related

https://www.lollette.com
*5 ENET network function related

Special register D function description

D8010:
D8011:Minimum scan time (0.1ms)
Current value of scan time (0.1ms)
D8012:Maximum scan time (0.1ms) D8013:RTC clock seconds
D8014:RTC clock minute D8015:RTC clock hour
D8016:RTC clock day D8017:RTC clock month
D8018:RTC clock year D8019:RTC clock week
D8042:3rd activity STL status D8043:4th activity STL status
D8044:5th activity STL status D8045:6th activity STL status
D8046:7th activity STL status D8047:8th activity STL status
D8049:Minimum active STL status
D8116:first weighing filter times D8117:second way weighing and filtering
D8118:Third way weighing filter times D8119:Fourth way weighing filter
D8120:First way weighing data low D8121:First way weighing data high
*1
D8122:Second way weighing data low D8123:Second way weighing data high
D8124:Third way weighing data low D8125:Third way weighing data high
D8126:Fourth way weighing data low D8127:Fourth way weighing data high
D8139:
Number of instructions in execution of H
SCS, HSCR, HSZ, HSCT instructions (cann
ot be greater than 4)
D8140:Y0 pulse output count register D8142:Y1 pulse output count register
D8144:Y2 pulse output count register D8146:Y3 Pulse Output Count Register
D8149:
CAN master/slave communication timeo D8150:Host/slave station number (0~32)
ut time (1=1ms) *2
D8151: D8152:
Number of slaves (1~32, default: 8) Number of shared registers (1~32, default: 8)
D8156: D8157:
DSZR, ZRN instruction specifies Y04 clear DSZR, ZRN instruction specifies Y05 clear sign *3
signal component al component

https://www.lollette.com
D8158: D8159:
DSZR, ZRN instruction specifies Y06 clear DSZR, ZRN instruction specifies Y07 clear sign
signal component al component
D8170:Y4 pulse output count register D8172:Y5 pulse output count register
D8174:Y6 pulse output count register D8176:Y7 pulse output count register
D8182:Z1 Index Register Contents D8183:V1 index register contents
D8184:Z2 Index Register Contents D8185:V2 Index Register Contents
D8186:Z3 Index Register Contents D8187:V3 Index Register Contents
D8188:Z4 Index Register Contents D8189:V4 Index Register Contents
D8190:Z5 Index Register Contents D8191:V5 Index Register Contents
D8192:Z6 Index Register Contents D8193:V6 Index Register Contents
D8194:Z7 Index Register Contents D8195:V7 Index Register Contents
D8330:
D8310:Random number (32 bit) DUTY instruction timing clock output 1 counte
r of scan number
D8331: D8332:
DUTY instruction timing clock output 2 c DUTY instruction timing clock output 3 counte
ounter of scan number r of scan number
D8333: D8334:
DUTY instruction timing clock output 4 c DUTY instruction timing clock output 5 counte
ounter of scan number r of scan number
D8336: D8337:DVIT interrupt input specification Y4-
DVIT interrupt input specification Y0-Y3 Y7
D8340-D8349:High Speed Output Y0
D8350-D8359:High Speed Output Y1 Register
Register
D8360-D8369:High Speed Output Y2
D8370-D8379:High Speed Output Y3 Register
Register
D8402:
RS command sends a data remaining nu D8403:Number of RS commands received
mber
D8400:Channel 1- D8420:
Communication Format Setting Channel 2 - Communication Format Setting
D8401:Channel 1-Protocol D8421:Channel 2-Protocol
*4
D8402:Channel 1- D8422:
communication error code Channel 2 - Communication Error Code
D8403:Channel 1-Error Details D8423:Channel 2 - Error details

https://www.lollette.com
D8404:
D8424:Channel 2-
Channel 1 - Step in which communicatio
The step of communication error
n error occurred
D8407:Channel 1- D8427:
communication step number Channel 2 - Communication step number
D8408: D8428:
Channel 1 - Current number of retries Channel 2 - Current number of retries
D8409:Channel 1-
D8429:Channel 2 - Slave response timeout
slave response timeout
D8410:Channel 1-Transmit Delay D8431:Channel 2 - Transmit Delay
D8412:Channel 1 - Number of retries D8432:Channel 2 - Number of retries
D8414:Channel 1-
D8434:Channel 2-station station number
station station number
D8419:Channel 1-action mode display D8439:Channel 2-action mode display
D8405:
D8406:Saving Ethernet Adapter Status
Connection status of the Ethernet port
D8411:
D8413:Ethernet chip program version
Time setting function action result
D8415:Site MAC address D8416:Site MAC address
D8417:Site MAC address D8418:Error code for Ethernet adapter
D8470:IP address (lower) D8471:IP address (high)
*5
D8472:Subnet mask (lower) D8473:Subnet mask (high)
D8474:
D8475:Default router IP address (high)
Default router IP address (lower)
D8492:IP address setting (lower) D8493:IP address setting (high)
D8494:Subnet mask setting (lower bit) D8495:Subnet mask setting (high)
D8496: D8497:
Default router IP address setting (lower) Default router IP address setting (high)
D8440-D8449:High Speed Output Y4
D8450-D8459:High Speed Output Y5 Register
Register
*3
D8470-D8479:High Speed Output Y6
D8480-D8489:High Speed Output Y7 Register
Register
D8464: D8465:
DSZR, ZRN instruction specifies Y0 clear DSZR, ZRN instruction specifies Y1 clear signal
signal component component
D8466: D8467:
DSZR, ZRN instruction specifies Y2 clear DSZR, ZRN instruction specifies Y3 clear signal

https://www.lollette.com
signal component component

D8000:Monitoring timer setting (default 200)

D8008:Power failure detection time (set value: 1~100, default 10ms)

D8020:X0-X17 filter coefficient (set value: 0~60ms, default 10)

D8021:X20-X77 filter coefficient (set value: 1~60ms, default 10)

D8039:Constant scan time (unit: 1ms, default 0)

D8049:Minimum active STL status

D8139:Number of instructions in execution of HSCS, HSCR, HSZ, HSCT instructions


(cannot be greater than 4)

D8153:CAN communication baud rate (20K~1000K, default: 250K)

D8400:Serial port 1 communication parameter setting

D8409:RS/MODBUS master communication timeout time (1=10ms, default 500)

D8498:IP address save area error code

*1 weighing function related

*2 CAN function related

*3 High speed 8-axis correlation

*4 MUDBUS function related

*5 ENET network function related

High-speed counter instructions


High-speed counter instructions

1: C251 C252 C254 (AB phase) highest response frequency: 200KHz;

2: C253 C255 (AB phase) highest response frequency: 200KHz;

3: C235 C241 C244 C238 (single phase) highest response frequency: 200KHz;

4: The highest response frequency of other high-speed counters: 10KHz;

5: The high-speed counter of the AB phase can be set to 2x and 4x (the setting is only
effective during the OUT drive cycle):

*M8196-ON, C251 C252 C254 count pulse 2 multiplier;

*M8197-ON, C253 C255 count pulse 2 multiplier;

*M8198-ON, C251 C252 C254 count pulse 4 times frequency;

https://www.lollette.com
*M8199-ON, C253 C255 count pulse 4 times multiplier;

Example: If you use an AB phase encoder, it is 1024 pulse input in one turn. If the
multiplier is not set, then the counter count is 1024 (the original FX3U does not
support 2 times the frequency). If the frequency is set to 2, That turn, the counter
counts 2048; if you set 4 times, then the counter counts 4096;

By the ON/OFF of
UP/DOWN M8235~M8245
One-way single count input Increase/decrease count
ON: count down
OFF: increase count
As shown on the left,
increase/decrease the count.
Counting direction can be
performed by
One-way double count input M8246~M8250
Settings.
ON: count down
OFF: increase count
As shown on the left,
increase/decrease the count.
1 times Counting direction can be
performed by
Two-way double count input M8246~M8250
Settings.
ON: count down
OFF: increase count
4 times

High-speed counter instructions

Counter Distinguish X000 X001 X002 X003 X004 X005 X006 X007

https://www.lollette.com
number
C235 H/W U/D
C236 S/W U/D
C237 S/W U/D
C238 H/W U/D
C239 S/W U/D
C240 S/W U/D
One-way
single count C241 H/W U/D R
input
C242 S/W U/D R
C243 S/W U/D R
C244 H/W U/D R S

C245 S/W U/D R S

C246 S/W U D
C247 S/W U D R
One-way C248 S/W U D R
double count
input
C249 S/W U D R S
C250 S/W U D R S
C251 H/W A B
C252 H/W A B R
Two-way C253 H/W A B R
double count
input
C254 H/W A B R S
C255 H/W A B R S
U:increase D:down counter
H/W: hardware counter S/W:Software Counter
counter input input
R:external reset S:external start
A:Phase A input B:Phase B input
input input

* Only X0-X5 supports high-speed input function, X6 and X7 do not support high-
speed input function.

DHSCS, DHSCR, DHSZ instruction

https://www.lollette.com
* Three high-speed comparison instructions, the maximum number of simultaneous
driving: 4 times (greater than 4 reports 6705);

*When using hardware high-speed counter comparison, the response frequency does
not change; DHSCS and DHSCR are performing real-time comparison; however, the
interval comparison of DHSZ hardware is not real-time, but about 5us comparison;

* When using the hardware high-speed counter, as long as DHSCS, DHSCR, DHSZ are
driven, the comparison result will be output;

* When using the software high-speed counter, the comparison is performed only
when the high-speed counter has input;

Communication port
Communication port 1 / communication port 2 instructions

* Communication port 1 / communication port 2 power-on default is FX


programming port protocol;

* Communication port 1 / communication port 2 supports switching between


Mitsubishi FX programming port protocol and MODBUS-RTU protocol;

* Communication port 1 communication parameters are set in D8400, communication


parameters of communication port 2 are set in D8420, support ADPRW to switch
between communication port 1 and communication port 2;

*ADPRW read and write data length is up to 520, beyond the reported 6343 or 6363
failure;

* If the D8400 or D8420 does not have the MODBUS-RTU master function enabled,
the 6706 fault is reported when the ADPRW instruction is used.

Special register and relay description

Com Comm
munic unicati Effective
name details R/W
ation on station
port1 port2
Communication format Set the communication format, set the
D8400 D8420 Master/slave R/W
setting details as seen later.

https://www.lollette.com
Select MODBUS Master protocol when the
MODBUS protocol value is H0
D8401 D8421 Master/slave R/W
selection Select MODBUS Slave Protocol when the
value is H10 (K16)
Communication error The new error code that occurred in
D8402 D8422 Master/slave R
code MODBUS communication will be stored.
D8403 D8423 Error details Master/slave The details of the latest error will be stored. R
The step number of the first ADPRW
step of communication
D8404 D8424 Master instruction that has an error will occur. R
error
Being stored.
The step number of the ADPRW instruction
in MODBUS communication will be stored.
Communication step (When the instruction is not executed, 0 will
D8407 D8427 Master R
number be stored.)
The step number of the last executed
ADPRW instruction will be maintained.
When the communication retry is
Current number of performed due to the slave response
D8408 D8428 Master R
retries timeout, the current number of retries will
be stored.
After the master station sends the request,
if the slave station does not respond within
the set time, the master will send the text
again, or judge it as timeout error
D8409 D8429 Slave response timeout Master according to the set retry times (d8412, R/W
d8432), and then end the processing of the
instruction
Setting range: 0 ~ 32767, 1 = 10ms, when
it is 0, 3 seconds is timeout
This delay refers to delaying the return of
D8410 D8431 Send delay Master/slave data after receiving the data. R/W
Setting range: 0~16382[ms], default: 10ms
When the slave does not respond within
the time set in the slave response timeout,
the master sends the text until the set
number of retries is reached, and the
D8412 D8432 number of retries Master command processing ends due to a R/W
timeout error.
Setting range: 0 to 20 [times]
When setting a value of 20 or more, the
number of retries is 20

https://www.lollette.com
Store the station number of the station, the
D8414 D8434 Station number Master/slave R/W
setting range is from 1 to 247
When a communication error occurs, an
Serial communication error code corresponding to the error
D8063 D8438 Master/slave R
error code occurred in the MODBUS communication is
stored
0-FX programming port communication
4-RS instruction
D8419 D8439 Action mode display Master/slave 5-RS2 instruction R
19-MODBUS Communication Master
29-MODBUS communication slave station

Special relay

Communi Commu
Effective R/
cation nication name details
station W
port1 port2
Communication port OFF: Communication port 1 uses
1/2 use the ADPRW instruction. R/
M8410 Master
ADPRW instruction ON: Communication port 2 uses the W
switching ADPRW instruction.
OFF: The instruction is not in
execution or the instruction has not
End of instruction
M8029 Master been executed yet. R
execution
ON: The instruction execution is
completed.
In Modbus Set to ON in MODBUS
M8401 M8421 Master R
Communication communication.
MODBUS Master/slav Set to on when Modbus
M8402 M8422 R
communication error e communication error occurs
MODBUS
Master/slav Turns ON when a MODBUS
M8403 M8423 communication error R
e communication error occurs.
latch
When the slave does not respond
on time, it sends a retry at the
M8408 M8428 Retry Master R
primary station.
Period is set to ON
M8409 M8429 Timeout occurred Master The response timeout is set to ON R

Communication port 1 / communication port 2 MODBUS-RTU slave protocol device address


https://www.lollette.com
Bit component address

MODBUS-RTU Slave device address


device address
Read out Read/write
0x0000~0x1DFF 0x0000~0x1DFF M0~M7679
0x1E00~0x1FFF 0x1E00~0x1FFF M8000~M8511
0x0000~0x2FFF 0x0000~0x2FFF S0~S4095
0x3000~0x31FF 0x3000~0x31FF TS0~TS511
0x3200~0x32FF 0x3200~0x32FF CS0~CS255
0x3300~0x33FF 0x3300~0x33FF Y0~Y377
0x3400~0x34FF —— X0~X377

Word component address

MODBUS-RTU Slave device address


device address
Read out Read/write
0x0000~0x1F3F 0x0000~0x1F3F D0~D7999
0x1F40~0x213F 0x1F40~0x213F D8000~D8511
0xA140~0xA33F 0xA140~0xA33F TN0~TN511
0xA340~0xA407 0xA340~0xA407 CN0~CN199
0xA408~0xA477 0xA408~0xA477 CN200~CN255(32 位)
0xA478~0xA657 0xA478~0xA657 M0~M7679
0xA658~0xA677 0xA658~0xA677 M8000~M8511
0xA678~0xA777 0xA678~0xA777 S0~S4095
0xA778~0xA797 0xA778~0xA797 TS0~TS511
0xA798~0xA7A7 0xA798~0xA7A7 CS0~CS255
0xA7A8~0xA7B7 0xA7A8~0xA7B7 Y0~Y377
0xA7B8~0xA7C7 —— X0~X377

https://www.lollette.com
Communication port 1 / communication port
2 communication parameter setting - D8400
/ D8420 setting instructions

Content
Bit number Name
0(bit=OFF) 1(bit=ON)
b0 Data length 7 bit*1 8 bit
b2 b1
b1 (0 0)-No parity
Parity (0 1)-奇数(ODD)
b2
(1 1)-偶数(EVEN)

b3 Stop bit 1位 2位

b4 b7 b6 b5 b4 b7 b6 b5 b4
(0 0 1 1):300 (1 0 0 0):9600
b5
(0 1 0 0):600 (1 0 0 1):19200
Rate
b6 (0 1 0 1):1200 (1 0 1 0):38400
(0 1 1 0):2400 (1 0 1 1):57600
b7
(0 1 1 1):4800 (1 1 0 1):115200
b8~b11 Disable setting is 0
b14 b13 b12
(0 0 0):FX programming port protoco
l
b12 (0 0 1): RS no protocol communicatio
b13 n
b14 (0 1 0): RS2 no protocol communicati
on
(0 1 1): MODBUS protocol (D8401/D
8421 setting master and slave)
b15 Disable setting 0

*1: When the data bit is 7 bits, the parity cannot be selected - no check (report 6304
fault)

*FX programming port protocol: data length 7, stop bit 1, parity EVEN is fixed, rate

https://www.lollette.com
can be set;

*MODBUS-RTU protocol: data length, stop bit, parity, rate can be set;

*RS command: data length, parity, stop bit, rate can be set;

*RS2 command: data length, parity, stop bit, rate can be set;

When d8401 / d8421 value is H0, select Modbus master protocol;

When d8401 / d8421 value is H10, select MODBUS slave protocol

MODBUS command supported by communication port

1/communication port 2

Supported device types


Features Command
Bit component Word component
Bit read command 1(H1)、2(H2) X、Y、M、S、T、C、special M ——
Bit write command 5(H5) Y、M、S、T、C、special M ——
D、T、C、
Register read command 3(H3)、4(H4) X、Y、M、S、T、C、special M
special D
D、T、C、
Register write command 6(H6) Y、M、S、T、C、special M
special D
Register bulk write D、T、C、
16(H10) Y、M、S、T、C、special M
command special D

* Using register read bits, a register will read 16 bit component states;

* Using the register write bit, a register will be written to affect the state of the 16-bit
component;

Communication port 1 RS command component function

M8401-RS instruction is being sent (M8121)

M8402-RS command transmission (M8122)

M8403-RS command receiving flag (M8123)

M8404-

M8409-Communication Timeout Flag (M8129)

https://www.lollette.com
M8161-8 bit processing mode (ON-8 bit, OFF-16 bit)

D8400-Communication parameters and protocol selection (D8120)

D8402-RS instruction sends data remainder

D8403-RS instruction received number

D8409-RS command receiving timeout setting (1=10ms, default 50=500ms)

D8419 - Sign of communication being executed

Communication port 2 component function of RS2 command

M8421-RS2 instruction is being sent

M8422-RS2 command is being sent

M8423-RS2 command receiving flag

M8424-

M8429-Communication timeout flag

D8420-Communication parameters and protocol selection

D8422-RS2 instruction sends data remainder

D8423-RS2 command received number

D8429-RS2 command receiving timeout setting (1=10ms, default 50=500ms)

D8439-Flag of communication is being performed

The maximum data sent and received by the RS2 command is 520 (exceeded 6706)

Input interrupt I0 port -I5 port description

* Support X0-X5 input interrupt;

* Input interrupt delay execution (D8393 function) is not supported.

High speed output


* Standard version supports 4 high-speed outputs: Y0 ~ Y3; high-speed output
enhanced version can support 8 high-speed output: Y0 ~ Y7.

*Y0~Y5 supports the highest pulse frequency: 200KHz; Y6~Y7 supports the highest
pulse frequency: 100KHz.

*Standard version When using Y4~Y7 pulse/positioning command, report 6505 fault.

https://www.lollette.com
Special register and relay

Device number
Name R/W Object instruction
Y0 Y1 Y2 Y3 Y4*1 Y5*1 Y6*1 Y7*1
PLSY/PLSR/DSZR/
Instruction
M8029 R DVIT/ZRN/DRVI/ D
execution end flag
RVA 等
Instruction PLSY/PLSR/DSZR/
M8329 execution abend R DVIT/ZRN/PLSV/
flag DRVI/DRVA
Acceleration and
M8338 R/W PLSV
deceleration
Interrupt input
M8336 specification R/W DVIT
function is valid
PLSY/PLSR/DSZR/
M83 M8 M8 M83 M844 M845 Monitoring in pulse
M8470 M8480 R DVIT/ZRN/PLSV/
40 350 360 70 0 0 output
DRVI/DRVA
M83 M8 M8 M83 M844 M845 Clear signal output
M8471 M8481 R/W DSZR/ZRN
41 351 361 71 1 1 function is valid*2
Origin return
M83 M8 M8 M83 M844 M845
M8472 M8482 direction R/W DSZR
42 352 362 72 2 2
specification
M83 M8 M8 M83 M844 M845
M8473 M8483 Forward limit PLSY/PLSR/DSZR/
43 353 363 73 3 3
R/W DVIT/ZRN/PLSV/
M83 M8 M8 M83 M844 M845 DRVI/DRVA
M8474 M8484 Reversal limit
44 354 364 74 4 4
M83 M8 M8 M83 M844 M845 Near-point signal
M8475 M8485
45 355 365 75 5 5 logic inversion
R/W DSZR
M83 M8 M8 M83 M844 M845 Zero signal logic
M8476 M8486
46 356 366 76 6 6 inversion
M83 M8 M8 M83 M844 M845 Interrupt signal
M8477 M8487 R/W DVIT
47 357 367 77 7 7 logic inversion
PLSY/PWM/PLSR/
M83 M8 M8 M83 M844 M845 Positioning
M8478 M8488 R DSZR/DVIT/ZRN/
48 358 368 78 8 8 command driver
PLSV/DRVI/DRVA

https://www.lollette.com
PLSY/PLSR/DSZR/
M83 M8 M8 M83 M844 M845 Pulse stop
M8479 M8489 R/W DVIT/ZRN/PLSV/
49 359 369 79 9 9 command
DRVI/DRVA

M84 M8 M8 M84 M815 M815 User interrupt input


M8154 M8155 R/W DVIT
60 461 462 63 2 3 command
Clear signal device
M84 M8 M8 M84 M815 M815
M8158 M8159 designation R/W DSZR/ZRN
64 465 466 67 6 7
function is valid

*1 High-speed output enhanced version.

*2 When the standard board clear signal device specification function is invalid, clear
signals Y0-Y4, Y1-Y5, Y2-Y6, Y3-Y7;

When the high-speed output enhanced version clear signal device specification
function is invalid,Clear signal Y0-Y10, Y1-Y11,Y2-Y12, Y3-Y13,Y4-Y14, Y5-Y15,

Y6-Y16, Y7-Y17;

Special register

Device number Initi


al Lengt Object
Name
Y0 Y1 Y2 Y3 Y4*1 Y5*1 Y6*1 Y7*1 val h instruction
ue
Interrupt
input
D8336 D8337 0 16 bit DVIT
specificat
ion
D8340 D8350 D8360 D8370 D8440 D8450 D8470 D8480 Position
current
0 32 bit
D8341 D8351 D8361 D8371 D8441 D8451 D8471 D8481 value
register DSZR/DVIT
/ZRN/
Base
DSZR/
D8342 D8352 D8362 D8372 D8442 D8452 D8472 D8482 speed 0 16 bit
PLSV/DRVI
[Hz]
/DRVA
D8343 D8353 D8363 D8373 D8443 D8453 D8473 D8483 Maximu
100
m speed 32 bit
D8344 D8354 D8364 D8374 D8444 D8454 D8474 D8484 [Hz] 000

Crawling 100
D8345 D8355 D8365 D8375 D8445 D8455 D8475 D8485 16 bit DSZR
speed 0
https://www.lollette.com
[Hz]
D8346 D8356 D8366 D8376 D8446 D8456 D8476 D8486 Origin
return 500
32 bit
D8347 D8357 D8367 D8377 D8447 D8457 D8477 D8487 speed 00
[Hz]
Accelerat
D8348 D8358 D8368 D8378 D8448 D8458 D8478 D8488 ion time 100 16 bit DSZR/DVIT
[ms] /ZRN/ PLS
Decelerat V*2/DRVI/
D8349 D8359 D8369 D8379 D8449 D8459 D8479 D8489 ion time 100 16 bit DRVA
[ms]
Clearing
signal
D8464 D8465 D8466 D8467 D8156 D8157 D8158 D8159 device 0 16 bit DSZR/ZRN
designati
on
D8140 D8142 D8144 D8146 D8170 D8172 D8174 D8176 pulse
current PLSY/PLSR
0 32 bit
D8141 D8143 D8145 D8147 D8171 D8173 D8175 D8177 value *3
register

*1 High-speed output enhanced version.

*2 The M8338 needs to be turned ON, and the acceleration/deceleration function of


PLSV is valid.

*3 When this pulse is used, the pulse issued by the axis accumulates the
corresponding register when the PLSY and PLSR instructions are used.

Enhanced PWM Description

* Channels that support enhanced PWM output are: Y0, Y1, Y2, Y3;

* Enhanced PWM maximum frequency is: 900KHz (out of 6707 error), duty cycle: 1.0%
~ 99.0% (the higher the frequency, the greater the duty error).

* Both frequency and duty cycle can be changed and output in real time during
instruction execution.

*S1--PWM specified frequency, 32 digits (Y0-Y3 up to 900KHz, exceeding 6706);


https://www.lollette.com
*S2--PWM specified duty cycle, 16 digits (0-1000: corresponding to 0%-100%,
exceeding 6706);

*D --PWM output Y channel (only Y0-Y3 is supported).

Analog read and write instructions

Analog / NTC temperature read command RD3A

*m1- specifies the number of AD channels that need to be read (out of the maximum
number of channels reported 6706 error);
*m2 - specify the upper and lower range of the register, m2 is the upper limit of the range,
m2+1 is the lower limit of the range, only the D register can be specified as the range
address, m2+2 is the first-order lag filter coefficient (0-128) is recommended to be set to 50,
Other datagrams 6706 errors;
* The above program principle: When M0 is ON, read the first AD data (the upper limit range
is at D0, the lower limit range is at D1) to D10.
Analog input range setting formula:
Input signal 0-10V/0-20mA:D0=External upper range; D1=External lower range, D2
customer is set according to site conditions;
Input signal 4-20mA: D0 = external upper range; D1 = external lower range - ((external
upper range - external lower range) / 4; D2 is the same as above.
Example of analog input range setting:
Pressure transmitter range is 0-5Kpa
input sign 0-10V/0-20mA:D0=5000;D1=0;D2=50(customer can adjust the filter coefficient
by himself);
input sign 4-20mA:D0=5000;D1=0-((5000-0)/4)=-1250;D2 is the same as above

The NTC temperature read command is the same as RD3A. The read format is the same. The
only difference is that when reading the NTC temperature, the range register should not be
set. The upper and lower ranges must be 0 at the same time.

*NTC10K temperature range -40 ° C ~ 150 ° C;


*NTC50K temperature range -40 °C ~ 210 °C.

https://www.lollette.com
Analog write command WR3A

*m1- specifies the number of DA channels that need to be output (beyond the 6712 error);
*m2--Specify the upper and lower range range registers, m2 is the upper limit of the range,
m2+1 is the lower limit of the range, only the D register can be specified as the range
address, and other datagrams are 6712 errors;
*The above program principle: When M0 is ON, the data of D10 (the upper limit range is D0
and the lower limit range is D1) is output to DA0.
Follow the procedure above:
1) For example: D0=1000, D1=0, the output voltage of DA is 0~10V, the data of D10 is 500,
and the output of DA is 5V;
2) For example: D0=0, D1=0, the output voltage of DA is 0~10V, the data of D10 is 2048, and
the output of DA is 5V;
3) For example: D0=1000, D1=-1000, the output voltage of DA is 0~10V, the data of D10 is 0,
and the output of DA is 5V;

Weighing function description

*Weighing function related auxiliary relays and registers please see: Special relay M
function description and special register D function description

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);

https://www.lollette.com
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
D8150-host settings (0=host)
(1=1ms, default 50ms)
D8152-Number of shared registers (1~32, default
D8151-number of slaves (1~32, default 8)
8)
D8153-communication baud rate (20K~1000K, default 250K)
D8196-Slave that can't communicate
D8197-Slave that can't communicate(17~32)
(1~16)
D8198-Slave that can't communicate list D8199-Slave that can't communicate list
(1~16) (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
D8150-slave address setting (1~32)
parameter (1=1ms, default 60ms)

D8152-Number of shared registers (1~32, D8153-communication baud rate (20K~1000K,

https://www.lollette.com
default 8) default 250K)

D8196-Slave that can't communicate


D8197-Slave that can't communicate(17~32)
(1~16)
D8198-Slave that can't communicate list
D8199-Slave that can't communicate list(17~32)
(1~16)
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

13 1机
D8196 16 机 15 机 14 机 12 机 11 机 10 机 9 机 8 机 7 机 6 机 5 机 4 机 3 机 2 机

29 25 20
D8197 32 机 31 机 30 机 28 机 27 机 26 机 24 机 23 机 22 机 21 机 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

https://www.lollette.com
D8150 Start End Description D8150 Start End Description
Host shared
0 D1000 D1031 17 D1544 D1575 Unit 17 shared
register
Unit 1 shared
1 D1032 D1063 18 D1576 D1607 Unit 18 shared
register
Unit 2 shared
2 D1064 D1095 19 D1608 D1639 Unit 19 shared
register
Unit 3 shared
3 D1096 D1127 20 D1640 D1671 Unit 20 shared
register
Unit 4 shared
4 D1128 D1159 21 D1672 D1703 Unit 21 shared
register
Unit 5 shared
5 D1160 D1191 22 D1704 D1735 Unit 22 shared
register
Unit 6 shared
6 D1192 D1123 23 D1736 D1767 Unit 23 shared
register
Unit 7 shared
7 D1224 D1255 24 D1768 D1799 Unit 24 shared
register
Unit 8 shared
8 D1256 D1287 25 D1800 D1831 Unit 25 shared
register
Unit 9 shared
9 D1288 D1319 26 D1832 D1863 Unit 26 shared
register
Unit 10 shared
10 D1320 D1351 27 D1864 D1895 Unit 27 shared
register
Unit 11 shared
11 D1352 D1383 28 D1896 D1927 Unit 28 shared
register
Unit 12 shared
12 D1384 D1415 29 D1928 D1959 Unit 29 shared
register
Unit 13 shared
13 D1416 D1447 30 D1960 D1991 Unit 30 shared
register
Unit 14 shared
14 D1448 D1479 31 D1992 D2023 Unit 31 shared
register
Unit 15 shared
15 D1480 D1511 32 D2024 D2055 Unit 32 shared
register
Unit 16 shared
16 D1512 D1543
register

Note:

https://www.lollette.com
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);

PID instruction format

The PID instruction is used to call the PID operation program. Before the PID operation starts,
the MOV instruction should be used to pre-set the parameter (see table below) setting value
into the corresponding data register. If you use a data register with a power-down hold
function, you do not need to repeat the write. If the target operand [D] has a power-down hold
function, it should be reset using the normally open contact of the initialization pulse M8002.

PID function
PID function selection

Address Name Setting range Description


S3+2 Proportional gainKp 0~32767(%) Proportional gain(default 0)
S3+3 Integral gain Ki 0~32767(%) Integral gain(default 0)
S3+4 Differential gain Kd 0~32767(%) Differential gain(default 0)
S3+(7~11) Internal calculation use - do not use in the program
Input change amount
(additional
S3+12 0~32767 Valid when bit1=1 of <ACT>
measurement)
Alarm set value
Input change amount
S3+13 (minus side) 0~32767 Valid when bit1=1 of <ACT>
Alarm set value
S3+14 Output variation 0~32767 <<ACT> of bit1 = 0, bit5 = 1 valid

https://www.lollette.com
(increased side) -32768~
<ACT> of bit1 = 1, bit5 = 0 valid
Alarm set value 32767

Output variation (minus 0~32767 <ACT> of bit1 = 0, bit5 = 1 valid


S3+15 side) -32768~
<ACT> of bit1 = 1, bit5 = 0 is valid
Alarm set value 32767
Bit0 input change (increased side)
overflow
Bit1 input change (minus side)
overflow
Bit2 output change (increased side)
S3+16 Alarm Output
overflow
Bit3 output change (minus side)
overflow
(Valid when bit1=1 or bit2=1 of
<ACT>)
S3+(17~28) Internal calculation use - do not make it in the program

PID parameter setting

The PID instruction can be used multiple times at the same time, but the data register
component numbers of [S3] and [D] used for the operation cannot be repeated.

The PID controller has four main parameters Kp, Ti, Td and TS to be set. No matter
which parameter is selected improperly, it will affect the control effect. When setting
parameters, you should grasp the relationship between PID parameters and system
dynamics and static performance.

In the three control functions of P (proportional), I (integral) and D (differential), the


proportional part is consistent with the error signal in time. As long as the error
occurs, the proportional part can be generated in time proportional to the error. The
regulation function has the characteristics of timely adjustment. The larger the
proportional coefficient Kp, the stronger the proportional adjustment effect, and the
higher the steady-state accuracy of the system; but for most systems, the excessive
Kp causes the output oscillation of the system to increase and the stability decreases.

https://www.lollette.com
The integral action is related to the magnitude of the current error and the historical
situation of the error. As long as the error is not zero, the output of the controller will
change continuously due to the integral action, until the error disappears, and the
integral part is only when the system is in a stable state. No longer change. Therefore,
the integral part can eliminate the steady-state error and improve the control
precision, but the action of the integral action is slow, which may adversely affect the
dynamic stability of the system. When the integral time constant T I is increased, the
integral action is weakened, and the dynamic performance (stability) of the system
may be improved, but the speed at which the steady-state error is eliminated is
slowed down.

The differential part is based on the speed of the error change, giving a large
adjustment effect in advance. The differential part reflects the trend of system
changes, which is more timely than proportional adjustment, so the differential part
has the characteristics of advance and prediction.

When the differential time constant Td is increased, the overshoot is reduced, the
dynamic performance is improved, but the ability to suppress high frequency
interference is degraded.

When selecting the sampling period T S , it should be made much smaller than the
pure lag time or rise time of the system step response. In order for the sampled value
to reflect the change of the analog quantity in time, the smaller the T S is, the better.
However, if T S is too small, it will increase the computational workload of the CPU.
The difference between the two adjacent samples has almost no change, so it is not
appropriate to make the T S too small.

https://www.lollette.com

You might also like