You are on page 1of 46

Open CNC

PLC development tools


Operation manual

by : SYNTEC

date : 2002/03/26

ver : 1.3
SYNTEC Open CNC PLC development tools operation manual

版本更新記錄
項次 更改內容紀錄 更改日期 作者 更改後版本
01 初版定稿 2002/03/26 V1.3

-1-
SYNTEC Open CNC PLC development tools operation manual

menu

一 FUNCTION INDEX 5

二 COMMAND INDEXES 7

三 EDIT MAIN SCREEN 7

四 PARAMETER INPUT FIELD 7

五 KEYBOARD OPERATION INDEX 8

MLC element command instruction 9


Normal Open Contact 9
Normal Close Contact 9
Connector 10
Normal Open Coil 10
Normal Closed Coil 10
Positive Edge Triggered Coil 10
Negative Edge Triggered Coil 11
Latch Coil 11
Unlatch Coil 11
Counter 12
Ring Counter 12
Counter Reset 13
Timer 13
PLC Axis 14
Keyboard scan 17
Arithmetic Operation 19
Logic Operation 20
Compare 21
Move 22
Rotate 22
Jump 23
Jump Subroutine 23
Return 23
Label 23
End 24

-2-
SYNTEC Open CNC PLC development tools operation manual

FAST PLC PROGRAM SCAN 24

Valid version 24

Operation instructions 24

LADDER EXAMPLE 26

(一) mode selection 26

(二) spindle speed% 27

(三) MPG and INJOG step percentage speed% 28

(四) G01 cutting speed% 29

(五) MPG Simulation C20 34

(六) Dry Run C42 34

(七) Optional Stop C44 35

(八) Optional Skip C41 35

(九) Single Block C40 36

(十) Machine Lock C43 36

(十一) spindle turn , reverse and stop 37

(十二) direction of chuck and gripper 38

(十三) JOG button on interface 40

(十四) Cycle Start C0 and Feed Hold C1 42

(十五) origin return 43

(十六) positive negative limit of XYZ (Over Travel) 44

(十七) Emergency Stop C36 44

(十八) M CODE 45

-3-
SYNTEC Open CNC PLC development tools operation manual

MLC Edit for windos

Mlc edit five area


edit Menu Command

{MB:output directly}

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

Command edit

-4-
SYNTEC Open CNC PLC development tools operation manual

一 Function Index
13 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。

-5-
SYNTEC Open CNC PLC development tools operation manual

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。

9
. paste

Consult NO.8

10. Insert

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

12. delete

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

13. grammar check

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

-6-
SYNTEC Open CNC PLC development tools operation manual

二 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

三 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。

四 Parameter input field


After enter command,assign to arrow point

-7-
SYNTEC Open CNC PLC development tools operation manual

五 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。

-8-
SYNTEC Open CNC PLC development tools operation manual

MLC element command instruction

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。

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。

-9-
SYNTEC Open CNC PLC development tools operation manual

Connector

PIC:

Horizontal connector Vertical connector

Description:connect with other elemant。

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。

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。

Positive Edge Triggered Coil

PIC:

-10-
SYNTEC Open CNC PLC development tools operation manual

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。

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。

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。

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

-11-
SYNTEC Open CNC PLC development tools operation manual

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。

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。

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

-12-
SYNTEC Open CNC PLC development tools operation manual

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 register
or constant;downward counter beginning value is the value of register or
constant,target value is 0。
Volume:256 counters、256 registers。

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。

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

-13-
SYNTEC Open CNC PLC development tools operation manual

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。

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 R2 = R1 + R2
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)

-14-
SYNTEC Open CNC PLC development tools operation manual

Volume:max axis 20,range 1~20,actually axis need depend on usability axis in CNC
parameter。

Operation instructions

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

{set X axle and Y axle to PLC}

Description :
*. When serve axis is set to PLC axis , can’t do command to that axis in AUTO
program , or two axial command will add together , appear the wrong move
trajectory .

Implement:do process program in assigned PLC axis

{do O1234 in Y axle}

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

-15-
SYNTEC Open CNC PLC development tools operation manual

Description :
*.when doing PLC axis program ,please rising edge trigger , to start PLC axis ,
prevent to do the same PLC axis program many times.
z 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…)

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

-16-
SYNTEC Open CNC PLC development tools operation manual

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

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

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

-17-
SYNTEC Open CNC PLC development tools operation manual

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}

-18-
SYNTEC Open CNC PLC development tools operation manual

Arithmetic Operation

PIC:

R2 = R2 + R1 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。

-19-
SYNTEC Open CNC PLC development tools operation manual

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。
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

-20-
SYNTEC Open CNC PLC development tools operation manual

XOR truth table

R1 R2 result

OFF OFF OFF

OFF ON ON

ON OFF ON

ON ON OFF

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。

-21-
SYNTEC Open CNC PLC development tools operation manual

Move

PIC:

Move constant to R2 Move R1 to R2

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

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

-22-
SYNTEC Open CNC PLC development tools operation manual

Jump

PIC:

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


LABEL。

Jump Subroutine

PIC:

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。

Return

PIC:

Description:end subroutine and return。

Label

PIC:

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

-23-
SYNTEC Open CNC PLC development tools operation manual

End

PIC:

Description:end the Ladder program。

Fast PLC program scan


PIC:

Description:fast end the Ladder program。

Valid version

Build 662 or newer version

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
5. Program scan time in normal scan are is set by PLC scan time in system
parameter 3204。

-24-
SYNTEC Open CNC PLC development tools operation manual

example
{program below will scan in high speed}

{program below will scan in normal speed}

-25-
SYNTEC Open CNC PLC development tools operation manual

LADDER example

(一) 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 :

-26-
SYNTEC Open CNC PLC development tools operation manual

(二) 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

-27-
SYNTEC Open CNC PLC development tools operation manual

(三) 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

-28-
SYNTEC Open CNC PLC development tools operation manual

(四) 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

-29-
SYNTEC Open CNC PLC development tools operation manual

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

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)

-30-
SYNTEC Open CNC PLC development tools operation manual

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 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 自保線。

-31-
SYNTEC Open CNC PLC development tools operation manual

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

-32-
SYNTEC Open CNC PLC development tools operation manual

LADDER examples :

-33-
SYNTEC Open CNC PLC development tools operation manual

(五) 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。

(六) Dry Run C42

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

-34-
SYNTEC Open CNC PLC development tools operation manual

(七) 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。

(八) Optional Skip C41

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

-35-
SYNTEC Open CNC PLC development tools operation manual

(九) Single Block C40

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

(十) Machine Lock C43

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

-36-
SYNTEC Open CNC PLC development tools operation manual

(十一) 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。

-37-
SYNTEC Open CNC PLC development tools operation manual

(十二) 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

-38-
SYNTEC Open CNC PLC development tools operation manual

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

O49 is the direction of gripper

-39-
SYNTEC Open CNC PLC development tools operation manual

(十三) 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

-40-
SYNTEC Open CNC PLC development tools operation manual

-41-
SYNTEC Open CNC PLC development tools operation manual

(十四) 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。

-42-
SYNTEC Open CNC PLC development tools operation manual

(十五) 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

-43-
SYNTEC Open CNC PLC development tools operation manual

(十六) 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

(十七) 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。

-44-
SYNTEC Open CNC PLC development tools operation manual

(十八) 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

-45-

You might also like