Lk3u PLC
Lk3u PLC
Lk3u PLC
General parameters
General parameters
Operating
0℃~50℃
temperature
Storage
20℃~60℃
temperature
Operating
10%RH~90%RH(no condensation)
humidity
Programming
GX-Developer/GX-Works2
software
Communication
CAN: PLC expansion port, can be connected to our IO expansion module.
port 3
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℃)
2 TX
3 RX
Port1 5 GND
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
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;
https://www.lollette.com
Special relay M function description
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
M8466: M8467:
DSZR, ZRN instruction Y2 clear signal specifi DSZR, ZRN instruction Y3 clear signal specifi
cation is valid cation is valid
https://www.lollette.com
*5 ENET network function related
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
3: C235 C241 C244 C238 (single phase) highest response frequency: 200KHz;
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):
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
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
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.
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
*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.
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
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;
1/communication port 2
* 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;
M8404-
https://www.lollette.com
M8161-8 bit processing mode (ON-8 bit, OFF-16 bit)
M8424-
The maximum data sent and received by the RS2 command is 520 (exceeded 6706)
*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
*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
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
*3 When this pulse is used, the pulse issued by the axis accumulates the
corresponding register when the PLSY and PLSR instructions are used.
* 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.
*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.
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 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.
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)
https://www.lollette.com
default 8) default 250K)
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;
5, the master / slave D8152 (the number of shared registers) must be guaranteed to
be the same;
Register that can't communicate
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);
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
https://www.lollette.com
(increased side) -32768~
<ACT> of bit1 = 1, bit5 = 0 valid
Alarm set value 32767
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.
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