Sie sind auf Seite 1von 43

SYNTEC

OpenCNC PLC Development Tools


Operation Manual

By: SYNTEC

Date: 2010/07/19

Version: 1.4
版本更新記錄
項次 更改內容紀錄 更改日期 作者 更改後版本
01 初版定稿 2002/03/26 V1.3
02 修改文件格式 2010/07/19 V1.4
Contents
1 MLC Edit For Windows......................................................................................... 1
2 Function Index ....................................................................................................... 2
3 Command Indexes ................................................................................................. 4
4 Edit Main Screen.................................................................................................... 5
5 Parameter input field .............................................................................................. 6
6 Keyboard Operation Index ..................................................................................... 7
6.1 MLC element command instruction ...................................................... 7
6.1.1 Normal Open Contact .................................................................... 7
6.1.2 Normal Close Contact .................................................................... 7
6.1.3 Connector ....................................................................................... 8
6.1.4 Normal Open Coil .......................................................................... 8
6.1.5 Normal Closed Coil ....................................................................... 8
6.1.6 Positive Edge Triggered Coil ......................................................... 8
6.1.7 Negative Edge Triggered Coil ....................................................... 9
6.1.8 Latch Coil....................................................................................... 9
6.1.9 Unlatch Coil ................................................................................... 9
6.1.10 Counter ......................................................................................... 10
6.1.11 Ring Counter ................................................................................ 10
6.1.12 Counter Reset ............................................................................... 11
6.1.13 Timer ............................................................................................ 11
6.1.14 PLC Axis ...................................................................................... 12
6.1.15 Keyboard scan .............................................................................. 14
6.1.16 Arithmetic Operation ................................................................... 16
6.1.17 Logic Operation ........................................................................... 16
6.1.18 Compare ....................................................................................... 17
6.1.19 Move ............................................................................................ 18
6.1.20 Rotate ........................................................................................... 18
6.1.21 Jump ............................................................................................. 18
6.1.22 Jump Subroutine .......................................................................... 18
6.1.23 Return ........................................................................................... 19
6.1.24 Label ............................................................................................ 19
6.1.25 End ............................................................................................... 19
6.1.26 Fast PLC program scan ................................................................ 19
6.2 Valid version ........................................................................................ 20
6.3 Operation instructions .......................................................................... 20
7 LADDER example ............................................................................................... 22
7.1 Mode Selection .................................................................................... 22
7.2 Spindle Speed% ................................................................................... 23
7.3 MPG and INJOG step percentage speed% .......................................... 24
7.4 G01 cutting speed% ............................................................................. 25
7.4.1 PLC basic circuit design .............................................................. 26
7.5 MPG Simulation C20 ........................................................................ 28
7.6 Dry Run C42 ..................................................................................... 28
7.7 Optional Stop C44............................................................................. 29
7.8 Optional Skip C41............................................................................. 29
7.9 Single Block C40 ................................................................................. 29
7.10 Machine Lock C43 ............................................................................ 30
7.11 Spindle turn , reverse and stop ............................................................. 31
7.12 Direction of chuck and gripper ............................................................ 32
7.13 JOG button on interface ....................................................................... 34
7.14 Cycle Start C0 and Feed Hold C1 ........................................................ 35
7.15 Origin return......................................................................................... 35
7.16 Positive negative limit of XYZ (Over Travel) ..................................... 36
7.17 Emergency Stop C36 ........................................................................ 36
7.18 M CODE .............................................................................................. 37
1. MLC Edit For Windows

1 MLC Edit For Windows


MLC edit file area.
edit Menu Command
功 區

{MB:output directly}

