A1 Parameter Adjustment of V Command Control Method..............................................................239
A2 Parameter Adjustment when Encoder is installed besides Ball Screw........................................242
A3 Parameter Adjustment when using Linear Scale Control Method...............................................244
Appendix B:Servo Motor Wiring Example............................................246
B1 Yaskawa Servo Motor Wiring Example......................................................................................246
B2 Panasonic Servo Motor Wiring Example....................................................................................252
B3 Mitsubuish Servo Motor Wiring Example....................................................................................255
Appendix C OP Protection Loop Connection Example.........................273
Appendix D 3 in 1 MPG Wiring Example.................................................274
Appendix E RS 232 Connection Description..........................................275
Appendix F Internet Setting Description.................................................277
LNC Technology Co., Ltd. III
Page 6
Page 7
LNC-M520 Series
SPECIFICATION
1 SPECIFICATION
LNC-520i Series is a standard PC-Based controller and also an integrated numerical controller product which
is designed by Pou Yuen Technology. Its stability in quality is best suitable for applications of middle
complexity, such as Milling, milling, grinding and all other kinds of industrial and automatically tools.
The following introduces the functional and structure specification of LNC-520i series controller.
1.1 Normal Specification & Option Specification
Normal Specification
l Normal G/M Code Operating
l Background Editing
l MACRO Program Function
l External/Internal Program Transmitting Function for DNC
l Multiple Language Selection (English, Traditional/Simplify Chinese)
l Picture SimulationDisplay
l Soft Interface Extension
l Hardware Self-Diagnostic Display
l Additional back-up of Installation floppy disk
l PLC Ladder Diagram Display
Option Specification
l CAD/CAM
l Internet Function
LNC Technology Co., Ltd. 1
Page 8
LNC-M520 Series
SPECIFICATION
1.2 Standard LNC-520i
LNC-520i Standard Controller is based on the standard industrial computer which is suitable in normal tool
machines, industrial machines and automatical machines. This machine structure has excellent maintenance,
high performance motion control functions and a lot I/O points support which all can be used on all types of
industries. Moreover, PC open system and modularized design will make system function easier to upgrade
and to maintain.
Standard Cabinet Specification:
1. Transmitting interfact support: Ethernet,DNC
2. Providing 4 axes simultaneously Pulse / Vcmd position loop control
3. Provding spindle interface Pulse / Vcmd
4. Providing one set of encoder key-in for MPG
5. I/O interface supports 256 Input / 256 Output point
2 LNC Technology Co., Ltd.
Page 9
LNC-M520 Series
Software Maintenance
2 Software Maintenance
Each LNC-520i serial controller will be accompanied with an INSTALL DISK which will help user during
program installation and maintenance.
2.1 LNC-M520i Installation Description
CNCMINST full-function installation/maintenance program provides system installation, program upgrade
and system restore functions for LNC-520i series.
2.1.1 Installation Program Guide
Executing g.bat file and the below screen will appear:
Pressing any key and the below menu will occur:
LNC Technology Co., Ltd. 3
Page 10
LNC-M520 Series
Software Maintenance
Following is the introduction about the timing of these parameter(before executing,please refer to HOW2):
1. First fully(Total)installation
This function is used for the first time fully installation and/or harddisk recovery. Generally speaking,
LNC-520i is already installed into every LNC-520i series controller before going in the market. Therefore,
unless the harddisk is “FORMATE”, there is no need to use this function.
Note1:To prepare a BOOTABLE H.D as C:DRIVE, please refer to the following:
a. Preparing a FORMATED HardDisk
b. Setting the BOOT SWQUENCE FOR the IPC BIOS As A: DRIVE first.
c. Putting the O.S UTILIT floppy disk into A: DRIVE (IBM PC DOS V7.0)
d. Press CTRL+ALT+DEL or RESET to reboot the IPC from A: DRIVE
e. Please follow the instruction and execute [1] QUICK MAKE AN BOOTABLE H.D(C)
f. When the above are completed, please reboot the IPC and restore the PC BOOT SEQUENCE
as C ONLY.
Note2:The present DOS is IBM PC DOS 2000
2. Maintenance
User have 3 choices here:
1. PCScan:Check out if there are viruses in the disk.
2. DISK Doctor:Scan the disk and check the disk has been destroyed or not.
3. DEFRAG:Defrag the disk.
4. Quit
Exit Installation windows and return to DOS system.
4 LNC Technology Co., Ltd.
Page 11
LNC-M520 Series
Software Maintenance
2.1.2 System Software Maintenance and Upgrade
For software update, users only need to follow the instruction to replace specific files with the newest files in
the installation disk. Please make a copy of the prior version installation disk. Then, run [Gbat] to choose the
correspondent function.
LNC Technology Co., Ltd. 5
Page 12
LNC-M520 Series
NOT able
Software Maintenance
2.2 SYSTEM DIRECTORIES
After executing LNC-M520i SERIES OS. Utility diskette, user will see below files:
2.2.1 [OS.UTILITY]
Name Files
C:\DOS\
C:\ANTIVIR\
C:\MLC\
2.2.2 [LNC_M520i INSTALL DISK]
Name Files
C:\LNCM520i\EXE
C:\LNCM520i\RESOURCE
C:\LNCM520i\MACHINE
C:\LNCM520i\MACRO
C:\LNCM520i\NCFILES
C:\LNCM520i\CAMPRJ
IBM PC_DOS 2000
Anti-Virus
System LADDER Editing Software
System Files
System program execute constant
resource file.(Please refer to DIR. DOC
under menu.
Standard milling canned cycle MACRO
program (User NC program is
to save in this menu.)
User NC working program
(File name must be restrictedto
O0000~O8999 NC program)
CAM project document and other related
files
(file sub-name is *.DAT)
6 LNC Technology Co., Ltd.
Page 13
Offer a return circuit / the speed return
The standard milling machine uses the
ice of a pair of
3 Hardware Maintenance
3.1 Specification
Hardware Specification is as below:
LNC-520i Specification
Display 8.4 " colored TFT LCD "s
Deposit and withdraw the storing device
dynamically ( DRAM RAM)
Pair of CF card Every 32M bytes or more
Soft disk drive interface and power Standard FDD; 5V/12V
PC host computer board ( CPU BOARD) One grade of PC boards of industry
Main shaft system Offer Pulse to control and export with DA
3.1.4.1 OT Connector Point and DRIVER POWER Connector Power
+24V
2
OTConnecto
OT1
EMG1
1
OT_RELEASE
2
1
SVI_COMSVRON
POWER
Connect
DRIVE
POWER
2
1
OT & DRIV_PWD Connector Wiring
Just like the above figure show, OT and EMG connecting point must be in short circuit condition when enable
servo. So, OT Connector component must be the NC point. Moreover, if using multiple OP component,
please use local connecting. Also, servo enabling signal can be switched by SW of SVI_CO. Furthermore,
this control provides a empty connecting point which is used for DRIVER Power and the capacity of that is
5A.
3.1.4.2 Home Point Checking Connecting Point
+24V
HOME
接頭
1
2
1
3
4
HS1
HS2
HOME
接頭
1
2
2
3
4
HS3
HS4
20 LNC Technology Co., Ltd.
Page 27
LNC-M520 Series
Hardware Maintenance
This above figure is the Zero Point checint interface chart. Please notice that controller will receive signal
when HS1~HS4 has 24V input each. User can adding a connecting point between 24V and HS. Or, using an
Output 24V SENSOR (need to use with IO 24VPower ground) as zero point checking component.
(F4)
I28 SINGLE BLOCK O28 SINGLE BLOCK LIGHT
I29 CYCLE START O29 CYCLE START LIGHT
I30 FEED HOLD O30 FEED HOLD LIGHT
I31 EMERGENCY O31 NC READY
I32 MPG SELECT X O32 ALARM
I33 MPG SELECT Y O33 HOME LIGHT
I34 MPG SELECT Z O34 S +
I35 MPG SELECT 4 O35 S I36 MPG *10 O36 F +
I37 MPG *100 O37 F I38 ALARM 1 O38 OT RELEASE LIGHT
I39 ALARM 2 O39 FRV-RESET
O24
F1 LIGHT ()
O25
F2 LIGHT ()
O26
F3 LIGHT ()
O27
F4 LIGHT ()
22 LNC Technology Co., Ltd.
Page 29
LNC-M520 Series
Hardware Maintenance
3.2 I/O card SIO 1520
Besides to 20 Input/16 Output, I/O module of this system can be extended to 128 Input/128 Output at most.
Connecting chart shows as below:
Slave I/O board provides Jumper selection for two output signal methods. One is Source type and the other
one is Sink type. The output voltage is 24V and every point’s maximum pushing function is 80mA. To
determine input signal, the determination for High (1) is 15 ~ 28V, the determination for Low (0) is 0 ~ 4V and
the input voltage is 10mA. The JPI on the SLAVE mothor board will connect DC24V power from outside.
LNC Technology Co., Ltd. 23
Page 30
LNC-M520 Series
Hardware Maintenance
3.2.1 I/O Card Specification
To reduce IO cable, we can complete I/O transmission by motion control card with I/O card. An I/O card can
be divided to SIO 1520 master board(or S1O 1540 master board)and SIO 1530 slave board.
One SIO card can offer 40 input and 32 output, and SIO 1530 extension cardcan offer 24 input and 32 output;
in the other word, 1 set of I/O master board and slave board can offfer 64 input and 64 output totally. LNC
600 can string up 2 set of SIO master board +SIO slave board by using RIO connecter, so it can offer 128
input and 128 output at most.
l SIO master board 1:SIO1520
SIO1520
24 LNC Technology Co., Ltd.
Page 31
LNC-M520 Series
A C
E F G H
Hardware Maintenance
B
I
D
SIO1520 Figure
A:3PIN 5.08 connecter, 24V supply input connecter to POWER SUPPLY
B:D_SUB15PIN(M), I/O card controlled port, connect to RIO port
C:D_SUB15PIN(F), connect to next IO master board
D:40PIN box header 1, for top 32 24V O output, to relay board OUT port
E:40PIN box header 2, for top 40 24V I input, to relay board IN port
F:40PIN box header, for bottom 32 O output, to SIO 1530
G:26PIN box header, for bottom 24 I input, to SIO 1530
H:The 4 yellow LEDs is the signal of serial I/O communication, when IO master board be connected to the
motion control card ( the motion control card set correctly and given 5V supply from outside), 2 LEDs in
the left side will be turn on first, after the software be executed 2 LEDs in the right side will be turn on if
the commnication is successful. In the othr words, all 4 LEDs be turn on means communication is correct.
If not, please check motion control card, IO card, cable connecting, and supply.
I:Determine the IO master board is first or second IO master board (SLAVE 1 or SLAVE 2).
LNC Technology Co., Ltd. 25
Page 32
LNC-M520 Series
Hardware Maintenance
Example:
Refer to the direction of SIO 1520 figure, deep color means short circuit:
First Second
26 LNC Technology Co., Ltd.
Page 33
3.2.2 SIO 1520 Connector Pin Definition
LNC-M520 Series
Hardware Maintenance
D:40PIN Box Header Connector 1
PIN Definition PIN Definition PIN Definition
1 FG 15 OUT 21 29 OUT 7
2 FG 16 OUT 22 30 OUT 8
3 EGND 17 OUT 19 31 OUT 5
4 EGND 18 OUT 20 32 OUT 6
5 OUT 31 19 OUT 17 33 OUT 3
6 EGND 20 OUT 18 34 OUT 4
7 OUT 29 21 OUT 15 35 OUT 1
8 OUT 30 22 OUT 16 36 OUT 2
9 OUT 27 23 OUT 13 37 +24V
10 OUT 28 24 OUT 14 38 OUT 0
11 OUT 25 25 OUT 11 39 +24V
12 OUT 26 26 OUT 12 40 +24V
13 OUT 23 27 OUT 9
14 OUT 24 28 OUT 10
Note: FG:grounding;EGND:+24V gnd
LNC Technology Co., Ltd. 27
Page 34
LNC-M520 Series
Hardware Maintenance
PIN Definition PIN Definition PIN Definition
1 IN 39 15 IN 25 29 IN 11
E:40PIN Box Header Connector 2
2 IN 38 16 IN 24 30 IN 10
3 IN 37 17 IN 23 31 IN 9
4 IN 36 18 IN 22 32 IN 8
5 IN 35 19 IN 21 33 IN 7
6 IN 34 20 IN 20 34 IN 6
7 IN 33 21 IN 19 35 IN 5
8 IN 32 22 IN 18 36 IN 4
9 IN 31 23 IN 17 37 IN 3
10 IN 30 24 IN 16 38 IN 2
11 IN 29 25 IN 15 39 IN 1
12 IN 28 26 IN 14 40 IN 0
13 IN 27 27 IN 13
14 IN 26 28 IN 12
Note: FG:grounding;EGND:+24V gnd
28 LNC Technology Co., Ltd.
Page 35
LNC-M520 Series
Hardware Maintenance
F:40PIN box header bottom 32 O output to SIO 1530
G:26PIN box header bottom 24 I input, to SIO 1530
LNC Technology Co., Ltd. 29
Page 36
LNC-M520 Series
A C D E
Hardware Maintenance
3.3 I/O Card SIO 1530 Definition
3.3.1 I/O Card Specification
SIO1530 sub card offers 24 input and 32 output, 24V I/O, but SIO1530 sub card must collocate SIO master
board, can’t be connected to motion control card directly.
SIO 1530 Slave Board
B
SIO 1530 Slave Board
A:40PIN box header 1, for bottom 32 O output port of each SLAVE set, to REL1820 output.
B:40PIN box header 2, for bottom 24 I output port of each SLAVE set, to REL1820.
C:26PIN box header, for bottom 24 I input, to SIO master board.
D:40PIN box header, for bottom 43 O output ,to SIO master board.
E:Green light is the signal of outside 24V supply, the I/O won’t work correctly without outside 24V supply.
30 LNC Technology Co., Ltd.
Page 37
Hardware Maintenance
3.3.2 SIO 1530 Port Definition
A:40PIN box header 1 - bottom 32 O output of each SLAVE set, to REL1820 output port
LNC-M520 Series
PIN Definition PIN Definition PIN Definition
1 FG 15 OUT 53 29 OUT 39
2 FG 16 OUT 54 30 OUT 40
3 EGND 17 OUT 51 31 OUT 37
4 EGND 18 OUT 52 32 OUT 38
5 OUT 63 19 OUT 49 33 OUT 35
6 EGND 20 OUT 50 34 OUT 36
7 OUT 61 21 OUT 47 35 OUT 33
8 OUT 62 22 OUT 48 36 OUT 34
9 OUT 59 23 OUT 45 37 +24V
10 OUT 60 24 OUT 46 38 OUT 32
11 OUT 57 25 OUT 43 39 +24V
12 OUT 58 26 OUT 44 40 +24V
13 OUT 55 27 OUT 41
14 OUT 56 28 OUT 42
Note: FG:grounding EGND:+24V GND
LNC Technology Co., Ltd. 31
Page 38
LNC-M520 Series
Hardware Maintenance
B:40PIN box header 2 - bottom 24 I input of each SLAVE set to REL 1820 input port
PIN Definition PIN Definition PIN Definition
1 FG 15 - 29 IN 51
2 FG 16 - 30 IN 50
3 EGND 17 IN 63 31 IN 49
4 EGND 18 IN 62 32 IN 48
5 - 19 IN 61 33 IN 47
6 EGND 20 IN 60 34 IN 46
7 - 21 IN 59 35 IN 45
8 - 22 IN 58 36 IN 44
9 - 23 IN 57 37 IN 43
10 - 24 IN 56 38 IN 42
11 - 25 IN 55 39 IN 41
12 - 26 IN 54 40 IN 40
13 - 27 IN 53
14 - 28 IN 52
Note: FG:grounding
EGND:+24V GND
32 LNC Technology Co., Ltd.
Page 39
LNC-M520 Series
Hardware Maintenance
3.3.3 I/O Card SIO 1540 Definition
3.3.3.1 I/O Card Specification
To save IO cable, we can complete I/O transmission by motion control card with I/O card. An I/O card can be
divided to SIO 1520 master board(or S1O 1540 master board)and SIO 1530 slave board.
One SIO card can offer 40 input and 32 output, and SIO 1530 extension card can offer 24 input and 32
output; in the other word, 1 set of I/O master board and slave board can provide 64 input and 64 output
totally. LNC 600 can string up 2 set of SIO master board +SIO slave board by using RIO connecter, so it can
offer 128 input and 128 output at most.
SIO 1540 Figure
LNC Technology Co., Ltd. 33
Page 40
LNC-M520 Series
C F G H
Hardware Maintenance
A
D
SIO 1540 Figure
E B A
34 LNC Technology Co., Ltd.
Page 41
LNC-M520 Series
Hardware Maintenance
A:3PIN 3.81 connecter, 24V supply input connecter to POWER SUPPLY
B:D_SUB15PIN(M), I/O card controlled port, connect to RIO port
C:16PIN 2.54 box header, connect to next IO master board
D:D_SUB high density 44PIN(M), for top 20 IN/16 OUT, to REL 2840
E:D_SUB high density 44PIN(F), for bottom 20 IN/16 OUT, to REL 2840
F:40PIN box header, for bottom 32 O output, to SIO 1530
G:26PIN box header, for bottom 24 I input, to SIO 1530
H:The 4 yellow LEDs is the signal of serial I/O communication, when IO master board be connected to the
motion control card ( the motion control card set correctly and given 5V supply from outside), 2 LEDs in
the left side will be turn on first, after the software be executed 2 LEDs in the right side will be turn on if
the commnication is successful. In the othr words, all 4 LEDs be turn on means communication is correct.
If not, please check motion control card, IO card, cable connecting, and supply.
I:Determine the IO master board is first or second IO master board (SLAVE 1 or SLAVE 2)
Example:
Refer to the direction of SIO 1540 figure, deep color means short circuit:
1 IN 0 16 IN 1 31 IN 2
2 IN 3 17 IN 4 32 IN 5
3 IN 6 18 IN 7 33 IN 8
4 IN 9 19 IN 10 34 IN 11
5 IN 12 20 IN 13 35 IN 14
6 IN 15 21 IN 16 36 IN 17
7 IN 18 22 IN 19 37 OUT 2
8 OUT 0 23 OUT 1 38 OUT 5
9 OUT 3 24 OUT 4 39 OUT 8
10 OUT 6 25 OUT 7 40 OUT 11
11 OUT 9 26 OUT 10 41 OUT 14
12 OUT 12 27 OUT 13 42 X
13 OUT 15 28 X 43 +24V
14 X 29 X 44 +24V
15 EGND 30 EGND X X
9 OUT 19 24 OUT 20 39 OUT 24
10 OUT 22 25 OUT 23 40 OUT 27
11 OUT 25 26 OUT 26 41 OUT 30
12 OUT 28 27 OUT 29 42 X
13 OUT 31 28 X 43 +24V
14 X 29 X 44 +24V
15 EGND 30 EGND X X
LNC Technology Co., Ltd. 37
Page 44
LNC-M520 Series
A
B
B C
Hardware Maintenance
3.4 REL 1820 Definition
3.4.1 Relay Board Specification
Provide 40 24V input points terminal.
Output side will provide 8 sets A, B, C connection points and 24 sets of A, C connection points. So total 32
sets of output points.
Connection capacity of output point is AC 250V/6A.
REL 1820 Relay Board
D
REL 1820 Relay Board
A
38 LNC Technology Co., Ltd.
Page 45
LNC-M520 Series
Hardware Maintenance
A:40PIN Header Connector 1, connect to the OUT Point output port of the I/O board.
B:40PIN Header Connector 2, connector to the IN point ourput port of the I/O board.
C:5.08mm terminal group 1, output point to external connection point.
D:5.08mm terminal group 2,input point to external connection point.
Note1:Lower left side provides two 0V; right side provides all 24 V (Power is from I/O board.)
Note2:Every relay device must has its own corresponding red LED. After the relay device is active due to
Output DC 24V, users can use LED Light ON to determine whether or not the Relay Board and
Output work normally
Provide 20 24 V Input point terminal port.
Output side provides 2 sets of A, B, C connection points and 14 sets of A, C connection points. Total 16
sets of output points.
The capacity of the output connection point is AC 250V/6A
B
REL 1840 Relay Board
A:44 PIN D-SUB high density connector (female), 20 IN / 16 OUT, connect to I/O board such as SIO 1540
B:3.81mm terminal group 1, output point to external connection point.
C:3.81mm terminal group 2, input point to external connection point.
40 LNC Technology Co., Ltd.
Page 47
LNC-M520 Series
Hardware Maintenance
Note 1:C terminal connector provides 20 0V and 20 24V connectors which are used with input points.
Note 2:Every relay device must has its own corresponding red LED. After the relay device is active due to
Output DC 24V, users can use LED Light ON to determine whether or not the Relay Board and
Output work normally.
1 +24V 16 IN 19 31 OUT 13
2 +24V 17 IN 11 32 OUT 12
3 IN 0 18 IN 14 33 OUT 15
4 IN 1 19 IN 17 34 OUT 14
5 IN 3 20 IN 8 35 OUT 11
6 IN 4 21 IN 5 36 OUT 8
7 IN 6 22 IN 2 37 OUT 5
8 IN 7 23 OUT 1 38 OUT 2
9 IN 9 24 OUT 0 39 EGND
10 IN 10 25 OUT 4 40 EGND
11 IN 12 26 OUT 3
12 IN 13 27 OUT 7
13 IN 15 28 OUT 6
14 IN 16 29 OUT 10
15 IN 18 30 OUT 9
42 LNC Technology Co., Ltd.
Page 49
LNC-M520 Series
Hardware Maintenance
B:44 PIN D-SUB High Density Connector (Female)
Definition of REL 2840 relay board’s PIN D-SUB high density connector (female) is the same as that of REL
1840 relay board.
9 OUT 3 24 OUT 4 39 OUT 8
10 OUT 6 25 OUT 7 40 OUT 11
11 OUT 9 26 OUT 10 41 OUT 14
12 OUT 12 27 OUT 13 42 13 OUT 15 28 - 43 +24V
14 - 29 - 44 +24V
15 EGND 30 EGND - -
LNC Technology Co., Ltd. 43
Page 50
LNC-M520 Series
Hardware Maintenance
3.6 Self-Protect Strcuture
3.6.1 Double CF Cards
Using double CF card to handle the data backup job. The following introduces functions of double CF cards.
3.6.1.1 Auto Back Up
Dobule CF cards will auto backup files in the following two timings:
1. After entering into the system, the CF card will auto backup files under “machine” menu.
2. Auto backup internet setting files when executing internet function(C:\NET\2NET.BAT).
3.6.1.2 Soultion when Not Able to Enter into System
Please using any of the following methods to enter into the system:
1. If not able to enter the system, please key-in res8 after C:\> and exit the system. Then, should be able
to enter the system. Please do NOT take the second CF card out of IPC.
2. If not able to start the system, pleae take the first CF card out of IPC. The second CF card will enable
the system after rebooting.
3. Pleae contact our service person. Pou Yuen will mail a brand new CF card for user to replace the old
one. But, please do NOT take the second CF card out of IPC.
44 LNC Technology Co., Ltd.
Page 51
LNC-M520 Series
Hardware Maintenance
3.6.1.3 To Determine Current CF Card Condition
Please go to <DGNOS> page by pressing <DGNOS> on MDI panel. Then, pressing main function key
【System】 and then 【H.D.】 to see the following screen:
If there is a “X” on Item 11) 2nd CF CARD EXIST , it indicates the second CF card is not installed properly.
LNC Technology Co., Ltd. 45
Page 52
LNC-M520 Series
Hardware Maintenance
3.6.2 RamDisk
Ram Disk is used to reduce the number of CF card reading in order to increase CF card using life time.
However if the battery of Ram Disk is used up, please contact service person.
3.6.2.1 To Determin Current RamDisk Condition
Please go to <DGNOS> page by pressing <DGNOS> on MDI panel. Then, pressing main function key
【Systm】 and then【H.D.】 to see the following screen:
If there is a “X” on Item 12) RAMDISK EXIST, it indicates the second RamDisk is not installed properly.
Pressing <PageDown> to switch to the next page:
46 LNC Technology Co., Ltd.
Page 53
LNC-M520 Series
Hardware Maintenance
If there is a “X” on Item 13) RAMDISK IS OK, it indicate RamDisk is broken. But,this is due to RamDisk is
not installed properly “12) RAMDISK EXIST”.
3.6.3 Installation Checking List of Double CF Card & RamDisk
1. Changing BIOS hardware searching to AUTO.
2. After installation is complete, please check whether or not the following files and menus exit under C:\ of
020 MPGDRN MPG DRY RUN 60
021 SCNSAV QUIT SCREENSAVER 60
023 RT RAPID TRAVEL 60
031 HOMEX HOME DOG: X AXIS 60
032 HOMEY HOME DOG: Y AXIS 60
033 HOMEZ HOME DOG: Z AXIS 60
034 HOME4 4th Axis Home DOG Signal 60
036 ESP EMERGENCY STOP 61
037 ERS EXTERNAL RESET 61
038 FIN M, S, T CODE FINISH 61
040 SBK SINGLE BLOCK 61
041 BDT OPTIONAL BLOCK SKIP 61
042 DRN DRY RUN 61
109 UI9 MACRO SYSTEM VARIABLE $209 65
110 UI10 MACRO SYSTEM VARIABLE $210 65
111 UI11 MACRO SYSTEM VARIABLE $211 65
112 UI12 MACRO SYSTEM VARIABLE $212 65
113 UI13 MACRO SYSTEM VARIABLE $213 65
114 UI14 MACRO SYSTEM VARIABLE $214 65
115 UI15 MACRO SYSTEM VARIABLE $215 65
119 ZP2ZDC
AXIS
65
120 PMCGO COMMAND SIGNAL OF PMC AXIS 65
124 RTFIN Disable Sigal in Rigid Tapping 66
125 RTST Enable Signal in Rigid Tapping 66
126 SWEN Enable Signal of Spindle Motor Rotates in Gear-Shfiting Speed 66
127 SWFIN Spindle Gear-Shifting Complete Signal 66
134 PRTCLR CLEAR PART COUNT NUMBER 66
140 2NDSLX
141 2NDSLX
THE 2ND SOFT-LIMIT: +X
THE 2ND SOFT-LIMIT: -X
67
67
142 2NDSLY
143 2NDSLY
144 2NDSLZ
145 2NDSLZ
THE 2ND SOFT-LIMIT: +Y
THE 2ND SOFT-LIMIT: -Y
THE 2ND SOFT-LIMIT: +Z
THE 2ND SOFT-LIMIT: -Z
146 2NDSL4 2nd +4th Axis Software Limit Choice 67
LNC Technology Co., Ltd. 51
67
67
67
67
Page 58
LNC-M520 Series
PLC Maintenance -- C,S BITS and Register
BIT # SYMBOL
147 2NDSL4 2nd -4th Axis Software Limit Choice 67
201 AERSTX Absolute encoder Reset Ready Signal:X Axis 68
202 AERSTY Absolute encoder Reset Ready Signal:Y Axis 68
203 AERSTZ Absolute encoder Reset Ready Signal:Z Axis 68
204 AERST4 Absolute encoder Reset Ready Signal:4th Axis 68
207 AERDYX Absolute Encoder Data Ready Signal:X Axis 68
208 AERDYY Absolute Encoder Data Ready Signal:Y Axis 68
209 AERDYZ Absolute Encoder Data Ready Signal:Z Axis 68
210 AERDY4 Absolute Encoder Data Ready Signal:4th Axis 68
213 AEB0X Absolute Encoder Data Bit 0Transmitting Signal : X Axis 68
214 AEB0Y Absolute Encoder Data Bit 0Transmitting Signal : Y Axis 68
215 AEB0Z Absolute Encoder Data Bit 0Transmitting Signal : Z Axis 68
216 AEB04 Absolute Encoder Data Bit 0Transmitting Signal : 4th Axis 68
DESCRIPTION PAGE
219 AEB1X Absolute Encoder Bit 1 Transmit: X Axis 68
220 AEB1Y Absolute Encoder Bit 1 Transmit: Y Axis 68
221 AEB1Z Absolute Encoder Bit 1 Transmit: Z Axis 68
222 AEB14 Absolute Encoder Bit 1 Transmit: 4th Axis 68
52 LNC Technology Co., Ltd.
Page 59
4.2 S Bits Definition
LNC-M520 Series
PLC Maintenance -- C,S BITS and Register
S BIT CNCàPLC
BIT # SYMBOL
000 STL CYCLE START 69
001 SPL FEED HOLD 69
002 EDITL MODE: EDIT 69
003 MEML MODE: MEM 69
004 MDIL MODE: MDI 69
005 JOGL MODE: JOG 69
006 INCJOG MODE: INC JOG 69
007 MPGL MODE: MPG 69
008 HOMEL MODE: HOME 69
010 MREADY MACHINE READY 69
011 MDIPRS MDI KEYS 69
016 ZP1X STATUS OF X AXIS AT THE 1ST ZERO POINT 69
017 ZP1Y STATUS OF Y AXIS AT THE 1ST ZERO POINT 69
018 ZP1Z STATUS OF Z AXIS AT THE 1ST ZERO POINT 69
019 ZP14 4th 1st Axis Point Return End 69
020 ZP2X STATUS OF X AXIS AT THE 2ND ZERO POINT 69
DESCRIPTION PAGE
021 ZP2Y STATUS OF Y AXIS AT THE 2ND ZERO POINT 69
022 ZP2Z STATUS OF Z AXIS AT THE 2ND ZERO POINT 69
023 ZP24 4th 2nd Axis Point Return End 69
028 WRN SYSTEM ALARM 69
029 MF M CODE STROBE 70
030 DEN INTERPOLATION FINISH 70
031 AL SYSTEM ALARM 70
032 RST SYSTEM RESET 70
033 NCRDY SYSTEM READY 70
035 X1000 STATUS OF MPG RATE: x1000 70
036 X1 STATUS OF MPG RATE: x1 70
037 X10 STATUS OF MPG RATE: x10 70
038 X100 STATUS OF MPG RATE: x100 70
039 PROGST STATUS OF PROGRAM RESTART 70
040 SBKL STATUS OF SINGLE BLOCK 70
LNC Technology Co., Ltd. 53
Page 60
LNC-M520 Series
PLC Maintenance -- C,S BITS and Register
BIT # SYMBOL
041 BDTL STATUS OF OPTIONAL BLOCK SKIP 70
042 DRNL STATUS OF DRY RUN 71
043 MLKL STATUS OF MACHINE LOCK 71
044 OPSL STATUS OF OPTIONAL STOP 71
045 RTL STATUS OF RAPID TRAVERSE 71
046 ZNGL STATUS OF Z-AXIS NEGLECT 71
047 AFLL STATUS OF AUXILIARY FUNCTION LOCK 71
054 S1STB S CODE STROBE 71
061 SK2 SOFT PANEL KEY: Z-AXIS NEGLECT 71
062 SK3 SOFT KEY: MPG DRY RUN 72
063 SK4 SOFT KEY: AUXILIARY FUNCTION LOCK OF M, S, T CODE 72
068 MPGDRN MPG DRY RUN 72
069 TSTB T CODE STROBE 72
0.001
RAPID TRAVERSE OVERRIDE
0, 1: F0, 2: 25%, 3: 50% ~ 4: 100%: OTHERS: SET VALUE × 0.001
DESCRIPTION PAGE
79
80
80
81
82
82
024 PMCXMM MOTION COMMAND OF PMC AXIS: X AXIS, mm part 83
025 PMCXUM MOTION COMMAND OF PMC AXIS: X AXIS, μm part 83
026 PMCYMM MOTION COMMAND OF PMC AXIS: Y AXIS, mm part 83
027 PMCYUM MOTION COMMAND OF PMC AXIS: Y AXIS, μm part 83
028 PMCZMM MOTION COMMAND OF PMC AXIS: Z AXIS, mm part 83
029 PMCZUM MOTION COMMAND OF PMC AXIS: Z AXIS, μm part 83
030 PMC4MM PMC Function of 4th-Axis Command Amount, Unit=mm 83
031 PMC4UM PMC Function of 4th-Axis Command Amount, Unit=μm 83
040 OPMES1 PLC ALARM 83
041 OPMES2 PLC ALARM 83
042 OPMES3 PLC ALARM 83
043 OPMES4 PLC ALARM 83
044 OPMES5 PLC ALARM 83
045 OPMES6 PLC ALARM 83
060 PLCFN PLC WINDOW FUNCTION 84
LNC Technology Co., Ltd. 57
Page 64
LNC-M520 Series
PLC Maintenance -- C,S BITS and Register
BIT # SYMBOL
061 PLCSF1 PLC WINDOW FUNCTION NO.1 84
062 PLCSF2 PLC WINDOW FUNCTION NO.2 84
063 PLCD1 PLC WINDOW READ/WRITE VALUE 1 84
064 PLCD2 PLC WINDOW READ/WRITE VALUE 2 84
065 PLCD3 PLC WINDOW READ/WRITE VALUE 3 84
066 PLCD4 PLC WINDOW READ/WRITE VALUE 4 84
067 PLCD5 PLC WINDOW READ/WRITE VALUE 5 84
068 PLCD6 PLC WINDOW READ/WRITE VALUE 6 84
069 PLCD7 PLC WINDOW READ/WRITE VALUE 7 84
070 PLCD8 PLC WINDOW READ/WRITE VALUE 8 84
071 PLCD9 PLC WINDOW READ/WRITE VALUE 9 84
072 PLCD10 PLC WINDOW READ/WRITE VALUE 10 84
073 PLCD11 PLC WINDOW READ/WRITE VALUE 11 84
DESCRIPTION PAGE
074 PLCD12 PLC WINDOW READ/WRITE VALUE 12 84
58 LNC Technology Co., Ltd.
Page 65
LNC-M520 Series
to enter CYCLE
the ladder to turn on the
FF to
to notify the ladder to
In the middle of executing some part program in MEM or MDI mode, if switching to MANUAL
modes such as JOG or MPG, etc. and moving the machine away manually from its last position
and resume the
1. Manual Return: Resume the original program by moving the machine to its last position in
2. Resume the original program from the current position; however, there will be an offset
PLC Maintenance -- C,S BITS and Register
4.4 C Bits Description
C Bit 000 CYCLE START
In MEM or MDI mode, to set C000 from OFF to ON actuates the system
START status. At the same time, the system sets S000 to ON to notify
cycle start light. If the system is in FEED HOLD or BLOCK STOP status, the system will set
S000 to OFF to notify the ladder to turn off the feed hold light first. However, C000 is not
accepted by the system in the following conditions:
a. When the system is not in MEM or MDI mode.
b. When the system is already in “NC NOT READY or “CYCLE START status.
c. When the system is having an alarm.
C Bit 001 FEED HOLD
In MEM or MDI mode and also in CYCLE START status, to set C001 from OFF to ON actuates
the system to enter FEED HOLD status. At the same time, the system sets S000 to O
notify the ladder to turn off the cycle start light, and also sets S001 to ON
turn on feed hold light. However, please note that this signal is invalid for PMC axis function.
C Bit 003 PROGRAM PROTECTION
When C003 is ON, part programs can not be edited.
C Bit 004 MANUAL RETURN
in MEM or MDI mode, there are two options to return to MEM or MDI mode
original program:
MEM or MDI mode.
amount for the following positions.
When C004 is ON, Manual Return function is activated, and vice versa.
LNC Technology Co., Ltd. 59
Page 66
LNC-M520 Series
In different
e same JOG speed as set for the
at the same RAPID speed as set for
the
or MDI mode, when C020 is ON, the feed rate is controlled by MPG. The faster MPG is
APID mode. In HOME
, meaning, when the input signal
PLC Maintenance -- C,S BITS and Register
C Bit 006
C Bit 007
C Bit 008
C Bit 009
C Bit 010
C Bit 011
C Bit 012 +4 Axis Direction
C Bit 013 -4 Axis Direction
C006~C011 are used to select the corresponding motion direction for each axis.
C Bit 016 SELECT MPG AXIS: X AXIS
C Bit 017 SELECT MPG AXIS: Y AXIS
C Bit 018 SELECT MPG AXIS: Z AXIS
C Bit 019 Handle 4th Axis
C016~C018 are used in MPG mode to select a servo axis. For example, when C016 is ON,
C Bit 020 MPG DRY RUN
In MEM
C Bit 021 QUIT SCREENSAVER
C021 is used by PLC to notify the system to stop screensaver and recount activation time.
C Bit 023 RAPID TRAVEL
In JOG mode, if C023 is ON, feed rate turns into rapid rate as it is in R
C Bit 031 HOME DOG: X AXIS
C Bit 032 HOME DOG: Y AXIS
C Bit 033 HOME DOG: Z AXIS
C Bit 034 4th Axis Home DOG Signal
C031~C033 are used to notify NC about the home dog signal of each axis.
modes, there are the corresponding actions as listed below:
a. JOG mode:
When set to ON, the system sends a motion command at th
corresponding axis until this signal is OFF.
b. RAPID mode:
When set to ON, the system sends a motion command
the corresponding axis until this signal is OFF.
c. HOME mode:
When set from OFF to ON, the corresponding axis will execute Home return.
selected MPG axis is X, so MPG controls the motion of X axis.
turned, the faster the motion is. When MPG stops, motion stops.
mode, please set C023 to ON so HOME return can be executed at rapid rate.
NOTE: C031~C033 are effective only when Pr.0175 is set to 1
of HOME DOG is a remote input signal.
60 LNC Technology Co., Ltd.
Page 67
LNC-M520 Series
, and the system status becomes NOT
is
After
of the corresponding M code, the ladder notifies the system by sending
block, and the M code must be
this signal must be applied at the
s
and enter BLOCK STOP status, and the cycle start status S000
In CYCLE START status and also in MEM mode, if C041 is ON, the system will ignore and will
In MEM or MDI mode, when C042 is ON, the original feed rate set by the program will be
PLC Maintenance -- C,S BITS and Register
C Bit 036 EMERGENCY STOP
When C036 is ON, the system is reset, all motions stop
READY.
C Bit 037 EXTERNAL RESET
C037 is the external reset signal and functions the same as pressing RESET bottom.
C Bit 038 M, S, T CODE FINISH
In MEM or MDI mode, when the program executes some M code, the value of the M code
filled into R001, and the signal “M Code Read” (S029) is sent out at the same time.
finishing the execution
back the signal “M, S, T Finish” (C038). The timing chart is as below:
Execute M code
R001
S029
C038
a. When executing M77, 77 is filled into R001.
b. If some M code and some motion command are in the same
executed after the motion command is processed, then
same time with S030 in the ladder.
c. This timing chart is not applicable to M00, M01, M02, M30, M98, & M99.
C Bit 040 SINGLE BLOCK
In CYCLE START status and also in MEM mode, if C040 is ON and some single block i
executed, the system will stop
will be OFF.
C Bit 041 OPTIONAL BLOCK SKIP
not execute the block that has “/” in the program.
C Bit 042 DRY RUN
ignored. And the feed rate will be reset as below:
G00: When C023 is ON = RAPID feed rate (RAPID feed).
When C023 is OFF = JOG feed rate (JOG feed).
G01: JOG feed rate (JOG feed).
LNC Technology Co., Ltd. 61
Page 68
LNC-M520 Series
will be sent to the servo
When C044 is ON and M01 is executed, the system will stop and S000 will be OFF. The
is executed, the
in a block will be ignored, meaning, M, S, T codes will not be
e ignored and a block “G01 X10 Z10 C10” is
C050 ~ C057 are over travel signals for each axis. When some axis is over traveling, PLC will
ly allowed to motion
PLC Maintenance -- C,S BITS and Register
C Bit 043 MACHINE LOCK
In MANUAL or AUTO mode, when C043 is ON, no motion command
system, but the program’s coordinates will still be updated.
C Bit 044 M01 OPTIONAL STOP
system will resume the previous work when cycle start signal (C000) is set to ON,
C Bit 045 IGNORE SERVO AXIS: Z AXIS
When C045 is ON, the command for the corresponding axis will not be executed.
For example: When Z axis is set to be ignored and a block “G01 X10 Z10 C10”
command of “Z10” will be neglected.
C Bit 046 AUXILIARY FUNCTION LOCK
When C046 is ON, M, S, T codes
sent to PLC.
C Bit 049 SERVO AXIS IGNORE SERVO AXIS: THE 4TH AXIS
When C049 is ON, the command for the corresponding axis will not be executed.
For example: When the 4th axis is set to b
executed, the command of “C10” will be neglected.
C Bit 050
C Bit 051
C Bit 052
C Bit 053
C Bit 054
C Bit 055
C Bit 056 +4th Axis OT
C Bit 057 -4th Axis OT
AXIS OVER TRAVEL: +X
AXIS OVER TRAVEL: -X
AXIS OVER TRAVEL: +Y
AXIS OVER TRAVEL: -Y
AXIS OVER TRAVEL: +Z
AXIS OVER TRAVEL: -Z
notify NC system, the system alarm will be triggered, and the axis is on
reversely. In the chart below, please find the definition for each C Bit:
C BIT Definition
50 PLC travel limit of X axis’s positive direction
51 PLC travel limit of X axis’s negative direction
52 PLC travel limit of Y axis’s positive direction
53 PLC travel limit of Y axis’s negative direction
54 PLC travel limit of Z axis’s positive direction
55 PLC travel limit of Z axis’s negative direction
56 PLC travel limit of the 4th axis’s positive direction
57 PLC travel limit of the 4th axis’s negative direction
62 LNC Technology Co., Ltd.
Page 69
LNC-M520 Series
After some axis triggers the system alarm as mentioned above, the alarm will be discharged
direction and PLC turns the corresponding C Bit
appears, to motion the axis towards the opposite direction until it leaves the over travel
s
can use “Manual Handle Interrupt” function to increase/decrease tool
first set the proper
tool
ed by “Handle Interrupt,”
Enable
Travel range for X
axis Enable
PLC Maintenance -- C,S BITS and Register
+X
C051
The system’s PLC over travel warning messages for each axis is listed as the chart below:
Warning ID
Warning Message
OP 6001 PLC over travel of X axis’s positive direction
OP 6002 PLC over travel of X axis’s negative direction
OP 6003 PLC over travel of Y axis’s positive direction
OP 6004 PLC over travel of Y axis’s negative direction
OP 6005 PLC over travel of Z axis’s positive direction
OP 6006 PLC over travel of Z axis’s negative direction
OP 6007 PLC over travel of the 4th axis’s positive direction
OP 6008 PLC over travel of Z axis’s negative direction
Discharge a(n) Warning/Alarm:
C050
when the axis motions towards the opposite
from ON to OFF.
In JOG/RAPID or MPG mode, if some warning message of PLC Travel Limit(OP 6001 ~ OP
6008)
range will then discharge the warning message.
In MEM, MDI, or Home mode, if some warning message of PLC Travel Limit(OP 6001 ~ OP
6008) appears, press RESET to withdraw the message.
ALARM ID
Alarm Message
OP 1020 OVER PLC TRAVEL LIMIT
C Bit 059 AXIS INTERLOCK: X AXIS
C Bit 060 AXIS INTERLOCK: Y AXIS
C Bit 061 AXIS INTERLOCK: Z AXIS
C Bit 062 4th Axis Interlock
When the signal of the corresponding axis is ON, the axis will not motion, but the axis’
coordinates will still be updated.
C Bit 066 HANDLE INTERRUPT: X AXIS
C Bit 067 HANDLE INTERRUPT: Y AXIS
C Bit 068 HANDLE INTERRUPT: Z AXIS
C Bit 069 4th Axis: Select Axis Direction Signal of Handle INT
In MEM mode, users
offset amount and to modify the path. To activate this function, users must
C Bit for the chosen axis and also set the MPG ratio (R014), then use MPG to modify the
position. However, because the absolute coordinates will not be chang
there will be an offset amount between the original and the manually-adjusted tool paths; this
offset amount can be deleted by executing zero point return manually.
LNC Technology Co., Ltd. 63
Page 70
LNC-M520 Series
s
Note 1: The above C bits are enabled in normal spindle speed control mode, which is spindle
s CW and CCW connection point
control, the above signals will only notify NC that the current spindle is in CW or CCW
n JOG mode.
Please notice that if Pr.0019, Pr.1055, Pr.1056 are not set for orientation position, spindle will
Spindle Command Type Changes to Pulse Type Under Spindle Orientation and Ridig
be
PLC Maintenance -- C,S BITS and Register
C Bit 075 SERVO ALARM: X AXIS
C Bit 076 SERVO ALARM: Y AXIS
C Bit 077 SERVO ALARM: Z AXIS
C Bit 078 4th Axis Servo Alarm
C075~C077 are used to notify the system about any abnormality of the corresponding axis’
motor driver.
C Bit 082 1st Spindle CW
C Bit 083 1st Spindle CCW
When C bit of clockwise is ON, spindle rotates in clockwise direction.
When C bit of counter-clockwise is ON, spindle rotates in counter-clockwise direction.
If the above two are both OFF, spindle stops rotating.
clockwise, counter-clockwise and stop.
Note 2: If the spindle CW and CCW are controlled by inventor’
condition.
C Bit 085 Spindle Orientation
This signal will be enabled when spindle orientation is decided by encoder and i
be re-orientated again.
C Bit 086
Tapping Modes
Signal of Spindle is in orientation mode and also finishes orientating.
C Bit 089 ENABLE MIRROR: X AXIS
C Bit 090 ENABLE MIRROR: Y AXIS
C Bit 091 ENABLE MIRROR: Z AXIS
C Bit 092 4th Axis Servo Alarm
In MEM mode, when C089 ~ C091 are on, the motion direction of the corresponding axis will
reversed.
64 LNC Technology Co., Ltd.
Page 71
LNC-M520 Series
Setting the gear ratio between spindle motor and spindle. Every spindle provides 4sets of
set of gear ratio. If user want to
modify other sets of gear ratio, user can select the suitable gear ratio from each spindle’s
of Macro, which serve as the input
When
zero point is to be executed, the system will send
When all motion data of PMC axis is ready, set this signal to ON to enable the motion of PMC
PLC Maintenance -- C,S BITS and Register
C Bit 097 1st Spindle Gear #1
C Bit 098 1st Spindle Gear #2
C Bit 099 1st Spindle Gear #3
parameter # of gear ratio. The system default is to use the 4
corresponding gear ratio C bit.
Spindle Gear
C bit
1 C97=ON Pr. 0049 Pr. 0050
1st
Spindle
2 C98=ON Pr. 0051 Pr. 0052
3 C99=ON Pr. 0178 Pr. 0179
4 C97,98,99=OFF Pr. 0181 Pr. 0182
1 C116=ON Pr. 0664 Pr. 0665
2nd
Spindle
2 C117=ON Pr. 0666 Pr. 0667
3 C118=ON Pr. 0668 Pr. 0669
4 C116,117,118=OFF Pr. 0670 Pr. 0671
1 C121=ON Pr. 0672 Pr. 0673
3rd
Spindle
2 C122=ON Pr. 0674 Pr. 0675
3 C123=ON Pr. 0676 Pr. 0677
4 C121,122,123=OFF Pr. 0678 Pr. 0679
C Bit 100 MACRO SYSTEM VARIABLE $200
C Bit 101 MACRO SYSTEM VARIABLE $201
C Bit 102 MACRO SYSTEM VARIABLE $202
C Bit 103 MACRO SYSTEM VARIABLE $203
C Bit 104 MACRO SYSTEM VARIABLE $204
C Bit 105 MACRO SYSTEM VARIABLE $205
C Bit 106 MACRO SYSTEM VARIABLE $206
C Bit 107 MACRO SYSTEM VARIABLE $207
C Bit 108 MACRO SYSTEM VARIABLE $208
C Bit 109 MACRO SYSTEM VARIABLE $209
C Bit 110 MACRO SYSTEM VARIABLE $210
C Bit 111 MACRO SYSTEM VARIABLE $211
C Bit 112 MACRO SYSTEM VARIABLE $212
C Bit 113 MACRO SYSTEM VARIABLE $213
C Bit 114 MACRO SYSTEM VARIABLE $214
C Bit 115 MACRO SYSTEM VARIABLE $215
C100 ~ C115 are equal to the system variables $120~$135
signals from the ladder. For example: If C100 is set to ON in the ladder, $120 will be 1.
C Bit 119 MOTION PROHIBITION FOR AREA BELOW THE 2ND ZERO POINT OF Z AXIS
When C119 is ON, the motion of Z axis in the area below the 2nd zero point is prohibited.
some program path in the area below the 2
nd
a warning signal. The function of the signal is to prevent tool collision.
C Bit 120 COMMAND SIGNAL OF PMC AXIS
axis.
th
# of Motor
Tooth
# of Spindle
Tooth
LNC Technology Co., Ltd. 65
Page 72
LNC-M520 Series
). When this signal is on, Z axis moving amount will follow the spindle
tapping is done
When M02, M30 or the M code assigned by Pr.0089 is executed, NC will add 1 to the part
count number. If the part count number is larger than or equal to the preset maximum part
PLC Maintenance -- C,S BITS and Register
C Bit 124 Disable Sigal in Rigid Tapping
Milling disables rigid tapping.
C Bit 125 Enable Signal in Rigid Tapping
Rigid tapping (M29
encoder’s pulse amount. So user must use M28 to delete the signal when rigid
in order to prevent any wrong motion from the system.
C Bit 126 Enable Signal of Spindle Motor Rotates in Gear-Shfiting Speed
Milling spindle changes rotational speed.
C Bit 127 Spindle Gear-Shifting Complete Signal
Milling gear-shifting completed signal.
C Bit 134 CLEAR PART COUNT NUMBER
count number, NC will send S134 to notify PLC to take the corresponding action; when PLC
sends C134 back to NC, NC will clear the part count number and set it to 0.
66 LNC Technology Co., Ltd.
Page 73
Set by Pr.1006 ~ Pr.1013. The values set by these parameters will be enabled
only after Home return is executed. The default value of the positive axial
Set by Pr.1034 ~ Pr.1041. The values set by these parameters will be enabled
only after Home return is executed. The default value of the positive axial
limit for each axis,
C Bit 140
C Bit 141
C Bit 142
C Bit 143
C Bit 144
C Bit 145
THE 2ND SOFT-LIMIT: +X
THE 2ND SOFT-LIMIT: -X
THE 2ND SOFT-LIMIT: +Y
THE 2ND SOFT-LIMIT: -Y
THE 2ND SOFT-LIMIT: +Z
THE 2ND SOFT-LIMIT: -Z
C Bit 146 2nd +4th Axis Software Limit Choice
C Bit 147 2nd -4th Axis Software Limit Choice
The 1st soft-limit:
soft-limit is 99999.999mm, and the negative default value is -99999.999mm.
The 2nd soft-limit:
soft-limit is 99999.999mm, and the negative default value is -99999.999mm.
A corresponding C Bit is used to switch between the 1st and 2nd softmeaning, there will be only one set of soft-limits to be enabled each time.
Assumed absolute encoder data reading is sent by serial transmitting. Also, assumed 2 bits of
, it indicates that the signal of
Assumed absolute encoder data reading is sent by serial transmitting. Also, assumed 2 bits of
Encoder will be transmitted every time. So, when this bit is ON, it indicates that the signal of
limit:
PLC Maintenance -- C,S BITS and Register
The travel range of X axis
(Para. # 0071 is 1、C129 is ON)
The travel range of X axis
(Para. # 0071 is 1、C129 is OFF)
G22 soft-limit:
-X
G22 soft-
+X
C Bit 201 Absolute encoder Reset Ready Signal:X Axis
C Bit 202 Absolute encoder Reset Ready Signal:Y Axis
C Bit 203 Absolute encoder Reset Ready Signal:Z Axis
C Bit 204 Absolute encoder Reset Ready Signal:4th Axis
When LADDER finishes absolute encoder zero return, this signal needs to be sent out to no
NC that.
C Bit 207 Absolute Encoder Data Ready Signal:X Axis
C Bit 208 Absolute Encoder Data Ready Signal:Y Axis
C Bit 209 Absolute Encoder Data Ready Signal:Z Axis
C Bit 210 Absolute Encoder Data Ready Signal:4th Axis
LADDER will notify NC when driver enters into ABS transmitting
ready.
C Bit 213 Absolute Encoder Data Bit 0Transmitting Signal : X Axis
C Bit 214 Absolute Encoder Data Bit 0Transmitting Signal : Y Axis
C Bit 215 Absolute Encoder Data Bit 0Transmitting Signal : Z Axis
C Bit 216 Absolute Encoder Data Bit 0Transmitting Signal : 4th Axis
Encoder will be transmitted every time. So, when this bit is ON
transmitting 2 bits data from driver to NC is 1.
C Bit 219 Absolute Encoder Bit 1 Transmit: X Axis
C Bit 220 Absolute Encoder Bit 1 Transmit: Y Axis
C Bit 221 Absolute Encoder Bit 1 Transmit: Z Axis
C Bit 222 Absolute Encoder Bit 1 Transmit: 4th Axis
transmitting 2 bits data from driver to NC is 1.
C Bit 064 PLC WINDOW READ/WRITE
C Bit 065 PLC WINDOW COMMAND
Please refer to the description of 4.7 PLC Window Mechanism.
68 LNC Technology Co., Ltd.
Page 75
LNC-M520 Series
START status. After finishing automatic
e
) HOME
in the system. As soon as the alarm is
will be cancelled automatically, and this signal will turn to
PLC Maintenance -- C,S BITS and Register
4.5 S Bits Description
S Bit 000 CYCLE START
When this signal turns ON, the system is in CYCLE
execution or the machine is in FEED HOLD status, this signal turns to OFF.
S Bit 001 FEED HOLD
When S001 is ON, the system enters Feed Hold status, and the system is in Feed Hold status.
S Bit 002 MODE: EDIT
S Bit 003 MODE: MEM
S Bit 004 MODE: MDI
S Bit 005 MODE: JOG
S Bit 006 MODE: INC JOG
S Bit 007 MODE: MPG
S Bit 008 MODE: HOME
When S002~S008 are ON, the system enters the corresponding operation mode.
S Bit 010 MACHINE READY
When S10 is ON, the system is in MACHINE READY status.
S Bit 011 MDI KEYS
1.The system will send out this signal when some key in MDI is pressed.
2.This signal notifies PLC to turn on LCD and recount LCD power-off time.
S Bit 016 STATUS OF X AXIS AT THE 1ST ZERO POINT
S Bit 017 STATUS OF Y AXIS AT THE 1ST ZERO POINT
S Bit 018 STATUS OF Z AXIS AT THE 1ST ZERO POINT
S Bit 019 4th 1st Axis Point Return End
When these signals are ON, the corresponding axis has finished HOME return and stops at th
zero point.
S Bit 020 STATUS OF X AXIS AT THE 2ND ZERO POINT
S Bit 021 STATUS OF Y AXIS AT THE 2ND ZERO POINT
S Bit 022 STATUS OF Z AXIS AT THE 2ND ZERO POINT
S Bit 023 4th 2nd Axis Point Return End
When these signals are ON, the corresponding axis has finished the 2nd (or 3rd, 4
return and stops at the 2nd (or 3rd, 4th) zero point.
S Bit 028 SYSTEM ALARM
The signal notifies PLC about any alarm occurring
cleared, the system’s alarm message
OFF.
th
LNC Technology Co., Ltd. 69
Page 76
LNC-M520 Series
some M code, the signal is ON and notifies the ladder to process M code
In MEM or MDI mode, the signal is ON when Interpolation is finished. When some M code and
some Motion G code are in the same block, the signal is used to control whether to execute the
nd
START, S039 is enabled (S39=ON). When
PLC Maintenance -- C,S BITS and Register
S Bit 029 M CODE STROBE
When NC executes
until PLC responds with FIN signal. Please refer to the description of C038 (M code Finish
signal).
S Bit 030 INTERPOLATION FINISH
M code after the G code or not.
S Bit 031 SYSTEM ALARM
When there is an alarm of the system, S031 is ON.
S Bit 032 SYSTEM RESET
When the system receives a RESET command, this signal is ON in one PLC’s cycle time a
notifies the ladder to reset the system.
S Bit 033 SYSTEM READY
After the controller is turned ON and all programs are executed normally, S033 is ON.
S Bit 035 STATUS OF MPG RATE: x1000
S Bit 036 STATUS OF MPG RATE: x1
S Bit 037 STATUS OF MPG RATE: x10
S Bit 038 STATUS OF MPG RATE: x100
S035 ~ S038 are used to show the current MPG rate in use:
MPG Rate S035 S036 S037 S038
x1 0 1 0 0
x10 0 0 1 0
x100 0 0 0 1
S Bit 039 STATUS OF PROGRAM RESTART
When the system is in the status of PROGRAM RE
the system finishes processing PROGRAM RESTART, S039 turns to OFF.
S Bit 040 STATUS OF SINGLE BLOCK
The signal refers to the status of Single Block (SBK).
S Bit 041 STATUS OF OPTIONAL BLOCK SKIP
S041 refers to the status of Optional Block Skip (BDT).
x1000 1 0 0 0
70 LNC Technology Co., Ltd.
Page 77
PLC Maintenance -- C,S BITS and Register
some S code, S054 is ON to notify the ladder to process the S code until
Axis Neglect key on the soft panel. The
S Bit 042 STATUS OF DRY RUN
S042 refers to the status of Dry Run (DRN).
S Bit 043 STATUS OF MACHINE LOCK
S043 refers to the status Machine Lock (MLK).
S Bit 044 STATUS OF OPTIONAL STOP
S044 refers to the status of Optional Stop (OPS).
S Bit 045 STATUS OF RAPID TRAVERSE
S045 refers to the status of Rapid Traverse (RT).
S Bit 046 STATUS OF Z-AXIS NEGLECT
S046 refers to the status of Z-Axis Neglect. (ZNG).
S Bit 047 STATUS OF AUXILIARY FUNCTION LOCK
S047 refers to the status of Auxiliary Function Lock (AFL).
S Bit 054 S CODE STROBE
When NC executes
PLC responds with the signal FIN.
S Bit 061 SOFT PANEL KEY: Z-AXIS NEGLECT
S061 notifies the ladder about the ON/OFF status of Z-
timing chart is as below:
LNC-M520 Series
S061
C045
S046
LNC Technology Co., Ltd. 71
Page 78
LNC-M520 Series
RUN key on the soft panel. The
LADDER about the ON/OFF status of AUXILIARY FUNCTION LOCK key on the
code until
PLC Maintenance -- C,S BITS and Register
S Bit 062 SOFT KEY: MPG DRY RUN
S062 notifies LADDER about the ON/OFF status of MPG DRY
timing chart is as below:
S062
C020
S068
S Bit 063 SOFT KEY: AUXILIARY FUNCTION LOCK OF M, S, T CODE
S063 notifies
soft panel. The timing chart is as below:
S063
C046
S047
S Bit 068 MPG DRY RUN
S068 indicates the corresponding status of MPG DRY RUN (MPGDRN).
S Bit 069 T CODE STROBE
When T code is executed in the system, S069 is ON to notify LADDER to process T
PLC responds with FIN signal.
72 LNC Technology Co., Ltd.
Page 79
LADDER about the ON/OFF status of MACHINE LOCK key on the soft panel.
LADDER about the ON/OFF status of DRY RUN key on the soft panel. The timing
IP key on the soft
S Bit 071 SOFT KEY: MACHINE LOCK
S071 notifies
The timing chart is as below:
S071
C043
LNC-M520 Series
PLC Maintenance -- C,S BITS and Register
S043
S Bit 072 SOFT KEY: DRY RUN
S072 notifies
chart is as below:
S072
C042
S042
S Bit 073 SOFT KEY: OPTIONAL BLOCK SKIP
S073 notifies LADDER about the ON/OFF status of OPTIONAL BLOCK SK
panel. The timing chart is as below:
S073
C041
S041
LNC Technology Co., Ltd. 73
Page 80
LNC-M520 Series
LADDER about the ON/OFF status of OPTIONAL STOP key on the soft panel.
S086 is ON. If PLC cancels the spindle orientation
set the
When the system is in canned cycle status, S091 is OFF, and the valid G code of 09 group
G code of 09
When the rotation speed of each spindle is lower than the value set by the parameters below,
PLC Maintenance -- C,S BITS and Register
S Bit 074 SOFT KEY: OPTIONAL STOP
S074 notifies
The timing chart is as below:
S074
C044
S044
S Bit 080 M00 STROBE
S Bit 081 M01 STROBE
S Bit 082 M02 STROBE
S Bit 083 M30 STROBE
M00: S080~S083 will be ON after M00 is interpreted. (Remain one cycle time of PLC)
M01: S080~S083 will be ON after M01 is interpreted. (Remain one cycle time of PLC)
M02: S080~S083 will be ON after M02 is interpreted. (Remain one cycle time of PLC)
M30: S080~S083 will be ON after M31 is interpreted. (Remain one cycle time of PLC)
S Bit 086 FINISH SPINDLE ORIENTATION
After the spindle finishes spindle orientation,
command C085, S086 turns from ON to OFF.
S Bit 088 THE 1ST SPINDLE REACHES ROTATION SPEED
When the spindle speed reaches the expected speed, S088 is ON. Pr. 1054 is used to
deviation range of spindle speed.
S Bit 091 STATUS OF G080 IN CANNEL CYCLE
cannot be 80; when not in canned cycle status, S091 turns ON, and the valid
group must be 80.
S Bit 092 THE 1ST SPINDLE REACHES ZERO SPEED
the system will send this signal to notify PLC.
The 1st spindle: Pr. 1063.
The 2nd spindle: Pr. 0299.
The 3rd spindle: Pr. 0882.
74 LNC Technology Co., Ltd.
Page 81
LNC-M520 Series
axis to prepare for switching to the position control
S100 ~ S115 are equal to Macro variables $600 ~ $615, which are the output points that
MACRO sends to LADDER. For example, set $600 to 1 in MACRO, and UO0 in LADDER will
PLC Maintenance -- C,S BITS and Register
S Bit 093 SPINDLE SWITCHES TO PULSE COMMAND
NC sends the signal S093 to notify PLC
mode, meanwhile the driver can make corresponding switch.
S Bit 094 SPINDLE MOTOR REACHES ROTATION SPEED AFTER GEAR CHANGE
After the spindle changes the gear and reaches the expected rotation speed, S094 is ON.
S Bit 100 MACRO VARIABLE $600
S Bit 101 MACRO VARIABLE $601
S Bit 102 MACRO VARIABLE $602
S Bit 103 MACRO VARIABLE $603
S Bit 104 MACRO VARIABLE $604
S Bit 105 MACRO VARIABLE $605
S Bit 106 MACRO VARIABLE $606
S Bit 109 MACRO VARIABLE $609
S Bit 112 MACRO VARIABLE $612
S Bit 113 MACRO VARIABLE $613
S Bit 114 MACRO VARIABLE $614
S Bit 115 MACRO VARIABLE $615
be ON. LADDER can use these MACRO signals to control the system externally.
LNC Technology Co., Ltd. 75
Page 82
LNC-M520 Series
0i, some keys do not use the actual I point, instead,
n send the corresponding S Bits to notify
PLC about their being triggered so PLC will process the following actions. The keys and their
mode or
PLC Maintenance -- C,S BITS and Register
S Bit 116 MODE KEY: EDIT
S Bit 117 MODE KEY: MEM
S Bit 118 MODE KEY: MDI
S Bit 119 MODE KEY: JOG
S Bit 121 MODE KEY: MPG
S Bit 122 MODE KEY: HOME RETURN
S Bit 123 MODE KEY: SPINDLE STOP
S Bit 124 F+ FEED OVERRIDE
S Bit 125 F- FEED OVERRIDE
S Bit 126 S+ SPINDLE SPEED OVERRIDE
S Bit 127 S- SPINDLE SPEED OVERRIDE
On the integrated type of OP panel of M51
they use ASCII encoders to be read via HMI, and the
corresponding S Bits are listed as the chart below:
S Bit 120 PMC AXIS
After PMC axis completes its motion, S120 is ON.
S Bit 128 RIGID TAPPING
NC sends the signal S128 to notify PLC whether NC already enters “RIGID TAPPING”
not.
S Bit 130 MOTION STATUS OF SERVO AXIS: X AXIS
S Bit 131 MOTION STATUS OF SERVO AXIS: Y AXIS
S Bit 132 MOTION STATUS OF SERVO AXIS: Z AXIS
S Bit 133 MOTION STATUS OF SERVO AXIS: THE 4TH AXIS
S130 ~ S133 indicate the motion statuses of each axis.
ON:In motion.
OFF:Stop.
OP Keys S Bit
EDIT S116
MEM S117
MDI S118
JOG S119
MPG S121
HOME S122
SP STOP S123
F % + S124
F % - S125
S % + S126
S % - S127
76 LNC Technology Co., Ltd.
Page 83
PLC Maintenance -- C,S BITS and Register
When the number of working piece is greater than or equal to that of the maximum
ng
piece to zero, then this signal will not be sent out. MLC will use C134 to inform NC to clear
Enter into user parameter to do function selection and set parameter No. 12 as 1. When the
es the setting working piece number, it will enter into the Feed Hole
At this time, user can do any needed motion. If there is no need to do any other motion, please
ctly. Then the working piece number will be cleared to zero
automatically. Furthermore, it will start working automatically and counting working piece
number from zero. If no need this function at all, then set parameter No.12 as 0. Circulating
02
03
the system will send S150 ~ S153 to notify PLC
S Bit 134 Max Working Piece Arrival
setting-working piece, S134 will be sent out to inform PLC. If setting the maximum worki
working piece.
Application Description:
working piece number reach
condition and send out warning message (Wrokpiece is full).
press “Cycle Start” key dire
work of working piece will not be affected.
01 Program Editing 0 11
Home Point Search
Priority
Return Home Axis
Priority
Rapidly Moving
04
50%
Total Number of
05
Turret
06 Safety Door 0 16
Enforce Track
07
Lubrication
08 Lubricate ON Time 5 18
Lubricate OFF
09
Time
Auto Power Off
10
S Bit 141 Mainframe Fan1 Checking
S Bit 142 Mainframe Fan2 Checking
To Detect the condition of mainframe fan
0:normal
1:non-normal
S Bit 150 SPINDLE GEAR SWITCH: THE 1ST GEAR
S Bit 151 SPINDLE GEAR SWITCH: THE 2ND GEAR
S Bit 152 SPINDLE GEAR SWITCH: THE 3RD GEAR
S Bit 153 SPINDLE GEAR SWITCH: THE 4TH GEAR
When S code is not in the present gear range,
to switch the corresponding gear:
1. S150: Switch the 1st gear of the spindle.
2. S151: Switch the 2nd gear of the spindle.
3. S152: Switch the 3rd gear of the spindle.
4. S153: Switch the 4th gear of the spindle.
The output voltage of the spindle remains unchanged.
Function
LNC-M520 Series
Power Off Delay
Time
1 12 Work Piece Alarm 1
1 13
0 14
0 15
0 17
30 19
1 20
5
LNC Technology Co., Ltd. 77
Page 84
LNC-M520 Series
a servo axis is in motion, S154 ~ S159 indicate the motion directions of each axis. If the
ve direction, the corresponding S bit is set to ON; if towards the
PLC Maintenance -- C,S BITS and Register
S Bit 154 MOTION DIRECTION OF SERVO AXIS: X AXIS
S Bit 155 MOTION DIRECTION OF SERVO AXIS: Y AXIS
S Bit 156 MOTION DIRECTION OF SERVO AXIS: Z AXIS
S Bit 157 MOTION DIRECTION OF SERVO AXIS: THE 4TH AXIS
S Bit 158 MOTION DIRECTION OF SERVO AXIS: THE 5TH AXIS
S Bit 159 MOTION DIRECTION OF SERVO AXIS: THE 6TH AXIS
When
motion is towards the positi
negative direction, set to OFF.
S Bit 201 Enter into Absolute Encoder Data Transmitting Mode:X Axis
S Bit 202 Enter into Absolute Encoder Data Transmitting Mode:Y Axis
S Bit 203 Enter into Absolute Encoder Data Transmitting Mode:Z Axis
S Bit 204 Enter into Absolute Encoder Data Transmitting Mode:4th Axis
To use this signal to notify servo driver to enter into ABS transmitting mode.
S Bit 207 Absolute Encoder Data Transmitting:X Axis
S Bit 208 Absolute Encoder Data Transmitting:Y Axis
S Bit 209 Absolute Encoder Data Transmitting:Z Axis
S Bit 210 Absolute Encoder Data Transmitting:4th Axis
To use this signal to request ABS transmitting from servo driver.
S Bit 213 Absolute Encoder Reset:X Axis
S Bit 214 Absolute Encoder Reset:Y Axis
S Bit 215 Absolute Encoder Reset:Z Axis
S Bit 216 Absolute Encoder Reset:4th Axis
To use this signal to notify servo driver to eliminate absolute Encoder zero return motion.
S Bit 079 PLC WINDOW COMPLETED
Please refer to 4.7 PLC Window structure for a detailed description.
78 LNC Technology Co., Ltd.
Page 85
PLC Maintenance -- C,S BITS and Register
4.6 Register Description
R Bit 001 M CODE
R001 sends out M code value when M code is being executed.
Range: 00 ~ 99.
R Bit 002 S CODE
R002 sends out S code value when S code is being executed.
Range: 0000 ~ 9999.
R Bit 003 T CODE
R001 sends out T code value when T code is being executed.
Range: 0000 ~ 9999.
R Bit 004 ACTUAL ROTATION SPEED OF THE SPINDLE
R004 indicates the actual rotation speed of the spindle.
R Bit 013 MODE SELECTION
1:EDIT,2:MEM,3:MDI,4:JOG,5:INCJOG,6:MPG,7:HOME
The register value of each operation module is listed as the chart below:
LNC-M520 Series
Operation Module REG 013
EDIT 1
MEM 2
MDI 3
JOG
RAPID
INCJOG 5
MPG 6
HOME 7
4 (C23=OFF)
4 (C23=ON )
LNC Technology Co., Ltd. 79
Page 86
LNC-M520 Series
PLC Maintenance -- C,S BITS and Register
R Bit 014 MPG RATE 2: x10, 3: x100, OTHERS: x1
INCREMENTAL JOG OVERRIDE 2: x10, 3: x100, 4:x1000, OTHERS: x1
The register value of each MPG rate is listed as the chart below:
MPG Rate REG 014
X1 1 (Or Others)
x10 2
x100 3
R Bit 015 ROTATION SPEED OVERRIDE OF THE SPINDLE
0 ~ 12 REPRESENT 0% ~ 120%, RESPECTIVELY; OTHERS: SET VALUE × 0.01
The register value of each spindle rotation speed’s override is listed as the chart below:
0, 1: F0, 2: 25%, 3: 50% ~ 4: 100%: OTHERS: SET VALUE × 0.001
The register value of each rapid feed override is listed as the chart below:
% REG 18
F0% 0
F0% 1
25% 2
50% 3
100% 4
1% Others
NOTE: The actual rapid override of F0% is set by Pr. 0040.
R Bit 021 OVERRIDE OF PMC AXIS, UNIT: mm/min.
R021 sets the override of PMC axis.
Others
82 LNC Technology Co., Ltd.
Page 89
PLC Maintenance -- C,S BITS and Register
R024 ~ R029 set the assigned motion distance for each PMC axis when executing a motion
into
R040 ~ R045 enables alarms. There are 6 registers (word), and 96 messages in total for
and actuation. For example, if the alarms #1 & #3 are to be enabled, LADDER must
essages
arm,
R Bit 022 PMC AXIS CONTROL
R022 sets the axis to be controlled by PMC.
Bit 1, Bit 0:00 for G00; 01 for G01; 10 for G53
Bit 2:1 spindle.
Bit 3:Reserved.
Bit 4:1 X axis
Bit 5:1 Y axis
Bit 6:1 Z axis
Bit 7:1 The 4th axis
R Bit 024 MOTION COMMAND OF PMC AXIS: X AXIS, mm part
R Bit 025 MOTION COMMAND OF PMC AXIS: X AXIS, μm part
R Bit 026 MOTION COMMAND OF PMC AXIS: Y AXIS, mm part
R Bit 027 MOTION COMMAND OF PMC AXIS: Y AXIS, μm part
R Bit 028 MOTION COMMAND OF PMC AXIS: Z AXIS, mm part
R Bit 029 MOTION COMMAND OF PMC AXIS: Z AXIS, μm part
R Bit 030 PMC Function of 4th-Axis Command Amount, Unit=mm
R Bit 031 PMC Function of 4th-Axis Command Amount, Unit=μm
command. Motion distances must be set by entering two parts, mm & um, respectively
each register.
R Bit 040 PLC ALARM
R Bit 041 PLC ALARM
R Bit 042 PLC ALARM
R Bit 043 PLC ALARM
R Bit 044 PLC ALARM
R Bit 045 PLC ALARM
definition
enter R40 into constant 5 (bit 1 & bit 3) with a MOV command. At the same time, m
must be pre-defined in the corresponding position in ENG_ PLC.ERR. To clear the PLC al
simply set R40 to 0.
LNC-M520 Series
LNC Technology Co., Ltd. 83
Page 90
LNC-M520 Series
PLC Maintenance -- C,S BITS and Register
R Bit 060 PLC WINDOW FUNCTION
R Bit 061 PLC WINDOW FUNCTION NO.1
R Bit 062 PLC WINDOW FUNCTION NO.2
R Bit 063 PLC WINDOW READ/WRITE VALUE 1
R Bit 064 PLC WINDOW READ/WRITE VALUE 2
R Bit 065 PLC WINDOW READ/WRITE VALUE 3
R Bit 066 PLC WINDOW READ/WRITE VALUE 4
R Bit 067 PLC WINDOW READ/WRITE VALUE 5
R Bit 068 PLC WINDOW READ/WRITE VALUE 6
R Bit 069 PLC WINDOW READ/WRITE VALUE 7
R Bit 070 PLC WINDOW READ/WRITE VALUE 8
R Bit 071 PLC WINDOW READ/WRITE VALUE 9
R Bit 072 PLC WINDOW READ/WRITE VALUE 10
R Bit 073 PLC WINDOW READ/WRITE VALUE 11
R Bit 074 PLC WINDOW READ/WRITE VALUE 12
Please refer to the description of 4.7 PLC Window mechanism.
84 LNC Technology Co., Ltd.
Page 91
LNC-M520 Series
means the starting numbers of macro global
means the desired read/write macro global variables’
(starting from the number that is designated by
means the desired read/write parameter variables’
numbers(starting from the number that is designated by
macro global
parameter that is designated by
macro global
parameter that is designated by
macro global
parameter that is designated by
PLC Maintenance -- C,S BITS and Register
4.7 PLC Window Function
After Ladder key-in the desired item codes in R60 ~ R62, setting C640 (0: read, 1 write). When completed,
using C65 to inform NC. NC will enter the desired item into the corresponding R register (C64 is 0) according
to the setting of R60 ~ R62 and C64. Or read the setting value (C64 is 1) from the corresponding R register.
When completed the task, using S79 to inform Ladder. This function is enabled (raising edge trigger) when
C65 becomes 1 from 0; S79 will become OFF after C65 has become OFF.
R register definition:
R Register
60
61
62
63
64
65
Definition Remarks
Item Code
1:read absolute coordinate value;
2:read machine coordinate value;
3:read & write macro global variables;
4:read parameter value;
Sub-Item Code 1 (different depends on R60)
R60 : 3,
variables(1 ~ 500) that are read and wrote
R60:4, the starting parameter #s that are read
Sub-Item Code 2 (different depends on R60 and R61)
R60:3 ,
numbers
R61),maximum 8.
R60:4,
R61) ,maximum 8.
Read/Write Value (different depends on R60~R62)
R60:1,means X axis absolute coordinate mm part;
R60:2,means X axis machine coordinate mm part;
R60:3,means the present value of the1
variable that is designated by R61 and R62.
R60:4,means the value of 1
st
st
R61 and R62.
Read/Write Value (different depends on R60~R62)
R60:1,means X axis absolute coordinate μm part;
R60:2,means X axis machine coordinate μm part;
R60:3,means the present value of the1
variable that is designated by R61 and R62.
R60:4,means the value of 1
st
st
R61 and R62.
Read/Write Value (different depends on R60~R62)
R60:1,means Y axis absolute coordinate mm part;
R60:2,means Y axis machine coordinate mm part;
R60:3,means the present value of the1
variable that is designated by R61 and R62.
R60:4,means the value of 1
Use R61 and R62 to order
read and write multiple
macro global variables
continuously (max 8
variables),or the designated
parameter continuously
Please refer to Attention.
Please refer to Attention.
Please refer to Attention.
LNC Technology Co., Ltd. 85
Page 92
LNC-M520 Series
present value of the1st macro global
means the value of 1st parameter that is designated
macro global
parameter that is designated by
macro global
parameter that is designated by
means the present value of the1st macro global
means the value of 1st parameter that is designated
macro global
parameter that is designated by
R63~R76 Reading
PLC Maintenance -- C,S BITS and Register
R Register
Read/Write Value (different depends on R60~R62)
R60:1,means Y axis absolute coordinate μm part;
R60:2,means Y axis machine coordinate μm part;
66
R60:3,means the
variable that is designated by R61 and R62.
R60:4,
by R61 and R62.
Read/Write Value (different depends on R60~R62)
R60:1,means Z axis absolute coordinate mm part;
R60:2,means Z axis machine coordinate mm part;
67
R60:3,means the present value of the1
variable that is designated by R61 and R62.
R60:4,means the value of 1
R61 and R62.
Read/Write Value (different depends on R60~R62)
R60:1,means Z axis absolute coordinate μm part;
R60:2,means Z axis machine coordinate μm part;
68
R60:3,means the present value of the1
variable that is designated by R61 and R62.
R60:4,means the value of 1
R61 and R62.
Read/Write Value (different depends on R60~R62)
R60:1,means 4th axis absolute coordinate mm part;
R60:2,means 4th axis machine coordinate mm part;
69
R60:3,
variable that is designated by R61 and R62.
R60:4,
by R61 and R62.
Read/Write Value (different depends on R60~R62)
R60:1,means 4th axis absolute coordinate μm part;
R60:2,means 4th axis machine coordinate μm part;
70
R60:3,means the present value of the1
variable that is designated by R61 and R62.
R60:4,means the value of 1
R61 and R62.
Timing Prodecure Diagram:
Definition Remarks
st
st
st
Please refer to Attention.
st
st
Please refer to Attention.
Please refer to Attention.
Please refer to Attention.
st
Please refer to Attention.
C0641
0
C0651
0
S079 1
0
86 LNC Technology Co., Ltd.
PLC to
Page 93
LNC-M520 Series
PLC Maintenance -- C,S BITS and Register
Attention:
1. For read only items, if Ladder sets C64 to 1, NC will ignore it. Using the same principle for the writing
items, if Ladder sets C64 to 0, NC will ignore it.
2. Macro variables belong to DOUBLE type. But the present Ladder can only take care of the value in INT
type. So if Ladder reads macro global variables via PLC Window, NC will check whether or not the
macro global variable value is between -32768 ~ 32767. If yes, the macro global variables will change
to INT type and then enter into the corresponding R register. If no, then the alarm【OP 1019 DESIRED
MACRO VARIABLES OVER RANGE】will occur.
3. Using R61 and R62, Ladder can read/write multiple macro global variables (maximum 8 variables)
continuously. Example: set R60 to 3, R61 to 200 and R62 to 5. When C64 is OFF, it means the total
current value of the designated reading/writing @200 ~ @204, total 5 macro global variables. But, if
(R61 + R62 – 1) > 500, then alarm message【OP 1018 DESIRED MACRO GLOBAL VARIABLES NOT
EXISTED】will occur.
4. Macro local variables not able to execute read and write via PLC Window.
5. The reading parameter value must be an integrate number (INT) or long integrate number (LONG). But
the present Ladder can only take care of the values in INT type. So if Ladder reads parameter value via
PLC Window, NC will check whether or not that parameter value is between -32768 ~ 32767. If yes, the
parameter will change to INT type, and then enter into the corresponding R register. If not, the alarm
message 【OP 1022 DESIRED PARAMETER VARIABLES OVER RANGE】 will occur.
6. Using R61 and R62, Ladder can read/write multiple parameter variables (maximum 8 variables)
continuously. Example: set R60 to 3, R61 to 200 and R62 to 5. When C64 is OFF, it means the total
value of the reading parameter variables 0200 ~ 0204, total 5 parameter variables. If it is over the valid
parameter range, the alarm message【OP 1023 DESIRED PARAMETER VARIABLES NOT EXISTED】
will occur.
Valid parameter variable range: 0 ~ 220,300 ~ 899,1000 ~ 1200。
7. Parameter is not able to execute setting via PLC Window.
Alarm Message:
1. OP 1018:DESIRED MACRO GLOBAL VARIABLES NOT EXISTED.
2. OP 1019:DESIRED MACRO VARIABLES OVER RANGE
3. OP 1022:DESIRED PARAMETER VARIABLES OVER RANGE
4. OP 1023:DESIRED PARAMETER VARIABLES NOT EXISTED
LNC Technology Co., Ltd. 87
Page 94
LNC-M520 Series
the following explains how to
PLC Maintenance -- C,S BITS and Register
4.8 PLC Initial Setting Description(PLCIO.CFG)
In LNCMILL\MACHINE, file name is PLCIO.CFG, this file is to set PLC I/O configuration and definition, file
content is as following:
InputSignalInverse=0 // I point is reverse turning, 0=No , 1=Yes
OutputSignalInverse=0 // O point is reverse turning, 0=No , 1=Yes
BaseAddress=0x200 // pcc1620 base address
Set1Slave1=1 // whether to use Set1’s Slave1, 0=No, 1=Yes
Set1Slave2=0 // whether to use Set1’s Slave2, 0=No, 1=Yes
Set2Slave1=1 // whether to use Set2’s Slave1, 0=No, 1=Yes
Set2Slave2=0 // whether to use Set2’s Slave2, 0=No, 1=Yes
I 0 1 0x200 // column [I or O][NUMBER][SET][ADDRESS][able to add footnot]
I 8 1 0x201 // no empty space in between
I 16 1 0x202 // I or i is okay
I 24 1 0x203 // O or o is okay
I 32 1 0x204 // SET=1means SET1, SET=2 means SET2
I 40 2 0x200 // must starts from I0
O 0 1 0x200 // due to EPCIO factor, O point must be set as even number.
O 16 1 0x202
O 32 2 0x200
O 48 2 0x202
(Note)I 0 1 0x200
Means the corresponding hardware address (
set)
I0 ~ I15 to hardware SET1
means LADDER configures from I0 ~ I15
88 LNC Technology Co., Ltd.
Page 95
LNC-M520 Series
PLC Maintenance -- C,S BITS and Register
Due to user option I/O board and different connection methods, need to define on different I/O address. For
the above diagram, due to connect to RIO1, the I/O address must be defined to SET 1.
LNC Technology Co., Ltd. 89
Page 96
LNC-M520 Series
Parameter
5 Parameter
Parameters seprated into 7 types: servo parameter, machine parameter, spindle parameter, MPG parameter,
compensation parameter, original parameter, and operation parameter.
Note:
1. Four effective times due to different parameter setting values.
a:Effective immediately
b:Effective after RESET(R)
c:Effective after rebooting(⊙)
d:Effective after re-power on(ㄣ)
2. Two types of authorization status according to each parameter’s functions. However, under
【End-User】status, some parameter will NOT occur:
a:End-user
b:Machine maker
3. Some parameters use Bit method to set whether or not to enable a certain function. Usually, Bit0
corresponds X axis, Bit1 corresponds Y axis, Bit2 corresponds Z axis. The setting method is as below:
Bit0:1 means 1 in 1, 2, 4, 8, 16, 32 and so on
Bit1:1 means 2 in 1, 2, 4, 8, 16, 32 and so on;
Bit2:1 means 4 in 1, 2, 4, 8, 16, 32 and so on;
Bit3:1 means 8 in 1, 2, 4, 8, 16, 32 and so on;
Bit4:1 means 12 in 1, 2, 4, 8, 16, 32 and so on;
So, if want to set a certain Bit to 1, only need to adding up the corresponding value into the parameter.
For example, if want to set both Bit1 and Bit3 to 1, the setting value of this parameter is 10(2 + 8).
90 LNC Technology Co., Ltd.
Page 97
5.1 Parameter List
LNC-M520 Series
Parameter
No Group Description Effective
1 Servo SYSTEM LOOP GAINS FOR V CMD
2 Servo MAX. SERVO LAG OF X AXIS, μm R
3 Servo MAX. SERVO LAG OF Y AXIS, μm R
4 Servo MAX. SERVO LAG OF Z AXIS, μm R
5 Servo MAX. SERVO LAG OF THE 4TH AXIS, μm R
6 Servo IN-POSITION CHECK WINDOW OF X AXIS, μm
7 Servo IN-POSITION CHECK WINDOW OF Y AXIS, μm
8 Servo IN-POSITION CHECK WINDOW OF Z AXIS, μm
9 Servo
10 Servo G00’S ACCEL./DECEL. TIME OF X AXIS, ms
11 Servo G00’S ACCEL./DECEL. TIME OF Y AXIS, ms
12 Servo G00’S ACCEL./DECEL. TIME OF Z AXIS, ms
13 Servo
14 Servo G01 ACCEL./DECEL. TIME
15 MPG
16 Spindle
18 MPG MPG RATE R
19 Zero Point SOLUTIONS WHEN HOME IS ON DOG R
20 Zero Point DEFAULT SETTING OF HOME RETURN BIT
21 Spindle RPM OF THE 1ST SPINDLE’S ORIENTATION R
24 Servo
25 Servo
26 Servo
27 Servo
28 MPG MPG CONNECTION PORT OF X AXIS
IN-POSITION CHECK WINDOW OF THE 4TH
AXIS, μm
G00’S ACCEL./DECEL. TIME OF THE 4TH AXIS,
ms
CORRESPONDING MECHANICAL AXIS OF
MPG SIMULATED AXIS
ACCEL./DECEL. TIME PER KILO-REV. OF THE
1ST SPINDLE
CORRESPONDING SERVO AXIS NUMBER OF
X AXIS
CORRESPONDING SERVO AXIS NUMBER OF
Y AXIS
CORRESPONDING SERVO AXIS NUMBER OF
Z AXIS
CORRESPONDING SERVO AXIS NUMBER OF
THE 4TH AXIS
⊙
R
R
R
R
⊙
⊙
⊙
⊙
⊙
⊙
R
⊙
⊙
⊙
⊙
⊙
⊙
Level Page
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
107
108
108
108
108
108
108
108
108
109
109
109
109
109
145
124
146
155
155
124
109
109
109
109
147
LNC Technology Co., Ltd. 91
Page 98
LNC-M520 Series
THE CORRESPONDING SERVO AXIS NUMBER
BACKLASH COMPENSATION AMOUNT OF THE
LE IN 2ND
Parameter
No Group Description Effective
29 Spindle
30 Zero Point
31 Zero Point
32 Zero Point
33 Zero Point
34 Zero Point
35 Zero Point
36 Zero Point
37 Zero Point
38 Compensation
OF THE 1ST SPINDLE
OFFSET AMOUNT OF HOME RETURN: X
AXISμm
OFFSET AMOUNT OF HOME RETURN: Y AXIS
μm
OFFSET AMOUNT OF HOME RETURN: Z AXIS
μm
OFFSET AMOUNT OF HOME RETURN: THE
4TH AXIS μm
IDLE DURATION FOR X AXIS TO SEARCH FOR
ZERO POINT 10ms
IDLE DURATION FOR Y AXIS TO SEARCH FOR
ZERO POINT 10ms
IDLE DURATION FOR Z AXIS TO SEARCH FOR
ZERO POINT 10ms
IDLE DURATION FOR THE 4TH AXIS TO
SEARCH FOR ZERO POINT 10ms
BACKLASH COMPENSATION UNIT 0)PULSE
16)μm
⊙
R
R
R
R
R
R
R
R
⊙
Level Page
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
124
156
156
156
156
156
156
156
156
148
39 Operation CANCEL G92 WHEN G54 ~ G59 CALL R User 172
40 Servo G00’S LOWEST OVERRIDE AT F0 R User 110
41 Operation
SYNCHRONIC MOTION OF G00 COMMAND
0)NO 1)YES
R User 172
42 Operation ANNOTATION TYPE 0) /*...*/ 1) (...) R User 173
43 Operation
44 Compensation
45 Compensation
46 Compensation
47 Compensation
48 Zero Point HOME SEARCH METHOD BIT
49 Spindle
50 Spindle
51 Spindle
52 Spindle
53 Servo
54 Servo
55 Servo
56 Servo
57 Spindle FEEDBACK RATE OF THE 1ST SPINDLE
IN-POSITION CHECK MODE OF
INTERPOLATION BIT
BACKLASH COMPENSATION AMOUNT OF X
AXIS μm
BACKLASH COMPENSATION AMOUNT OF Y
AXIS μm
BACKLASH COMPENSATION AMOUNT OF Z
AXIS μm
4TH AXIS μm
MOTOR’S TOOTH NUMBER OF THE 1ST
SPINDLE IN 1ST GEAR
THE 1ST SPINDLE’S TEETH NUMBER IN 1ST
GEAR
TOOTH NUMBER OF THE 1ST SPINDLE’S
MOTOR IN 2ND GEAR
TOOTH NUMBER OF THE 1ST SPIND
GEAR
ENCODER FEEDBACK MULTIPLIER OF THE
4TH AXIS 1/2/4
ENCODER FEEDBACK MULTIPLIER OF X AXIS
1/2/4
ENCODER FEEDBACK MULTIPLIER OF Y AXIS
1/2/4
ENCODER FEEDBACK MULTIPLIER OF Z AXIS
1/2/4
R User 174
R
R
R
R
⊙
⊙
⊙
⊙
⊙
⊙
⊙
⊙
⊙
⊙
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
148
148
148
148
157
125
125
126
126
110
110
110
110
127
92 LNC Technology Co., Ltd.
Page 99
LNC-M520 Series
ACCELERATION/DECELERATION OF G31 0)NO
Parameter
No Group Description Effective
62 Machine
63 Operation
UNIT OF Pr.0104 ~ Pr.0107 0) METRIC 1)
IMPERIAL
SET RELATIVE COORDINATES ACCORDING
TO ABSOLUTE COORIDNATES 0)NO 1)YES
64 Zero Point HOME DOG SENSOR IS 0)NC 1)NO
65 Servo ABSOLUTE ENCODER (BIT)
66 Servo
68 Machine
69 Machine
70 Machine
71 Operation
72 Machine
73 Operation
SET THE 4TH AXIS AS A 0)RATORY 1)LINEAR
AXIS
TOOTH NUMBER OF X AXIS MOTOR
(DENOMINATOR IN GEAR RATIO)
TOOTH NUMBER OF Y AXIS’S MOTOR
(DENOMINATOR IN GEAR RATIO)
TOOTH NUMBER OF Z AXIS’S MOTOR
(DENOMINATOR IN GEAR RATIO)
PATH CHECK G22 ADOPTS 0)OUTSIDE
1)INSIDE
TOOTH NUMBER OF THE 4TH AXIS’S MOTOR
(DENOMINATOR IN GEAR RATIO)
1)YES
⊙
R User 174
⊙
⊙
⊙
⊙
⊙
⊙
R User 175
⊙
⊙
Level Page
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
121
157
111
111
121
121
121
121
175
74 Operation EXECUTE SINGLE BLOCK OF MACRO R User 175
75 MPG MPG CONNECTION PORT OF THE 4TH AXIS
76 Zero Point
SET ABSOLUTE COORD. AFTER HOME
RETURN 0)NO 1)YES
⊙
R
Machine
Maker
Machine
Maker
147
158
77 Zero Point G00 1)DISABLED 0) 1)EFFECTIVE R User 158
78 Operation CUTTING LAG OF C AXIS 0)NO 122)YES
79 Zero Point
80 Zero Point
81 Zero Point
82 Zero Point
X AXIS’S ZERO POINT IS 0)AFTER 1)BEFORE
DOG
Y AXIS’S ZERO POINT IS 0)AFTER 1)BEFORE
DOG
Z AXIS’S ZERO POINT IS 0)AFTER 1)BEFORE
DOG
THE 4TH AXIS’S ZERO POINT IS 0)AFTER
1)BEFORE DOG
83 Operation G00 IS 0)DISABLED 1)EFFECTIVE IN DRY RUN
84 Spindle
THE 1ST SPINDLE ORIENTATION 0)SENSOR
1)ENCODER
85 Servo MAX. SERVO LAG: X100 BIT R
87 MPG MPG CONNECTION PORT OF Y AXIS
88 MPG MPG CONNECTION PORT OF Z AXIS
89 Operation
90 Spindle
SET M CODE COMMAND OF PART COUNT BY
USER
THE 1ST SPINDLE DISPLAYS 0)COMMAND 1)
SENSOR
94 Operation EDIBILITY OF 09XXX 0)NO 1)YES
95 Spindle MIN SPEED OF 1RD SPINDLE R
⊙
R
R
R
R
User 175
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
159
159
159
159
R User 176
R
⊙
⊙
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
127
111
147
147
R User 176
Machine
Maker
Machine
Maker
Machine
Maker
128
177
128
LNC Technology Co., Ltd. 93
Page 100
LNC-M520 Series
Parameter
No Group Description Effective
98 Spindle
100
101
102
103
104
105
106
107
108
109
110
Machine
Machine
Machine
Machine
Machine BALL SCREW PITCH. OF X AXIS
Machine BALL SCREW PITCH. OF Y AXIS
Machine BALL SCREW PITCH. OF Z AXIS
Machine BALL SCREW PITCH. OF THE 4TH AXIS
Servo RPM TO VOLTAGE RATIO FOR X AXIS RPM/1V
Servo RPM TO VOLTAGE RATIO FOR Y AXIS RPM/1V
Servo RPM TO VOLTAGE RATIO FOR Z AXIS RPM/1V
111 Servo
112 Compensation
113 Compensation
114 Compensation
115 Compensation
116
Servo
VOLTAGE COMMAND’S OFFSET VALUE OF
THE 1ST SPINDLE’S RPM
BALL SCREW’S TOOTH NUMBER OF X AXIS
(NUMERATOR IN GEAR RATIO)
BALL SCREW’S TOOTH NUMBER OF Y AXIS
(NUMERATOR IN GEAR RATIO)
BALL SCREW’S TOOTH NUMBER OF Z AXIS
(NUMERATOR IN GEAR RATIO)
BALL SCREW’S TOOTH NUMBER OF THE 4TH
AXIS (NUMERATOR IN GEAR RATIO)
RPM TO VOLTAGE RATIO FOR THE 4TH AXIS
RPM/1V
TOTAL SESSION NUMBER OF PITCH ERROR
COMPENSATION OF X AXIS
TOTAL SESSION NUMBER OF PITCH ERROR
COMPENSATION OF Y AXIS
TOTAL SESSION NUMBER OF PITCH ERROR
COMPENSATION OF Z AXIS
TOTAL SESSION NUMBER OF PITCH ERROR
COMPENSATION OF THE 4TH AXIS
REVERSE MOTION DIRECTRION OF SERVO
AXIS BIT
R
⊙
⊙
⊙
⊙
⊙
⊙
⊙
⊙
⊙
⊙
⊙
⊙
⊙
⊙
⊙
⊙
⊙
117 Compensation BACKLASH COMPENSATION FUNCTION BIT R
118 Compensation
119 Compensation
120 Zero Point
121
122
123
124
129
130
131
Operation
Operation NAME THE 4TH AXIS (ABCUVW)
Operation UNIT SYSTEM 0)G21 METRIC 1)G20 IMPERIAL
Operation INITIAL MOTION COMMAND 0)G00 1)G01
Operation G02 G03 TOLERANCE OF COMMAND ERROR
Operation UNIT OF INPUT VALUE R User 178
Operation CUTTER COMPENSATION TYPE 0)A 1)B R
DIRECTION OF PITCH ERROR
COMPENSATION BIT
PITCH ERROR COMPENSATION FUNCTION
BIT
DIRECTION OF HOME RETURN FOR EACH
AXIS BIT
G76/G87 TOOL ESCAPE DIRECTION IN
CANNED CYCLE
⊙
⊙
⊙
R User 177
⊙
⊙
⊙
R User 178
Level Page
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
Machine
Maker
User 177
User 178
Machine
Maker
129
122
122
122
122
122
122
122
122
112
112
112
112
148
148
148
148
112
149
149
150
159
177
179
94 LNC Technology Co., Ltd.
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.