{M07:wait the motion command finish ,and record doing times

Command edit

-1-
2. Function Index

2 Function Index
12 functions

1. new file

open a new file。

2. old file

After open the old file,the path is the original path。

3. save file

4. add new note

Move the cursor to the position where want to add new note and
then click the button,enter new note in the conversation window。
But the note only can be see in the software,can’t be see in the
CNC software

5. cut

Cut the signed area,and paste to other MLC file。

6. search

Input by capital letter,continue when press F3。

7. search for next file

Search for next file that key in,select this function or click F3。

8. copy

Copy signed area,and paste to command edit area。

-2-
2. Function Index

9. paste

Consult NO.8

10. Insert

Move to where want to insert,press insert,and add a new line。

11. delete

Move to where want to delete,press delete,and delete this line。

12. grammar check

Mistake always happen when edit ladder ,occur a error in MLC。

-3-
3. Command Indexes

3 Command Indexes
Command consult the second chapter

This software edits contents after choosing element


If use B contact of ABIT ,as below:

Press Contact ,there are many contacts。


1. press B contact。
2. press arrow point。
3. use arrow point,to choose element。
4. edit content of element by parameter field

-4-
4. Edit Main Screen

4 Edit Main Screen


Edit LADDER area,after edit must save the file,COMPILER will
make a file( *.cnc ) by the path where save the file。

-5-
5. Parameter input field

5 Parameter input field


After enter command,assign to arrow point

-6-
6. Keyboard Operation Index

6 Keyboard Operation Index


Page up : move cursor to former page at edit window。
Page Down : move cursor to next page at edit window。
Home : move cursor to most left side。
End : move cursor to most right side。
Delete : delete the element where cursor at。
↑ ↓ : move cursor up and down when in edit area。
← → : move cursor left and right when in edit area。
F3 : when in search mode,F3 for the next search。

6.1 MLC element command instruction


6.1.1 Normal Open Contact
PIC:

IO contact Self-timer contact counter contact

Description:called A contact。Normal Open Contact is open normal,


close when there is a signal。
volume:point I 512 points、point O 512 points、point C 512 points、
point S 512 points、point A 512 points、self-timer 256 points、counter 256
points、register R 0~4095,each register R use range 0..31 map to bit 0 to bit
31 by part,R50.0 for the 50th register bit 0。

6.1.2 Normal Close Contact


PIC:

IO contact Self-timer contact Counter contact

Description:call B contact。Normal Close Contact is close normal,


open when there is signal。
volume:point I 512 points、point O 512 points、point C 512 points、
point S 512 points、point A 512 points、self-timer 256 points、counter 256
points、register R 0~4095,each register R use range 0..31 map to bit 0 to bit
31 by part,R50.0 for the 50th register bit 0。

-7-
6. Keyboard Operation Index

6.1.3 Connector
PIC:

Horizontal connector Vertical connector

Description:connect with other elemant。

6.1.4 Normal Open Coil


PIC:

Description:when input is ON,then output ON;when input is OFF,


then output OFF。
volume:point O 512 points、point C 512 points、point A 512 points、
register R 0~4095,each register R use range 0..31 map to bit 0 to bit 31 by
part,R50.0 for the 50th register bit 0。

6.1.5 Normal Closed Coil


PIC:

Description:when input is ON,then output OFF;when input is OFF,


then output ON。
volume:point O 512 points、point C 512 points、point A 512 points、
register R 0~4095,each register R use range 0..31 map to bit 0 to bit 31 by
part,R50.0 for the 50th register bit 0。

6.1.6 Positive Edge Triggered Coil


PIC:

Description:when input signal OFF to NO,then output a pulse


signal。A pulse signal cycle time,represent the scan time of the software of
PC do a circulate。
volume:point O 512 points、point C 512 points、point A 512 points、
register R 0~4095,each register R use range 0..31 map to bit 0 to bit 31 by
part,R50.0 for the 50th register bit 0。

-8-
6. Keyboard Operation Index

6.1.7 Negative Edge Triggered Coil


PIC:

Description:when input signal NO to OFF,then output a pulse


signal。A pulse signal cycle time,represent the scan time of the software of
PC do a circulate。
volume:point O 512 points、point C 512 points、point A 512 points、
register R 0~4095,each register R use range 0..31 map to bit 0 to bit 31 by
part,R50.0 for the 50th register bit 0。

6.1.8 Latch Coil


PIC:

Description:when input signal is NO,output ON,and keep ON。


volume:point O 512 points、point C 512 points、point A 512 points、
register R 0~4095,each register R use range 0..31 map to bit 0 to bit 31 by
part,R50.0 for the 50th register bit 0。

6.1.9 Unlatch Coil


PIC:

Input signal:unlatch RELAY


Output signal:(O005)
Description:when input signal is NO,output OFF,and keep OFF。
volume:point O 512 points、point C 512 points、point A 512 points、
register R 0~4095,each register R use range 0..31 map to bit 0 to bit 31 by
part,R50.0 for the 50th register bit 0。

-9-
6. Keyboard Operation Index

6.1.10 Counter
PIC:

Upward counter Upward counter


of constant setup of register setup

Downward counter of Downward counter


constant setup of register setup

Description : when input signal OFF to NO , counter


upward(downward)once,stop when reach to the set value。If the output
signal is ON when counter stops。Then mapping counter contact is ON。
Upward counter beginning value is 0,target value is the value of
register or constant;downward counter beginning value is the value of
register or constant,target value is 0。
Volume:256 counters、256 registers。

6.1.11 Ring Counter


PIC:

Upward ring counter Upward ring counter


of constant setup of register setup

Downward ring counter of Downward ring counter of


constant setup register setup

Description : when input signal OFF to NO , counter


upward(downward)once,when value of counter reach target value,next
trigger will back to beginning value,keep on counting。If output signal is
ON when counter reach target value。Then mapping counter contact is ON。
Upward counter beginning value is 0,target value is the value of

-10-
6. Keyboard Operation Index

register or constant;downward counter beginning value is the value of


register or constant,target value is 0。
Volume:256 counters、256 registers。

6.1.12 Counter Reset


PIC:

Description:when input signal OFF to ON,value of that counter


become beginning。Beginning value of upward counter is 0;beginning value
of downward counter is the value of register or constant。
Volume:256 counters、256 registers。

6.1.13 Timer
PIC:

0.01s timer of 0.01s timer of


constant setup register setup

0.1s timer of 0.1s timer of


constant setup register setup

1s timer of 1s timer of
constant setup register setup

Description:when input signal OFF to ON,and keep ON,that timer


start to count time。If the output signal is ON when timer reach to target
time。Then mapping timer contact is ON。When input signal is OFF,the
timer stop,if output is OFF。Then mapping timer contact is OFF
There are three kinds of timer:0.01s, 0.1s, 1s。
Volume:256 timers、256 registers。

-11-
6. Keyboard Operation Index

6.1.14 PLC Axis


Valid version
Build 649 or newer version(no pause function)
M code used fresh version 8.00.6.0 or newer version
MPG simulation fresh version 8.00.14.0 or newer version
Axis movement element fresh version 9.00.16.0 or newer version,
release version 8.17 or newer version

Related element

Run Run
And number of program And number of program
assign by numeric is in register R

Stop Move To

Description:when input signal OFF to ON (fresh version 9.00.16.0 or


release version 8.17 (included after) is valid, active condition for old version
is input signal ON),do single axis control。
Program number range of program command is 1~999999。
Axis move command need 4 continuous register to set content of
movement
R Base+0 displacement(increment),unit BLU
R Base+1 move speed,unit mm/min
R Base+2 must be 0(reserved for augment)
R Base+3 must be 0(reserved for augment)
Volume:max axis 20,range 1~20,actually axis need depend on
usability axis in CNC parameter。

Operation instructions

-12-
6. Keyboard Operation Index

Setup:use C66~C69,C260~C271 to set assigned axis to PLC axis


{set X axle and Y axle to PLC}

Implement:do process program in assigned PLC axis

{do O1234 in Y axle}

{use indirect address do O1234 that R50 designed in X axle}

Description :
*.when doing PLC axis program ,please rising edge trigger , to start
PLC axis , prevent to do the same PLC axis program many times.
PLC axis process program description(# nnnn) :
: this program is under C:\CNC\MACRO
: the file name must use “O” to start , but can’t use “O” in Ladder
: the file name (nnnn ) , must be four number natural number
: RUN command , file name can use R bits to send(the example)

*. The rule of writing program :


: this program is MACRO ,so the head of file contents must be ”%
@MACRO”
: program can only do single axis
: axial name must be “X”
: all single axis G code can be used (G00, G01, G04, G90, G91, G94,
G95…)

-13-
6. Keyboard Operation Index

Stop:break off PLC program which is doing process


{use reset to X axle and Y axle ,program under doing will be about}

description :
*. Program under running can use “FHD” to pause
*. Program under running can use “RST” to break off
*. “# n” in RST command , have no effect in actually run

Axis move:move by assigned speed and displacement


{opposite to 2nd axle ,use 1000mm/min to move 10mm}

6.1.15 Keyboard scan


Valid version
Fresh version 9.00.21.0 or newer version
Release version 8.29 or newer version

Related element

Do keyboard scan

Description:when input signal OFF to ON,start keyboard scan,input


signal ON to OFF then stop keyboard scan。Sequence of data put is Low
Byte high,if the number of point O is 5,then 40 points will be input,the
way of permutation is
Input register Rin Bit 0.. 31 mapping point I 0..31
Input register Rin+1 Bit 0..7 mapping point I 32..39

-14-
6. Keyboard Operation Index

Keyboard at least need two continuous register,the contents are


R Base+0 :Bit 0~3 the number of point O (2~15),one point O can
scan 8 pointsI
R Base+0:Bit 8 Input register addressing mode , 0 for direct
addressing,1 for indirect addressing。
R Base+0:Bit 16 scan finished signal,as the input contents of
register have
been updated
R Base+1.. Under direct addressing mode, the scan result will be
put at R Base + 1, R Base + 2 contiguously; under indirectly addressing
mode, this register content is the base register number for scan result.

Volume:max keyboard 1,range 1,this function is effective in PIO5


version。

Operation instructions

Direct Addressing:use 5 point O to be control signal,it can scan 40


points of point I,its contents will put in R1025,R1026
{indirect address ,5x8=40 points ,I point status ,put in R1025,R1026}

Indirect Addressing:use 5 point O to be control signal,it can scan 40


points of I point,its contents will put in R2000,R2001

{indirect address ,5x8=40 points ,I point status ,put in R2000,R2001}

-15-
6. Keyboard Operation Index

6.1.16 Arithmetic Operation


PIC:

R2 = R2 + R1 R2 = R2 + constant

R2 = R2 – R1 R2 = R2 - constant

R2 = R2 × R1 R2 = R2 × constant

R2 = R2 ÷ R1 R2 = R2 ÷ constant

Description:when input ON signal,do arithmetic operation。Each


value of data register is integer,each value need2 Bytes。Range -32768 to
32767。
Volume:4096 registers。

6.1.17 Logic Operation


PIC:

R2 = R2 .AND. R1 R2 = R2 .AND. constant

R2 = R2 .OR. R1 R2 = R2 .OR. constant

R2 = R2 .XOR. R1 R2 = R2 .XOR. constant

Description:when input signal ON,do logic operation。Each value of


data register is 32 bit mode,each register use 32 bits data。In other word
each operation,do logic operation to 32-bit alone。

-16-
6. Keyboard Operation Index

Volume:4096 registers。
AND truth table OR truth table

R1 R2 result R1 R2 result

OFF OFF OFF OFF OFF OFF

OFF ON OFF OFF ON ON

ON OFF OFF ON OFF ON

ON ON ON ON ON ON

XOR truth table

R1 R2 result

OFF OFF OFF

OFF ON ON

ON OFF ON

ON ON OFF

6.1.18 Compare
PIC:

If R1 bigger than R2 If constant bigger than R2

If R1 smaller than R2 If constant smaller than R2

If R1 equal to R2 If constant equal toR2

Description:when input ON signal,do compare operation。When result


is truth then output ON;when result is false output OFF。When result is
false or input is OFF then output OFF。

-17-
6. Keyboard Operation Index

6.1.19 Move
PIC:

Move constant to R2 Move R1 to R2

Description:when input ON,then move。When move finished output


signal is ON。

6.1.20 Rotate
PIC:

Description:when input ON,do rotate calculate,and output 0


clockwise(CW),1 reverse(CCW)signal。
There are two explicit arguments,but there are three registers used
actually,
R1,R1+1,and R2。
R1 is current tool number, 1..n,R1+1is destination tool number, 1..n,
R2is the number of tool, n。
During the instruction executing, the current tool number will always
be round(module) into the range, 1..n, even its number has overflow.
This function will calculate rotation direction signal based on
shortest-path algorithm. 0 for CW, 1 for CCW. For example, the total tool
number is 8, current tool number is 4. When the destination tool number is 6,
then its output will be 1(CCW); when the destination tool number is 2, then
its output will be 0(CW).

6.1.21 Jump
PIC:

Description:when input signal ON,do Jump,program will restart at


which mark LABEL。

6.1.22 Jump Subroutine


PIC:

-18-
6. Keyboard Operation Index

Description:when input signal comes from ON,do Jump Subroutine,


program will jump to mark LABEL and run;when finish,then return to run
next command。

6.1.23 Return
PIC:

Description:end subroutine and return。

6.1.24 Label
PIC:

Description:Label is used by JMP or JSR。The length is 6 character。

6.1.25 End
PIC:

Description:end the Ladder program。

6.1.26 Fast PLC program scan


PIC:

Description:fast end the Ladder program。

-19-
6. Keyboard Operation Index

6.2 Valid version


Build 662 or newer version

6.3 Operation instructions


1. Fast scan PLC must be written in the head of program,use
-]FastEND[- element to end。
2. When run the program , program before -]FastEND[- will be
loaded to fast scan area
3. Program after -]FastEND[- and before -]END[- will be loaded to
normal scan area。
4. Program scan time in fast scan area is the same as motion time in
system parameter 3202
Program scan time in normal scan are is set by PLC scan time in
system parameter 3204。

-20-
6. Keyboard Operation Index

example
{program below will scan in high speed}

{program below will scan in normal speed}

-21-
7. LADDER example

7 LADDER example

7.1 Mode Selection


Selection of operation mode is composed by I30,I31,I32,in binary
system;because using turning logical switch in interface,need to recompose
the signal and use Register (R13) send to CNC controller,follow the table:

Input Output
I32 I31 I30 R13
1 1 1 7: HOME
1 1 0 3: MDI
1 0 1 5: INJOG
1 0 0 4: JOG
0 1 1 2: Auto
0 1 0 6: MPG(X: C16)
0 0 1 6: MPG(Y: C17)
0 0 0 6: MPG(Z: C18)

Mode select LADDER example :

-22-
7. LADDER example

7.2 Spindle Speed%


spindle speed% is compose by three input signals , I21,I22,I23,use
eight steps logical switch in interface,and output and input is related with
binary transfer to decimal。

Input Output
(4) (2) (1)
R15
I23 I22 I21
1 1 1 1+0+0+0=1: 50%
1 1 0 1+0+0+1=2: 60%
1 0 1 1+0+2+0=3: 70%
1 0 0 1+0+2+1=4: 80%
0 1 1 1+4+0+0=5: 90%
0 1 0 1+4+0+1=6: 100%
0 0 1 1+4+2+0=7: 110%
0 0 0 1+4+2+1=8: 120%

LADDER example

-23-
7. LADDER example

7.3 MPG and INJOG step percentage speed%


speed% is composed by to input signal I26,I27 and I28,I29,use four
steps logical switch on interface,I26&I28,I27&I29 is matched in wire。

Input Output
(2) (1)
R14&R18
I26.or.I28 I27.or.I29
1 1 1+0+0=1: *1 F0
1 0 1+0+1=2:*10 25%
0 1 1+2+0=3:*100 50%
0 0 1+2+1=4:*1000 100%

LADDER example

R14

R18

-24-
7. LADDER example

7.4 G01 cutting speed%


spindle speed% is composed by three input signal I21,I22,I23,use
eight steps logical switch on interface,and output and input is related with
binary transfer to decimal。

Input Output
(8) (4) (2) (1)
R16&R17
I19 I18 I17 I16
1 1 1 1 1+0+0+0+0=1: 10%
1 1 1 0 1+0+0+0+1=2: 20%
1 1 0 1 1+0+0+2+0=3: 30%
1 1 0 0 1+0+0+2+1=4: 40%
1 0 1 1 1+0+4+0+0=5: 50%
1 0 1 0 1+0+4+0+1=6: 60%
1 0 0 1 1+0+4+2+0=7: 70%
1 0 0 0 1+0+4+2+1=8: 80%
0 1 1 1 1+8+0+0+0=9: 90%
0 1 1 0 1+8+0+0+1=10: 100%
0 1 0 1 1+8+0+2+0=11: 110%
0 1 0 0 1+8+0+2+1=12: 120%
0 0 1 1 1+8+4+0+0=13: 130%
0 0 1 0 1+8+4+0+1=14: 140%
0 0 0 1 1+8+4+2+0=15: 150%
0 0 0 0 1+8+4+2+1=16: 160%

LADDER example

{JOG steps(JOG steps and G00 steps us the same turn button)}

-25-
7. LADDER example

7.4.1 PLC basic circuit design


1. single pulse produced circuit when open

produce a pulse of One-Scan Cycle signal,because A0 and A1 are b


contact,make A2 ON,when scan to second line,output of A1 also ON,
when circulate to then next scan cycle,in line one,because A1 is B
contact,it will make output of A2 become OFF,so A2 is ON only in
one-scan cycle。This circuit always use ─( ^ )─ and ─( v )─ command to
displace。

The circuit and cycle time are below

If change the input A0 to point I in this circuit,output of point I is


single pulse wave(One-Scan cycle)

2. 自保持線路

自保持線路使用在具有有復歸型按扭開關,the switch OFF to ON


and return to OFF。
When this I0 circuit OFF to ON,because I1 is b contact,then O0 coil
turn ON。Also let the path of O0 contact , I1 contact and O0 coil turn ON。
So if I0 return to OFF this path is also ON,only can use I1 button to let this
circuit turn OFF。

3. momentary pushbutton switch instead circuit of alternative


pushbutton switch

momentary pushbutton switch can be like circuit of alternative


pushbutton switch by ladder。When click button once then output to ON
status,click the button again,then output to OFF status,when click I40,
let A10 produce a one-scan cycle。In the first one-scan cycle,A10 circuit is
a contact,the b contact of O40 turn ON。In second scan cycle,the path of
b contact of A10 circuit and a contact of O40 turn ON,let O40 is in the ON
status。When click I40 again,let A10 produce a scan cycle again,a contact

-26-
7. LADDER example

of A10 circuit , the path of b contact of O40 and b contact of A10 circuit,let
output of O40 turn OFF。(C20 is MPG simulation)。
This circuit combine with single pulse wave and 自保線。

4. use MSD to design returned button instead locked circuit

if click the P.B(I48),the point O(O30) of cool liquid motor turn ON,
O30 turn OFF when click again。
Ⅰ click the button,O30 ON
Ⅱ loose the button,O30 ON
Ⅲ click the button again,O30 OFF
Ⅳ loose the button again,O30 OFF

LADDER examples :

-27-
7. LADDER example

7.5 MPG Simulation C20


At auto mode,this bit ON,after process starting,G00 G01 G02 G03
FEEDRATE OVERRIDE is decided by MPG rotate speed,when speed up
the machine move fast,MPG stops,the machine stops,it fits to process test
of machine。

7.6 Dry Run C42


When FLAG ON,the speed of doing G CODE is decided by Dry Run。

-28-
7. LADDER example

7.7 Optional Stop C44


When this FLAG ON,when doing to M01,controller goes to pause
status(B-STOP),when FLAG not ON,when dong to M01,controller
will ignore
M01,continue to do next BLOCK。

7.8 Optional Skip C41


When FLAG ON,when there is a skip sign ” \ ” in process program,
it will skip this line,do next BLOCK。

7.9 Single Block C40


When FLAG ON,G CODE stop when finish doing a BLOCK,need to
click Cycle Start and start doing next BLOCK。

-29-
7. LADDER example

7.10 Machine Lock C43


When FLAG ON,program will run,but the machine does not move,
usually use in the program check。

-30-
7. LADDER example

7.11 Spindle turn , reverse and stop


Spindle use frequency converter,turn to use O6,reverse to use O7,
can’t reverse when turning。
Spindle can’t turn and need to stop in the situation
1. click Reset or the program do to M05,M02 and M30。
2. lathe chuck is not closed,miller can’t turn and reverse when the
tool does not tight in miller。
Can’t stop spindle when processing (S0),but can use M05 to stop。
{spindle stop}

Interface button A57 stop the spindle,A4 is Reset&M02&M30 stop,


O60 is reversed mutual lock A105(M05 spindle stop)A103(M03 spindle
clockwise)A113(M13 spindle clockwise and cutting liquid ON)
{spindle clockwise S0 processing and gripper A21 open ,can not clockwise and reverse}

Reversed LADDER is the same as clockwise turn,only different in the


mutual lock point O。

-31-
7. LADDER example

7.12 Direction of chuck and gripper


there are 外爪和內爪 in lathe grippers,so need to set the direction of
gripper,the setup can use PLC register to set ,usually use R82,or setup
from the interface。Because chuck use 5 port 2 position solenoid valve,
therefore open and close to the O point of chuck need to ON a period of
time,use TIME cut OFF。
Gripper use MSD

{when chuck is close ,use TM3(close) TM4(open)}

O49 is the direction of gripper

-32-
7. LADDER example

-33-
7. LADDER example

7.13 JOG button on interface


Click the direction key on JOG MODE,LADDER let FLAG ON,
controller will produce the movement on this direction,there is a fast key
C23 in the middle of direction,the time of this FLAG ON when movement
of machine in speed of G00,if use standard second interface of our
company,the input of lathe and miller
below next list:
direction X+ X- Y+ Y- Z+ Z-
C BIT C06 C07 C08 C09 C10 CAA
Lathe I65 I71 I64 I70 I69 I67
Miller I67 I69 I71 I65 I64 I70

-34-
7. LADDER example

7.14 Cycle Start C0 and Feed Hold C1


In Auto mode and MDI,C0 ON will start process or do MDI
command,C0 only receive One short signal。Processing S0 will turn ON。
In the process,C1 ON will pause the process at present,S1 will turn
ON when pause。If the single block pause then S2 will turn ON。

7.15 Origin return


In origin mode R13 = 7,when click JOG button in each axis,the
controller will use parameter 861~880 to find HOME direction ,and
parameter 821~840 find origin speed to find HOME
HOME DOG read from IO,PLC need to set C BIT of each axis。If find
HOME OK,S BIT will ON when controller find Home ok,below next list:
AXIS X axis Y axis Z axis
Home dog C79 C80 C81
Home ok S16 S17 S18

-35-
7. LADDER example

7.16 Positive negative limit of XYZ (Over Travel)


If the limit of each FLAG ON,controller will produce Feed Hold
automatically,and refuse jog command and MPG command on that
direction,only can use the negative direction to bring out。Limit of each axis
flag C
below the list:
Description OT X+ OT X- OT Y+ OT Y- OT Z+ OT Z-
C Bit C50 C51 C52 C53 C54 C55

7.17 Emergency Stop C36


When E.STOP pushed down,PLC should trigger this FLAG,controller
will stop all the machine,go to Not Ready status until this flag remove,
inside of controller will produce a Reset action,return to Ready status。

-36-
7. LADDER example

7.18 M CODE
When processing program doing to M CODE,will put contents of M
CODE into R1 Register。CNC will send S29 BIT(M code Read) to tell
LADDER,until wait for LADDER(A72) send the finish signal and continue
next block。
A70 for M CODE Start
A71 for M CODE Execute
A72 for M CODE Finish
A73 for M CODE Wait,wait some I/O moved,finish M code until any
I point ON

-37-

Das könnte Ihnen auch gefallen