You are on page 1of 687

Yaskawa Siemens CNC Series

Programming Manual
Job Planning

MANUAL No. NCSIE-SP02-07


This manual is made by quoting a document of the SINUMERIK series which is a CNC system
from Siemens, adding the necessary information for Yaskawa Siemens CNC series, and
deleting the unnecessary information.

Therefore, this manual includes also the content about a product without a direct relationship
with Yaskawa Siemens CNC series. Following functions and related variables are not available
for Yaskawa Siemens CNC series.
Punching and nibbling
Learn compensation characteristics (QECLRNON, QECLRNOF)
Extended stop and retract
Axis container (AXCTWE, AXCTWED)
For actually available functions in your machine, Please refer to the documents published by the
machine manufacturer.

This manual is intended for both of Yaskawa Siemens 840DI and Yaskawa Siemens 830DI.
In this manual, the functional differences of these two models are not taken into account in its
description, thus please refer to the catalog (MANUAL No.: NCKAE-PS41-01) for available
basic functions and possible optional functions of each model.

In this manual, the names of documents for SINUMERIK series are included.
The English documents currently prepared for Yaskawa Siemens CNC series are shown in the
following table.
Manual Name Manual Number
Yaskawa Siemens CNC series (Catalog) NCKAE-PS41-01
Yaskawa Siemens CNC series Operating Manual for Standard HMI NCSIE-SP02-24
Yaskawa Siemens CNC series Operating Manual for Machining Center NCSIE-SP02-25
Yaskawa Siemens CNC series Programming Manual Job planning NCSIE-SP02-07
(This manual)
Yaskawa Siemens CNC series Programming Manual NCSIE-SP02-20
for Machining Center
Yaskawa Siemens CNC series Programming Manual for Lathe NCSIE-SP02-21
Yaskawa Siemens CNC series Maintenance Manual NCSIE-SP02-10
Yaskawa Siemens CNC series Diagnostics Guide (This manual) NCSIE-SP02-12
Yaskawa Siemens CNC series Maintenance Manual NCSIE-SP02-19
Serviceman Handbook
SINUMERIK Operator's Guide HMI Advanced 6FC5398-2AP10-0BA0
If you have any questions, comments, suggestions, or corrections for the above-mentioned
documents, please contact our office shown in a back cover or a regional service office.

The Internet address of the web site for our company and products is as follows:
http://www.siemens.co.jp/

For EU Declaration of Conformity, please ask to the manufacturer of your machine.


3UHIDFH 

)OH[LEOH1&SURJUDPPLQJ 

6XEURXWLQHV0DFURV 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QWUROVWDWHV6RPHV\VWHPYDULDEOHVFDQQRWEH
DVVLJQHGYDOXHV
6XPPDU\RIV\VWHPYDULDEOHV
6SHFLDOLGHQWLILHUVRIV\VWHPYDULDEOHVDOZD\VEHJLQZLWKDVLJQ7KHVSHFLILFQDPHVWKHQ
IROORZ

VWOHWWHU 0HDQLQJ
0 0DFKLQHGDWD
6 6HWWLQJGDWD
7 7RROPDQDJHPHQWGDWD
3 3URJUDPPHGYDOXHV
$ &XUUHQWYDOXHV
9 6HUYLFHGDWD
 
QGOHWWHU 0HDQLQJ
1 1&.JOREDO
& &KDQQHOVSHFLILF
$ $[LVVSHFLILF

([DPSOH$$B,0
0HDQLQJ&XUUHQWD[LVVSHFLILFYDOXHLQWKHPDFKLQHFRRUGLQDWHV\VWHP

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )OH[LEOH1&SURJUDPPLQJ
 9DULDEOHGHILQLWLRQ '()XVHUGHILQHGYDULDEOHV/8'*8'38' 

 9DULDEOHGHILQLWLRQ '()XVHUGHILQHGYDULDEOHV/8'*8'38' 

)XQFWLRQ
,QDGGLWLRQWRWKHSUHGHILQHGYDULDEOHVSURJUDPPHUVFDQGHILQHDQGLQLWLDOL]HWKHLURZQ
YDULDEOHV
/RFDOYDULDEOHV /8' DUHRQO\YDOLGLQWKHSURJUDPZKHUHWKH\DUHGHILQHG
*OREDOYDULDEOHV *8' DUHYDOLGLQDOOSURJUDPV
0DFKLQHGDWDDUHXVHGWRUHGHILQHWKHORFDOXVHUYDULDEOHV /8' GHILQHGLQWKHPDLQ
SURJUDPDVSURJUDPJOREDOXVHUYDULDEOHV 38' 
0DFKLQHPDQXIDFWXUHU
6HHPDFKLQHPDQXIDFWXUHU
VVSHFLILFDWLRQV

3URJUDPPLQJ
9DULDEOHW\SH,17
DEF INT name
RU
DEF INT name=value
9DULDEOHW\SH5($/
DEF REAL name
RU
DEF REAL name1,name2=3,name4
RU
DEF REAL name[array_index1,array_index2]
9DULDEOHW\SH%22/
DEF BOOL name
9DULDEOHW\SH&+$5
DEF CHAR name
RU
DEF CHAR name[array_index]=("A","B",)
9DULDEOHW\SH675,1*
DEF STRING[string_length] name
9DULDEOHW\SH$;,6
DEF AXIS name
RU
DEF AXIS name[array_index]
9DULDEOHW\SH)5$0(
DEF FRAME name

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)OH[LEOH1&SURJUDPPLQJ 
9DULDEOHGHILQLWLRQ '()XVHUGHILQHGYDULDEOHV/8'*8'38' 

 1RWH
,IDYDULDEOHLVQRWDVVLJQHGDYDOXHRQGHILQLWLRQWKHV\VWHPVHWV]HURDVWKHGHIDXOW
9DULDEOHVPXVWEHGHILQHGDWWKHEHJLQQLQJRIWKHSURJUDPEHIRUHWKH\DUHXVHG7KH
GHILQLWLRQPXVWEHPDGHLQDVHSDUDWHEORFNRQO\RQHYDULDEOHW\SHFDQEHGHILQHGSHUEORFN

3DUDPHWHU

INT 9DULDEOHW\SHLQWHJHULHZKROHQXPEHU
REAL 9DULDEOHW\SHUHDOLHIDFWLRQDOQXPEHUZLWKGHFLPDOSRLQW
BOOL 9DULDEOHW\SH%RROHDQLHRU 758(RU)$/6( 
CHAR 9DULDEOHW\SHFKDULH$6&,,FRGHGFKDUDFWHU
WR 
STRING 9DULDEOHW\SHVWULQJLHFKDUDFWHUVWULQJ
AXIS 9DULDEOHW\SHD[LVLHD[LVDGGUHVVHVDQGVSLQGOHV
FRAME 9DULDEOHW\SHIUDPHLHJHRPHWULFGDWD

([DPSOH

9DULDEOHW\SH 'HVFULSWLRQ
,17 
'(),17180%(5 7KLVFUHDWHVDYDULDEOHRIW\SHLQWHJHUZLWKWKH
QDPH180%(5
6\VWHPLQLWLDOL]HVZLWK]HUR
'(),17180%(5  7KLVFUHDWHVDYDULDEOHRIW\SHLQWHJHUZLWKWKH
QDPH180%(57KHV\VWHPLQLWLDOL]HVWKH
YDULDEOHZLWK
5($/ 
'()5($/'(37+ 7KLVFUHDWHVDYDUL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())5$0(%(9(/B 9DULDEOHVRIW\SH)5$0(KDYHQDPHVOLNH
%(9(/B


 1RWH
$YDULDEOHRIW\SH$;,6FDQFRQWDLQDQD[LVLGHQWLILHUDQGDVSLQGOHLGHQWLILHURIDFKDQQHO

 1RWH
$[LVQDPHVZLWKDQH[WHQGHGDGGUHVVPXVWEHHQFORVHGLQSDUHQWKHVHV

([DPSOH5HGHILQHORFDO /8' DQGSURJUDPJOREDOXVHUYDULDEOHV 38' 


,IWKH\DUHGHILQHGLQWKHPDLQSURJUDPWKH\ZLOODOVREHYDOLGDWDOOOHYHOVRIWKH
VXESURJUDPVFDOOHG7KH\DUHFUHDWHGZLWKSDUWSURJUDPVWDUWDQGGHOHWHGZLWKSDUWSURJUDP
HQGRU5(6(7
,IPDFKLQHGDWD01B/8'B(;7(1'('B6&23(LVVHWLWLVQRWSRVVLEOHWRGHILQHDYDULDEOH
ZLWKWKHVDPHQDPHLQWKHPDLQDQGVXESURJUDPV

$MN_LUD_EXTENDED_SCOPE=1
PROC MAIN 0DLQSURJUDP
DEF INT VAR1 38'GHILQLWLRQ
... 6XESURJUDPFDOO
SUB2
...
M30

PROC SUB2 6XESURJUDP68%


DEF INT VAR2 /8''(),1,7,21
...
IF (VAR1==1) 5HDG38'

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)OH[LEOH1&SURJUDPPLQJ 
9DULDEOHGHILQLWLRQ '()XVHUGHILQHGYDULDEOHV/8'*8'38' 

VAR1=VAR1+1 5HDG ZULWH38'


VAR2=1 :ULWH/8'
ENDIF 6XESURJUDPFDOO
SUB3
...
M17

PROC SUB3 6XESURJUDP68%


...
IF (VAR1==1) 5HDG38'
VAR1=VAR1+1 5HDG ZULWH38'
VAR2=1 (UURU/8'IURP68%QRWNQRZQ
ENDIF
...
M17

9DULDEOHQDPHV
$YDULDEOHQDPHFRQVLVWVRIXSWRFKDUDFWHUV7KHILUVWWZRFKDUDFWHUVPXVWEHDOHWWHURU
DQXQGHUVFRUH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F REAL NAME[n,m]
RU
DEF AXIS NAME[n,m] 
RU
DEF FRAME NAME[n,m] 
RU
DEF STRING[string_length] NAME[m]
RU
DEF BOOL[n,m]
x ,QLWLDOL]DWLRQZLWKYDOXHOLVWV6(7
$UUD\GHILQLWLRQRSWLRQV
DEF Type VARIABLE = SET(VALUE)
DEF Type ARRAY[n,m] = SET(VALUE, value, )
RU
DEF Type VARIABLE = Value
DEF Type ARRAY[n,m] = (value, value, )

 1RWH
6(7LVRSWLRQDOLQWKHDUUD\GHILQLWLRQ

,QLWLDOL]LQJGXULQJWKHSURJUDPUXQ
ARRAY[n,m]= SET(value, value, value,)
ARRAY[n,m]= SET(expression, expression, expression,)
x ,QLWLDOL]DWLRQZLWKWKHVDPHYDOXHV5(3
$UUD\GHILQLWLRQRSWLRQV
:KHQArrayYDULDEOHVDUHFUHDWHG
DEF Type ARRAY[n,m] = REP(value)LQLWLDOL]HVDOOHOHPHQWV:LWK
DEF Type ARRAY[n,m] = REP(value, no.arrayElements)RQO\WKHQXPEHURI
DUUD\HOHPHQWVGHILQHGLQ"No.arrayElements"LVLQLWLDOL]HGZLWK"Value"
,QLWLDOL]DWLRQEHJLQVDWDUUD\LQGH[7KHUHPDLQLQJYDULDEOHHOHPHQWVDUHLQLWLDOL]HGZLWK
]HUR,I"No.arrayElements" = 0WKHHQWLUHYDULDEOHDUUD\LVLQLWLDOL]HGZLWK]HURDVIRU
H[DPSOHIRUDOODUUD\HOHPHQWVRIvarName
DEF REAL varName[30] =REP(3.5, 0)

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )OH[LEOH1&SURJUDPPLQJ
 $UUD\GHILQLWLRQV '()6(75(3 

 1RWH
9DULDEOHVRIW\SH)5$0(FDQQRWEHLQLWLDOL]HG
,IDYDOXHVPDOOHUWKDQ]HURRUODUJHUWKDQWKHQXPEHURIDUUD\HOHPHQWVLVSURJUDPPHGDV
WKHUDQJHD9DOXHUDQJHH[FHHGHGDODUPLVRXWSXW

,QLWLDOL]LQJGXULQJWKHSURJUDPUXQ
ARRAY[n,m] = REP(value)
ARRAY[n,m] = REP(expression)
ARRAY[n,m] = REP(value, no.arrayElements)
ARRAY[n,m] = REP(expression, no.arrayElements)
,IWKHUDQJHGHILQLWLRQ"No.arrayElements" = 0WKHFXUUHQWYDOXHVRIDOODUUD\YDULDEOHV
UHPDLQXQFKDQJHGHJ
varName [12] =REP(44.5, 0)

 1RWH
9DULDEOHVRIW\SH)5$0(DUHSHUPLVVLEOHDQGFDQEHLQLWLDOL]HGYHU\VLPSO\LQWKLVZD\

3DUDPHWHUV

DEF Variable type $UUD\GHILQLWLRQ


SET VALUE or expression ,QLWLDOL]DWLRQZLWKYDOXHOLVWVIRUWKHDUUD\GHILQLWLRQRULQWKH
SURJUDPH[HFXWLRQ
REP VALUE or expression ,QLWLDOL]DWLRQZLWKWKHVDPHYDOXHVIRUWKHDUUD\GHILQLWLRQRULQ
WKHSURJUDPH[HFXWLRQ
REP VALUE, no.arrayElem. ,QLWLDOL]DWLRQZLWKWKHVDPHYDOXHVIRUDFHUWDLQQXPEHURIDUUD\
HOHPHQWVWKDWDUHWREHRYHUZULWWHQ$YDOXHRI]HURIRUWKH
VHFRQGSDUDPHWHUHJ5(3  PHDQVWKDWLQLWLDOL]DWLRQ
YDOXHVDUHQRWRYHUZULWWHQ
CHAR NAME[n,m] 9DULDEOHW\SH
INT NAME[n,m] &+$5,17(*(55($/$;,6)5$0(%22/ 
REAL NAME[n,m]
AXIS NAME[n,m]
FRAME NAME[n,m]
BOOL[n,m]
STRING[string_length] NAME[m] 'DWDW\SH675,1*FDQRQO\EHGHILQHGIRUGLPHQVLRQDODUUD\V
7KHVWULQJOHQJWKLVVSHFLILHGDIWHUWKHGDWDW\SH6WULQJ
NAME 9DULDEOHQDPH
Type VARIABLE 9DULDEOHW\SH
&+$5,17(*(55($/$;,6)5$0(%22/ 
ARRAY[n,m]= SET(value, ,QLWLDOL]DWLRQRIDOOHOHPHQWVRIDQDUUD\ZLWKWKHOLVWHGYDOXHVIRU
value,) WKHDUUD\GHILQLWLRQ
TYPE ARRAY[n,m] = REP(value) ,QLWLDOL]DWLRQRIDOOHOHPHQWVRIDQDUUD\ZLWKWKHVDPHYDOXHIRU
WKHDUUD\GHILQLWLRQ

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)OH[LEOH1&SURJUDPPLQJ 
$UUD\GHILQLWLRQV '()6(75(3 

ARRAY[n,m]= SET(value, value, ,QLWLDOL]DWLRQRIDOOHOHPHQWVRIDQDUUD\ZLWKWKHOLVWHGYDOXHVLQ


..) ARRAY[n,m] = WKHSURJUDPH[HFXWLRQ
SET(expression, ...)
ARRAY[n,m]= REP(value) ,QLWLDOL]DWLRQRIDOOHOHPHQWVRIDQDUUD\ZLWKWKHVDPHYDOXHLQ
ARRAY[n,m]= REP(expression) WKHSURJUDPH[HFXWLRQ
ARRAY[n, m] $UUD\LQGH[
n $UUD\VL]HIRUVWGLPHQVLRQ
m $UUD\VL]HIRUQGGLPHQVLRQ
Maximum array size HJ'(),171$0(>@
No.arrayElem. 1XPEHURIDUUD\HOHPHQWVWREHRYHUZULWWHQE\WKH5(3
FRPPDQGZLWK9DOXH$OODUUD\HOHPHQWVDUHRYHUZULWWHQZLWK
9DOXH
$UUD\VZLWKYDULDEOHVRIW\SH675,1*FDQRQO\EHGLPHQVLRQDO
$UUD\BLQGH[>QP@
(OHPHQWVRIDQDUUD\DUHDFFHVVHGYLDWKHDUUD\LQGH[7KHDUUD\HOHPHQWVFDQHLWKHUEH
UHDGRUDVVLJQHGYDOXHVXVLQJWKLVDUUD\LQGH[
7KHILUVWDUUD\HOHPHQWVWDUWVZLWKLQGH[>@IRUH[DPSOHIRUDUUD\VL]H>@WKHPD[LPXP
SRVVLEOHDUUD\LQGH[LV>@

$UUD\LQGH[
>QP@
P

    P



    P


Q Q Q Q 
 Q P

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )OH[LEOH1&SURJUDPPLQJ
 $UUD\GHILQLWLRQV '()6(75(3 

0HPRU\UHTXLUHPHQWV

9DULDEOHW\SH 0HPRU\UHTXLUHPHQWSHUHOHPHQW
%22/ E\WH
&+$5 E\WH
,17 E\WHV
5($/ E\WHV
675,1* 6WULQJOHQJWK
)5$0( E\WHVGHSHQGLQJRQWKHQXPEHURID[HV
$;,6 E\WHV


 1RWH
7KHPD[LPXPDUUD\VL]HGHWHUPLQHVWKHVL]HRIWKHPHPRU\DUHDVLQZKLFKWKHYDULDEOH
PHPRU\LVPDQDJHG,WVKRXOGQRWEHVHWKLJKHUWKDQDFWXDOO\UHTXLUHG
'HIDXOWE\WHV
,IQRODUJHDUUD\VDUHGHILQHGVHOHFWE\WHV

([DPSOH'HILQLWLRQRI%22/DUUD\V
*OREDOXVHUGDWDPXVWFRQWDLQ3/&PDFKLQHGDWDIRUVZLWFKLQJWKHFRQWURORQRII
([DPSOH'HILQLWLRQRIDUUD\VZLWKPD[LPXPDUUD\VL]HIRUWKHVWDQGQGGLPHQVLRQ
DEF INT NAME[32767,32767]

([DPSOH,QLWLDOL]DWLRQRIFRPSOHWHYDULDEOHDUUD\V
7KHFXUUHQWDVVLJQPHQWLVVKRZQLQWKHGUDZLQJ

N10 DEF REAL ARRAY1[10,3] = SET(0, 0, 0, 10, 11, 12, 20, 20, 20, 30, 30, 30, 40, 40,
40,)
N20 ARRAY1[0,0] = REP(100)
N30 ARRAY1[5,0] = REP(-100)
N40 ARRAY1[0,0] = SET(0, 1, 2, -10, -11, -12, -20, -20, -20, -30, , , ,
-40, -40, -50, -60, -70)
N50 ARRAY1[8,1] = SET(8.1, 8.2, 9.0, 9.1, 9.2)

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)OH[LEOH1&SURJUDPPLQJ 
$UUD\GHILQLWLRQV '()6(75(3 

$UUD\LQGH[ 

1,QLWLDOL]DWLRQIRU 11,QLWLDOL]DWLRQZLWK  11 ,QLWLDOL]DWLRQZLWK


 GHILQLWLRQ LGHQWLFDOYDOXH YDULRXVYDOXHV

        
         
         
         
         
         
         
         
         
         
         
7KHDUUD\HOHPHQWV>@WR 7KHDUUD\HOHPHQWV>@WR
>@KDYHEHHQLQLWLDOL]HG >@KDYHEHHQLQLWLDOL]HG
ZLWKWKHGHIDXOWYDOXH   ZLWKWKHGHIDXOWYDOXH  
7KHDUUD\HOHPHQWV>@WR

>@KDYHQRWEHHQ
FKDQJHG




,QLWLDOL]DWLRQZLWKYDOXHOLVWVIRUWKHDUUD\GHILQLWLRQ6(7
x $VPDQ\DUUD\HOHPHQWVDUHDVVLJQHGDVLQLWLDOL]DWLRQYDOXHVDUHSURJUDPPHG
x $UUD\HOHPHQWVZLWKRXWYDOXHV JDSVLQWKHYDOXHOLVW DUHDXWRPDWLFDOO\LQLWLDOL]HGWR
x )RUYDULDEOHVRIW\SH$;,6JDSVLQWKHYDOXHOLVWDUHQRWSHUPLWWHG
x 3URJUDPPLQJPRUHYDOXHVWKDQH[LVWLQWKHUHPDLQLQJDUUD\HOHPHQWVWULJJHUVDQDODUP
([DPSOH
DEF REAL ARRAY[2,3]=(10, 20, 30, 40)

,QLWLDOL]DWLRQZLWKYDOXHOLVWVLQWKHSURJUDPH[HFXWLRQ6(7
x ,QLWLDOL]DWLRQLVWKHVDPHDVLQDUUD\GHILQLWLRQ
x ([SUHVVLRQVDUHSRVVLEOHYDOXHVLQWKLVFDVHWRR
x ,QLWLDOL]DWLRQVWDUWVDWWKHSURJUDPPHGDUUD\LQGH[HV9DOXHVFDQDOVREHDVVLJQHG
VHOHFWLYHO\WRVXEDUUD\V
([DPSOH$VVLJQPHQWRIH[SUHVVLRQV
DEF INT ARRAY[5, 5]
ARRAY[0,0] = SET(1, 2, 3, 4, 5)

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )OH[LEOH1&SURJUDPPLQJ
 $UUD\GHILQLWLRQV '()6(75(3 

ARRAY[2,3] = SET(VARIABLE, 4*5.6)


7KHD[LVLQGH[RID[LVYDULD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VPXVWEHVWDWHG
DEF INT ARRAY[DIM1,DIM2] DVFRQVWDQWYDOXHV

ARRAY[DIM1-1,DIM2-1]=5
Axis assignment with axis variables
X1=100 X2=200 'LUHFWSURJUDPPLQJ
DEF AXIS AXVAR1 AXVAR2 ,QGLUHFWSURJUDPPLQJ
AXVAR1=(X1) AXVAR2=(X2) 'HILQLWLRQRIYDULDEOHV
AX[AXVAR1]=100 AX[AXVAR2]=200 $VVLJQPHQWRIWKHD[LVQDPHV
WUDYHUVDORID[HVWKDWDUHVWRUHG
LQWKHYDULDEOHVWRRU
Interpolation parameters with axis
variables
G2 X100 I20 'LUHFWSURJUDPPLQJ

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)OH[LEOH1&SURJUDPPLQJ 
,QGLUHFWSURJUDPPLQJ

DEF AXIS AXVAR1=X ,QGLUHFWSURJUDPPLQJ


G2 X100 IP[AXVAR1]=20 'HILQLWLRQDQGDVVLJQPHQWRIWKHD[LVQDPH
,QGLUHFWSURJUDPPLQJRIWKHFHQWHU
Indirect subroutine call
CALL "L" << R10 &DOORIWKHSURJUDPZKRVHQXPEHULVLQ5


 1RWH
5SDUDPHWHUVFDQDOVREHFRQVLGHUHGGLPHQVLRQDODUUD\VZLWKDEEUHYLDWHGQRWDWLRQ
5LVHTXLYDOHQWWR5>@ 

([DPSOH,QGLUHFW*FRGHSURJUDPPLQJ
6HWWDEOH]HURRIIVHW*FRGHJURXS

N1010 DEF INT INT_VAR


N1020 INT_VAR = 2
...
N1090 G[8] = INT_VAR G1 X0 Y0 *
N1100 INT_VAR = INT_VAR + 1 *FRGHFDOFXODWLRQ
N1110 G[8] = INT_VAR G1 X0 Y0 *
3ODQHVHOHFWLRQ*FRGHJURXS

N2010 R10 = $P_GG[6] 5HDG*FRGHIRUFXUUHQWSODQH


...
N2090 G[6] = R10 *


 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )OH[LEOH1&SURJUDPPLQJ
 ,QGLUHFWSURJUDPPLQJ

 5XQVWULQJDVSDUWVSURJUDPOLQH (;(&675,1* 

)XQFWLRQ
3DUWVSURJUDPFRPPDQG(;(&675,1*SDVVHVDVWULQJDVDSDUDPHWHUWKDWDOUHDG\
FRQWDLQVWKHSDUWVSURJUDPOLQHWRUXQ

3URJUDPPLQJ
EXECSTRING (<string_variable>)

3DUDPHWHUV

EXECSTRING 7UDQVIHURIDVWULQJYDULDEOHZLWKWKHSDUWVSURJUDPOLQHWRUXQ
(<string_variable>) 3DUDPHWHUVZLWKWKHSDUWVSURJUDPOLQHDFWXDOO\WREHH[HFXWHG


 1RWH
$OOSDUWVSURJUDPFRQVWUXFWLRQVWKDWFDQEHSURJUDPPHGLQDSDUWVSURJUDPFDQEHRXWSXW
7KDWH[FOXGHV352&DQG'()LQVWUXFWLRQVDQGDOOXVHRI,1,DQG'()ILOHV

([DPSOH,QGLUHFWSDUWVSURJUDPOLQH

N100 DEF STRING[100] BLOCK 6WULQJYDULDEOHWREHLQFOXGHGLQSDUWVSURJUDPOLQH


N110 DEF STRING[10] MFCT1 = "M7"

N200 EXECSTRING(MFCT1 << " M4711") 5XQSDUWVSURJUDPOLQH00

N300 R10 = 1
N310 BLOCK = "M3"
N320 IF(R10)
N330 BLOCK = BLOCK << MFCT1
N340 ENDIF
N350 EXECSTRING(BLOCK) 5XQSDUWVSURJUDPOLQH00


-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)OH[LEOH1&SURJUDPPLQJ 
$VVLJQPHQWV

 $VVLJQPHQWV

)XQFWLRQ
9DOXHVRIDVXLWDEOHW\SHFDQEHDVVLJQHGWRWKHYDULDEOHVDULWKPHWLFSDUDPHWHUVLQ
WKHSURJUDP

3URJUDPPLQJ
$VVLJQPHQWVWRD[LVDGGUHVVHV WUDYHUVLQJLQVWUXFWLRQV DOZD\VUHTXLUHDVHSDUDWHEORFNWR
YDULDEOHDVVLJQPHQWV$VVLJQPHQWWRD[LVDGGUHVVHV WUDYHUVHLQVWUXFW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VLYH25
,QDULWKPHWLFH[SUHVVLRQVWKHH[HFXWLRQRUGHURIDOOWKHRSHUDWRUVFDQEHVSHFLILHGE\
SDUHQWKHVHVLQRUGHUWRRYHUULGHWKHQRUPDOSULRULW\UXOHV
0HDQLQJRIELWORJLFRSHUDWRUV

B_AND %LWVHULDO$1'
B_OR %LWVHULDO25
B_NOT %LWVHULDOQHJDWLRQ
B_XOR %LWVHULDOH[FOXVLYH25


 1RWH
7KHRSHUDWRU%B127UHIHUVWRRQHRSHUDQGRQO\
LWFRPHVDIWHUWKHRSHUDWRU

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)OH[LEOH1&SURJUDPPLQJ 
&RPSDULVRQDQGORJLFDORSHUDWLRQV

([DPSOHUHODWLRQDORSHUDWRUV
IF R10>=100 GOTOF DEST
RU
R11=R10>=100
IF R11 GOTOF DEST
7KHUHVXOWRIWKH5! FRPSDULVRQLVILUVWEXIIHUHGLQ5

([DPSOHORJLFRSHUDWRUV
IF (R10<50) AND ($AA_IM[X]>=17.5) GOTOF DESTINATION
RU
IF NOT R10 GOTOB START
127LVRQO\DSSOLHGWRRQHRSHUDQG

([DPSOHELWORJLFRSHUDWRUV
IF $MC_RESET_MODE_MASK B_AND 'B10000' GOTOF ACT_PLANE

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )OH[LEOH1&SURJUDPPLQJ
 &RPSDULVRQDQGORJLFDORSHUDWLRQV

 3UHFLVLRQFRUUHFWLRQRQFRPSDULVRQHUURUV 7581& 

)XQFWLRQ
7KH7581&FRPPDQGWUXQFDWHVWKHRSHUDQGPXOWLSOLHGE\DSUHFLVLRQIDFWRU
6HWWDEOHSUHFLVLRQIRUFRPSDULVRQFRPPDQGV
3URJUDPGDWDRIW\SH5($/DUHGLVSOD\HGLQWHUQDOO\ZLWKELWVLQ,(((IRUPDW7KLVGLVSOD\
IRUPDWFDQFDXVHGHFLPDOQXPEHUVWREHGLVSOD\HGLPSUHFLVHO\D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RQVLGHUDWLRQV

N40 R1=61.01 R2=61.02 R3=0.01 $VVLJQPHQWRILQLWLDOYDOXHV


N41 IF ABS(R2-R1) > R3 GOTOF ERROR -XPSZDVSHUIRUPHGSUHYLRXVO\
N42 M30 (QGRISURJUDP
N43 ERROR: SETAL(66000)
R1=61.01 R2=61.02 R3=0.01 $VVLJQPHQWRILQLWLDOYDOXHV
R11=TRUNC(R1*1000) R12=TRUNC(R2*1000) 3UHFLVLRQFRUUHFWLRQ
R13=TRUNC(R3*1000)
IF ABS(R12-R11) > R13 GOTOF ERROR -XPSLVQRORQJHUH[HFXWHG
M30 (QGRISURJUDP
ERROR: SETAL(66000)

([DPSOHFDOFXODWHDQGHYDOXDWHWKHTXRWLHQWRIERWKRSHUDQGV

R1=61.01 R2=61.02 R3=0.01 $VVLJQPHQWRILQLWLDOYDOXHV


IF ABS((R2-R1)/R3)-1) > 10EX-5 GOTOF -XPSQRWH[HFXWHG
ERROR
M30 (QGRISURJUDP
ERROR: SETAL(66000)

 9DULDEOHPLQLPXPPD[LPXPDQGUDQJH 0,19$/0$;9$/DQG%281' 

)XQFWLRQ
7KH0,19$/DQG0$;9$/IXQFWLRQVFDQEHXVHGWRFRPSDUHWZRYDULDEOHVDQGUHWXUQHLWKHU
WKHVPDOOHURUWKHODUJHUYDOXHDVWKHUHVXOW
7KH%281'IXQFWLRQFDQEHXVHGWRWHVWZKHWKHUWKHYDOXHRIDWHVWYDULDEOHIDOOVZLWKLQWKH
GHILQHGYDOXHUDQJH,IWKLVLVWKHFDVHWKHYDULDEOHYDOXHLVUHWXUQHG,IWKHWHVWYDULDEOH
YDOXHLVODUJHUWKDQWKHPD[LPXPYDOXHWKHPD[LPXPYDOXHLVRXWSXW6LPLODUO\LIWKH
PLQLPXPYDOXHLVXQGHUVKRWWKHPLQLPXPYDOXHLVRXWSXW
%HKDYLRULIYDOXHVDUHHTXDO
,IWKHYDOXHVDUHHTXDOWKH0,19$/DQG0$;9$/IXQFWLRQVRXWSXWWKLVHTXDOYDOXHZKLOH
%281'UHWXUQVWKHYDOXHRIWKHYDULDEOHWREHWHVWHG

3URJUDPPLQJ
0LQLPXP

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )OH[LEOH1&SURJUDPPLQJ
 &RPSDULVRQDQGORJLFDORSHUDWLRQV

Result smaller value = <MINVAL>(<Variable1>, <Variable2>)


0D[LPXP
Result larger value = <MAXVAL>(<Variable1>, <Variable2>)
5DQJH
Return value = <BOUND>(<Variable min>, <Variable max>, <Variable
test>)

 1RWH
7KHWKUHH0,19$/  0$;9$/  DQG%281'  IXQFWLRQVFDQDOVREHSURJUDPPHGDV
V\QFKURQL]HGDFWLRQV

3DUDPHWHU

MINVAL () 'HWHUPLQHVWKHORZHUYDOXHRIWZRYDULDEOHV
MAXVAL () 'HWHUPLQHVWKHODUJHUYDOXHRIWZRYDULDEOHV
BOUND () 7HVWVZKHWKHUWKHYDULDEOHWREHWHVWHGIDOOVZLWKLQDGHILQHGPLQPD[
YDOXHUDQJH
Variable1, Variable2 )LUVWDQGVHFRQGYDULDEOHZKRVHYDOXHVDUHWHVWHGDJDLQVWWKH
PLQLPXPPD[LPXP
Variable min /RZHUGHILQHGOLPLWIRUWKHWHVWYDULDEOHYDOXH
Variable max 8SSHUGHILQHGOLPLWIRUWKHWHVWYDULDEOHYDOXH
Variable test 9DULDEOHXVHGWRWHVWZKHWKHULWVYDOXHIDOOVZLWKLQWKHGHILQHGUDQJH

([DPSOHV

DEF REAL rVar1 = 10.5, rVar2 = 33.7, rVar3, rVar4, rVar5, rValMin, rValMax, rRetVar
rValMin = MINVAL(rVar1, rVar2) U9DO0LQVHWWRYDOXH
rValMax = MAXVAL(rVar1, rVar2) U9DO0D[VHWWRYDOXH

rVar3 = 19.7
rRetVar = BOUND(rVar1, rVar2, rVar3) U9DUIDOOVZLWKLQWKHOLPLWV
U5HW9DUVHWWR
rVar3 = 1.8
rRetVar = BOUND(rVar1, rVar2, rVar3) U9DUIDOOVEHORZ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ULQJPDQLSXODWLRQVDUHSURYLGHGLQDGGLWLRQWRWKHFRQYHQWLRQDORSHUDWLRQV
$VVLJQPHQWDQG&RPSDULVRQGHVFULEHGLQWKLVVHFWLRQ

3DUDPHWHUV

Type conversion to STRING:


STRING_ERG = <<any type1) 5HVXOWW\SH675,1*
STRING_ERG = AXSTRING (AXIS) 5HVXOWW\SH675,1*

Type conversion from STRING:


BOOL_ERG = ISNUMBER (STRING) 5HVXOWW\SH%22/
REAL_ERG = NUMBER (STRING) 5HVXOWW\SH5($/
AXIS_ERG = AXNAME (STRING) 5HVXOWW\SH$;,6

Concatenation of strings:
any type1) << any Type 1)
5HVXOWW\SH675,1*

Conversion to lower/upper case:


STRING_ERG = TOUPPER (STRING) 5HVXOWW\SH675,1*
STRING_ERG = TOLOWER (STRING) 5HVXOWW\SH675,1*

Length of the string:


INT_ERG = STRLEN (STRING) 5HVXOWW\SH,17

Look for character/string in the


string:
INT_ERG = INDEX (STRING, CHAR) 5HVXOWW\SH,17
INT_ERG = RINDEX (STRING, CHAR) 5HVXOWW\SH,17
INT_ERG = MINDEX (STRING, STRING) 5HVXOWW\SH,17
INT_ERG = MATCH (STRING, STRING) 5HVXOWW\SH,17

Selection of a substring:
STRING_ERG = SUBSTR (STRING, INT) 5HVXOWW\SH,17
STRING_ERG = SUBSTR (STRING, INT, 5HVXOWW\SH,17
INT)

Selection of a single character:


CHAR_ERG = STRINGVAR [IDX] 5HVXOWW\SH&+$5
CHAR_ERG = STRINGARRAY [IDX_FELD, 5HVXOWW\SH&+$5
IDX_CHAR]
1)
"any type" stands for the variable types INT, REAL, CHAR, STRING, and BOOL.

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )OH[LEOH1&SURJUDPPLQJ
 6WULQJRSHUDWLRQV

6SHFLDOPHDQLQJRIWKHFKDU
7KHFKDULVLQWHUSUHWHGLQWHUQDOO\DVHQGRIVWULQJ5HSODFLQJDFKDUDFWHUE\WKHFKDUDFWHU
WUXQFDWHVWKHVWULQJ

([DPSOH

DEF STRING[20] STRG = "Axis .


stopped"
STRG[6] = "X" 5HWXUQVWKHPHVVDJH$[LV;VWRSSHG
MSG(STRG)
STRG[6] = 0
MSG(STRG) 5HWXUQVWKHPHVVDJH$[LV


 7\SHFRQYHUVLRQWR675,1*

)XQFWLRQ
7KLVHQDEOHVXVHRIYDULDEOHVRIGLIIHUHQWW\SHVLQDPHVVDJH 06* 
3HUIRUPHGLPSOLFLWO\ZLWKXVHRIWKHRSHUDWRUIRUGDWDW\SHV,175($/&+$5DQG%22/
VHH&RQFDWHQDWLRQRIVWULQJV 
$Q,17YDOXHLVFRQYHUWHGWRQRUPDOUHDGDEOHIRUPDW5($/YDOXHVFRQYHUWZLWKXSWR
GHFLPDOSODFHV

3URJUDPPLQJ
6\QWD[

675,1*B(5* $;675,1* $;,6  5HVXOWW\SH675,1*

6HPDQWLFV
$;675,1* $;,6 UHWXUQVWKHVSHFLILHGD[LVLGHQWLILHUDVDVWULQJ

3DUDPHWHUV
9DULDEOHVRIW\SH$;,6FDQEHFRQYHUWHGWR675,1*E\WKH$;675,1*IXQFWLRQ
)5$0(YDULDEOHVFDQQRWEHFRQYHUWHG
([DPSOH
MSG("Position:"<<$AA_IM[X])

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)OH[LEOH1&SURJUDPPLQJ 
6WULQJRSHUDWLRQV

([DPSOH

DEF STRING[32] STRING_ERG


STRING_ERG = AXSTRING(X) 1RZ675,1*B(5* ;


 7\SHFRQYHUVLRQRI675,1*

)XQFWLRQ
7KH180%(5IXQFWLRQFRQYHUWVIURP675,1*WR5($/
,I,6180%(5UHWXUQVWKHYDOXH)$/6(WKH&$//RI180%(5ZLWKWKHVDPHSDUDPHWHUZLOO
LVVXHDQDODUP
7KH$;1$0(IXQFWLRQFRQYHUWVDVWULQJWRGDWDW\SH$;,6$QDODUPLVRXWSXWLIWKHVWULQJ
FDQQRWEHDVVLJQHGWRDQ\FRQILJXUHGD[LVLGHQWLILHU

3URJUDPPLQJ
6\QWD[

5($/B(5* 180%(5 675,1*  5HVXOWW\SH5($/


%22/B(5* ,6180%(5 675,1*  5HVXOWW\SH%22/
$;,6B(5* $;1$0( 675,1*  5HVXOWW\SH$;,6

6HPDQWLFV
180%(5 675,1* UHWXUQVWKHQXPEHUUHSUHVHQWHGE\WKHVWULQJDVD5($/
,6180%(5 675,1* UHWXUQV758(LIWKHVWULQJLVDYDOLG5($/E\WKHUXOHVRIWKH
ODQJXDJH,WLVWKXVSRVVLEOHWRFKHFNZKHWKHUWKHVWULQJFDQEHFRQYHUWHGWRDYDOLGQXPEHU
$;1$0( 675,1* FRQYHUWVWKHVSHFLILHGVWULQJWRDQD[LVLGHQWLILHU

([DPSOH

DEF BOOL BOOL_ERG


DEF REAL REAL_ERG
DEF AXIS AXIS_ERG
BOOL_ERG = ISNUMBER ("1234.9876Ex-7") 1RZ%22/B(5* 758(
BOOL_ERG = ISNUMBER ("1234XYZ") 1RZ%22/B(5* )$/6(
REAL_ERG = NUMBER ("1234.9876Ex-7") 1RZ5($/B(5* ([
AXIS_ERG = AXNAME("X") 1RZ$;,6B(5* ;


 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )OH[LEOH1&SURJUDPPLQJ
 6WULQJRSHUDWLRQV

 &RQFDWHQDWLRQRIVWULQJV

)XQFWLRQ
7KLVIXQFWLRQDOLW\SXWVDVWULQJWRJHWKHURXWRIVHSDUDWHFRPSRQHQWV
7KHFKDLQLQJIXQFWLRQLVLPSOHPHQWHGYLDRSHUDWRU7KLVRSHUDWRUKDV675,1*DVWKH
WDUJHWW\SHIRUDOOFRPELQDWLRQVRIEDVLFW\SHV&+$5%22/,175($/DQG675,1*
$Q\FRQYHUVLRQWKDWPD\EHUHTXLUHGLVFDUULHGRXWDFFRUGLQJWRH[LVWLQJUXOHV

3URJUDPPLQJ
6\QWD[

DQ\W\SHDQ\W\SH 5HVXOWW\SH675,1*

6HPDQWLFV
7KHVWULQJVVS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FWLRQLQWURGXFHGLQWKHQH[W
VHFWLRQFDQEHXVHGWREUHDNXSYDULDEOH,1387
LQWRWKHFRPSRQHQWV3DWKDQG0RGXOH
VARIABLE = SUBSTR (INPUT, PATHIDX, UHWXUQLQJB1B03)B',5
PROGIDX-PATHIDX-1)
VARIABLE = SUBSTR (INPUT, PROGIDX) UHWXUQLQJB1B(;(&87(B03)


 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )OH[LEOH1&SURJUDPPLQJ
 6WULQJRSHUDWLRQV

 6HOHFWLRQRIDVXEVWULQJ

)XQFWLRQ
7KLVIXQFWLRQDOLW\H[WUDFWVDVXEVWULQJIURPDVWULQJ)RUWKLVSXUSRVHWKHLQGH[RIWKHILUVW
FKDUDFWHUDQGWKHGHVLUHGVWULQJOHQJWK LIDSSOLFDEOH DUHVSHFLILHG,IQROHQJWKLQIRUPDWLRQLV
VSHFLILHGWKHQWKHVWULQJGDWDUHIHUVWRWKHUHPDLQLQJVWULQJ

3URJUDPPLQJ
6\QWD[

675,1*B(5* 68%675 675,1*,17  5HVXOWW\SH,17


675,1*B(5* 68%675 675,1*,17,17  5HVXOWW\SH,17

6HPDQWLFV
,QWKHILUVWFDVHWKHVXEVWULQJIURPWKHSRVLWLRQVSHFLILHGLQWKHILUVWSDUDPHWHUWRWKHHQGRI
WKHVWULQJLVUHWXUQHG
,QWKHVHFRQGFDVHWKHUHVXOWVWULQJJRHVXSWRWKHPD[LPXPOHQJWKVSHFLILHGLQWKHWKLUG
SDUDPHWHU
,IWKHLQLWLDOSRVLWLRQLVDIWHUWKHHQGRIWKHVWULQJWKHHPSW\VWULQJ  ZLOOEHUHWXUQHG
$QHJDWLYHLQLWLDOSRVLWLRQRUOHQJWKWULJJHUVDQDODUP

([DPSOH

DEF STRING [29] ERG 


ERG = SUBSTR ("ACK: 10 to 99", 10, 2) 7KHUHIRUH(5* 


 6HOHFWLRQRIDVLQJOHFKDUDFWHU

)XQFWLRQ
7KLVIXQFWLRQDOLW\VHOHFWVDVLQJOHFKDUDFWHUIURPDVWULQJ7KLVDSSOLHVERWKWRUHDGDFFHVV
DQGZULWHDFFHVVRSHUDWLRQV

3URJUDPPLQJ
6\QWD[

&+$5B(5* 675,1*9$5>,';@ 5HVXOWW\SH&+$5


&+$5B(5* 675,1*$55$<>,';B)(/',';B&+$5@ 5HVXOWW\SH&+$5

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)OH[LEOH1&SURJUDPPLQJ 
6WULQJRSHUDWLRQV

VHPDQWLFV
7KHFKDUDFWHUDWWKHVSHFLILHGSRVLWLRQLVUHDGZULWWHQZLWKLQWKHVWULQJ,IWKHSRVLWLRQ
SDUDPHWHULVQHJDWLYHRUJUHDWHUWKDQWKHVWULQJWKHQDQDODUPLVRXWSXW
([DPSOHPHVVDJHV
,QVHUWLRQRIDQD[LVLGHQWLILHULQWRDSUHSDUHGVWULQJ

DEF STRING [50] MESSAGE = "Axis n has


reached position"
MESSAGE [6] = "X"
MSG (MESSAGE) UHWXUQVPHVVDJH$[LV;KDVUHDFKHGSRVLWLRQ

3DUDPHWHUV
6LQJOHFKDUDFWHUDFFHVVLVSRVVLEOHRQO\WRXVHUGHILQHGYDULDEOHV
/8'*8'DQG38'GDWD 
7KLVW\SHRIDFFHVVLVDOVRSRVVLEOHRQO\IRUFDOOE\YDOXHW\SHSDUDPHWHUVLQVXEURXWLQH
FDOOV

([DPSOHVLQJOHFKDUDFWHUDFFHVVWRDV\VWHPPDFKLQHGDWD

DEF STRING [50] STRG


DEF CHAR ACK

STRG = $P_MMCA
ACK = STRG [0] (YDOXDWLRQRIDFNQRZOHGJPHQWFRPSRQHQW

([DPSOHVLQJOHFKDUDFWHUDFFHVVLQFDOOE\UHIHUHQFHSDUDPHWHU

DEF STRING [50] STRG


DEF CHAR CHR1
EXTERN UP_CALL (VAR CHAR1) &DOOE\UHIHUHQFHSDUDPHWHU

CHR1 = STRG [5]
UP_CALL (CHR1) &DOOE\UHIHUHQFH
STRG [5] = CHR1

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )OH[LEOH1&SURJUDPPLQJ
 &$6(VWDWHPHQW

 &$6(VWDWHPHQW

)XQFWLRQ
7KH&$6(VWDWHPHQWHQDEOHVYDULRXVEUDQFKHVWREHH[HFXWHGDFFRUGLQJWRDYDOXHRI
W\SH,17
7KHSURJUDPMXPSVWRWKHSRLQWVSHFLILHGE\WKHMXPSGHVWLQDWLRQGHSHQGLQJRQWKHYDOXHRI
WKHFRQVWDQWHYDOXDWHGLQWKH&$6(VWDWHPHQW

3URJUDPPLQJ
CASE (expression) OF constant1 GOTOF LABEL1 DEFAULT GOTOF LABELn 
CASE (expression) OF constant1 GOTOB LABEL1 DEFAULT GOTOB LABELn

3DUDPHWHUV

CASE .H\ZRUGIRUMXPSVWDWHPHQW
GOTOB -XPSVWDWHPHQWZLWKMXPSGHVWLQDWLRQEDFNZDUG
WRZDUGWKHEHJLQQLQJRISURJUDP 
GOTOF -XPSVWDWHPHQWZLWKIRUZDUGMXPSGHVWLQDWLRQ
WRZDUGWKHHQGRISURJUDP 
GOTO -XPSVWDWHPHQWZLWKWKHMXPSGHVWLQDWLRQILUVW
IRUZDUGDQGWKHQEDFNZDUG WKHGLUHFWLRQILUVWWR
WKHHQGRIWKHSURJUDPDQGWKHQWRWKHVWDUWRI
WKHSURJUDP 
GOTOC 6XSSUHVV$ODUP'HVWLQDWLRQQRWIRXQG
-XPSVWDWHPHQWZLWKWKHMXPSGHVWLQDWLRQILUVW
IRUZDUGDQGWKHQEDFNZDUG WKHGLUHFWLRQILUVWWR
WKHHQGRIWKHSURJUDPDQGWKHQWRWKHVWDUWRI
WKHSURJUDP 
LABEL 'HVWLQDWLRQ ODEHOZLWKLQWKHSURJUDP 
LABEL: 7KHQDPHRIWKHMXPSGHVWLQDWLRQLVIROORZHGE\D
FRORQ
Expression $ULWKPHWLFH[SUHVVLRQ
Constant &RQVWDQWRIW\SH,17
DEFAULT 3URJUDPSD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during block search")
ENDIF
$A_OUT[1] = 1 1H[WGULOOLQJSODWH
G4 F2
ENDLOOP
M30

([DPSOHSURGXFWLRQRIDIL[HGTXDQWLW\RISDUWV

%_N_WKPCCOUNT_MPF

DEF INT WKPCCOUNT


FOR WKPCCOUNT = 0 TO 100
G01
ENDFOR
M30

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )OH[LEOH1&SURJUDPPLQJ
 &RQWUROVWUXFWXUHV

([DPSOHIRUYDULDEOHVRIWKH,17DQG5($/W\SHDVDFRXQWHUORRS

%_N_VARIABLE_COUNTER_MPF
3UHYLRXVSURJUDPPLQJRSWLRQ
DEF INT iVARIABLE1
R10 = R12-R20*R1 R11 = 6
FOR iVARIABLE1 = R10 TO R11 &RXQWHUYDULDEOH LQWHJHUYDULDEOH
R20 = R21*R22 + R33
ENDFOR
M30
([WHQGHGSURJUDPPLQJRSWLRQ
R11 = 6
FOR R10 = R12-R20*R1 TO R11 &RXQWHUYDULDEOH 5SDUDPHWHU 5HDOYDULDEOH 
R20 = R21*R22 + R33
ENDFOR
M30

5XQWLPHUHVSRQVH
,QLQWHUSUHWHUPRGH DFWLYHDVVWDQGDUG LWLVSRVVLEOHWRVKRUWHQSURJUDPSURFHVVLQJWLPHV
PRUHHIIHFWLYHO\E\XVLQJSURJUDPEUDQFKHVWKDQFDQEHREWDLQHGZLWKFRQWUROVWUXFWXUHV
7KHUHLVQRGLIIHUHQFHEHWZHHQSURJUDPEUDQFKHVDQGFRQWUROVWUXFWXUHVLQSUHFRPSLOHG
F\FOHV

5HVWULFWLRQV
%ORFNVZLWKFRQWUROVWUXFWXUHHOHPHQWVFDQQRWEHVXSSUHVVHG/DEHOVPD\QRWEHXVHGLQ
EORFNVRIWKLVW\SH
&RQWUROVWUXFWXUHVDUHSURFHVVHGLQWHUSUHWLYHO\:KHQDORRSHQGLVGHWHFWHGDVHDUFKLV
PDGHIRUWKHORRSEHJLQQLQJDOORZLQJIRUWKHFRQWUROVWUXFWX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,70 

&KDQQHO
1
03) 1       
:DLW 0

&KDQQHO 1
1 1        
 :DLW :DLW 0

1 1 1


67$57 
:$,70  :$,70  :$,7( 

6WDUW 67$57  0 0 (QGWLPH

([DPSOHSURJUDPIURPZRUNSLHFH
N10 INIT(2,"/_N_WKS_DIR/_N_SHAFT1_WPD/_N_CUT1_MPF")

([DPSOH,1,7FRPPDQGZLWKUHODWLYHSDWKVSHFLILFDWLRQ
3URJUDP/_N_MPF_DIR/_N_MAIN_MPFLVVHOHFWHGLQFKDQQHO

N10 INIT(2,"MYPROG") 6HOHFWSURJUDP/_N_MPF_DIR/_N_MYPROG_MPF LQFKDQQHO

([DPSOHRIFKDQQHOQDPHDQGFKDQQHOQXPEHUZLWKLQWHJHUYDULDEOH
$MC_CHAN_NAME[0]= &+$1B;QDPHRIVWFKDQQHO
$MC_CHAN_NAME[1]= &+$1B<QDPHRIQGFKDQQHO

START(1, 2) 5XQVWDUWLQVWDQGQGFKDQQHO
6LPLODUWRWKLVSURJUDPPLQJZLWKWKHFKDQQHOLGHQWLILHUV

START(CHAN_X, CHAN_Y) 5XQVWDUWLQVWDQGQGFKDQQHO


7KHFKDQQHOB;DQGFKDQQHOB<LGHQWLILHUVUHSUHVHQW
FKDQQHOQXPEHUVDQGLQWHUQDOO\GXHWRWKH
0&B&+$1B1$0(PDFKLQHGDWD7KH\DOVRUXQDVWDUWLQWKHVW
DQGQGFKDQQHODFFRUGLQJO\
3URJUDPPLQJZLWKDQLQWHJHUYDULDEOH

DEF INT chanNo1, chanNo2) 'HILQHFKDQQHOQXPEHU


chanNo1=CHAN_X
chanNo2=CHAN_Y
START(chanNo1, chanNo2)

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)OH[LEOH1&SURJUDPPLQJ 
,QWHUUXSWURXWLQH 6(7,17',6$%/((1$%/(&/5,17 

 ,QWHUUXSWURXWLQH 6(7,17',6$%/((1$%/(&/5,17 

)XQFWLRQ
7KHUHODWLRQVKLSVFRQFHUQHG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FHGHLWKHUZLWKDSUHSURFHVVLQJVWRSDQGV\QFKURQL]DWLRQ
EHWZHHQSUHSURFHVVLQJDQGPDLQUXQRUZLWKRXWDSUHSURFHVVLQJVWRS$[LVUHSODFHPHQWLV
DOVRSRVVLEOHYLD
x $[LVFRQWDLQHUURWDWLRQ$;&76:(RU$;&7:('XVLQJLPSOLFLWGET/GETD
x )UDPHZLWKURWDWLRQLIWKLVSURFHVVOLQNVWKHD[LVZLWKRWKHUD[HV
x 6\QFKURQL]HGDFWLRQVVHH0RWLRQV\QFKURQRXVDFWLRQV$[LVUHSODFHPHQWRELEASE
GET
0DFKLQHPDQXIDFWXUHU
3OHDVHUHIHUWRWKHPDFKLQHPDQXIDFWXUHU
VLQVWUXFWLRQV)RUWKHSXUSRVHRID[LV
UHSODFHPHQWRQHD[LVPXVWEHGHILQHGXQLTXHO\LQDOOFKDQQHOVLQWKHFRQILJXUDEOHPDFKLQH
GDWDDQGWKHD[LVUHSODFHPHQWFKDUDFWHULVWLFVFDQDOVREHVHWXVLQJPDFKLQHGDWD

3URJUDPPLQJ
RELEASE (axis name, axis name, ...) RU RELEASE (S1) 
GET (axis name, axis name, ...) RU GET (S2) 
RU
GETD (axis name, axis name, ...) RU GETD (S3)
:LWK*(7' *(7'LUHFWO\ DQD[LVLVIHWFKHGGLUHFWO\IURPDQRWKHUFKDQQHO7KDWPHDQVWKDW
QRVXLWDEOH5(/($6(PXVWEHSURJUDPPHGIRUWKLV*(7'LQDQRWKHUFKDQQHO,WDOVRPHDQV
WKDWRWKHUFKDQQHOFRPPXQLFDWLRQKDVWREHHVWDEOLVKHG HJZDLWPDUNHUV 

3DUDPHWHUV

RELEASE (axis name, axis name, ) 5HOHDVHWKHD[LV D[HV 


GET (axis name, axis name, ) $FFHSWWKHD[LV D[HV 
GETD (axis name, axis name, ) 'LUHFWO\DFFHSWWKHD[LV D[HV 
Axis name $[LVDVVLJQPHQWLQV\VWHP$;$;RUVSHFLI\
PDFKLQHD[LVQDPH
REL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PDUNHULQFKDQQHODQG
IRUV\QFKURQL]LQJLQERWKFKDQQHOV
N 5HVWRISURJUDPDIWHUD[LVUHSODFHPHQW
N M30

3URJUDP5HSODFHLQFKDQQHO

%_N_TRANSFER2_MPF
N RELEASE (AX2)
N160 WAITM (1,1,2) :DLWIRU:$,7PDUNHULQFKDQQHODQG
IRUV\QFKURQL]LQJLQERWKFKDQQHOV
N150 GET (AX2) $FFHSWD[LV$;
N 5HVWRISURJUDPDIWHUD[LVUHSODFHPHQW
N M30

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )OH[LEOH1&SURJUDPPLQJ
 $[LVUHSODFHPHQWVSLQGOHUHSODFHPHQW 5(/($6(*(7*(7' 

([DPSOHRID[LVUHSODFHPHQWZLWKRXWV\QFKURQL]DWLRQ
,IWKHD[LVGRHVQRWKDYHWREHV\QFKURQL]HGQRSUHSURFHVVLQJVWRSLVJHQHUDWHGE\*(7

N01 G0 X0
N02 RELEASE(AX5)
N03 G64 X10
N04 X20
N05 GET(AX5) ,IV\QFKURQL]DWLRQLVQRWQHFHVVDU\
WKLVLVQRWDQH[HFXWDEOHEORFN
N06 G01 F5000 1RWDQH[HFXWDEOHEORFN
N07 X20 1RWDQH[HFXWDEOHEORFNEHFDXVH;SRVLWLRQDV
IRU1
N08 X30 )LUVWH[HFXWDEOHEORFNDIWHU1
N09

([DPSOHDFWLYDWLQJDQD[LVUHSODFHPHQWZLWKRXWDSUHSURFHVVLQJVWRS
3UHUHTXLVLWH
$[LVUHSODFHPHQWZLWKRXWDSUHSURFHVVLQJVWRSPXVWEHFRQILJXUHGYLDPDFKLQHGDWD

N010 M4 S100
N011 G4 F2
N020 M5
N021 SPOS=0
N022 POS[B]=1
N023 WAITP(B) $[LV%EHFRPHVWKHQHXWUDOD[LV
N030 X1 F10
N031 X100 F500
N032 X200
N040 M3 S500 $[LVGRHVQRWWULJJHUSUHSURFHVVLQJVWRS5(25*
N041 G4 F2
N050 M5
N099 M30

,IWKHVS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VDYHGLQWKHFXUUHQWGLUHFWRU\
GLUHFWRU\RIVHOHFWHGSURJUDP 7KHILOHQDPHOHQJWKFDQEHXSWR
E\WHVWKHSDWKOHQJWKXSWRE\WHV
([DPSOH
3527),/(
B1B3527),/(
B1B3527),/(B03)
B1B03)B',5BB1B3527),/(B03)
STRING 7H[WWREHZULWWHQ,QWHUQDOO\/)LVWKHQDGGHGWKLVPHDQVWKDWWKHWH[WLV
OHQJWKHQHGE\RQHFKDUDFWHU


 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )OH[LEOH1&SURJUDPPLQJ
 '(/(7('HOHWHILOH

 1RWH
,IQRVXFKILOHH[LVWVLQWKH1&LWLVQHZO\FUHDWHGDQGFDQEHZULWWHQWRE\PHDQVRIWKH
:5,7(FRPPDQG
,IDILOHZLWKWKHVDPHQDPHH[LVWVRQWKHKDUGGLVNLWLVRYHUZULWWHQDIWHUWKHILOHLVFORVHG
LQWKH1& 
5HPHG\&KDQJHWKHQDPHLQWKH1&XQGHUWKH6HUYLFHVRSHUDWLQJDUHDXVLQJWKH
3URSHUWLHVVRIWNH\

([DPSOH

N10 DEF INT ERROR


N20 WRITE(ERROR,"TEST1","LOG FROM :ULWHWKHWH[WIURP/2*)520
7.2.97") LQWRWKH7(67ILOH
N30 IF ERROR
N40 MSG ("Error with WRITE command:"
<<ERROR)
N50 M0
N60 ENDIF
...
WRITE(ERROR, $EVROXWHSDWK
"/_N_WKS_DIR/_N_PROT_WPD/_N_PROT_MPF", "LOG
FROM 7.2.97")

 '(/(7('HOHWHILOH

)XQFWLRQ
$OOILOHVFDQEHGHOHWHGE\PHDQVRIWKH'(/(7(FRPPDQGLUUHVSHFWLYHRIZKHWKHUWKHVH
ZHUHFUHDWHGXVLQJWKH:5,7(FRPPDQGRUQRW)LOHVWKDWZHUHFUHDWHGXVLQJDKLJKHU
DFFHVVDXWKRUL]DWLRQFDQDOVREHGHOHWHGZLWK'(/(7(

3URJUDPPLQJ
DELETE(VAR INT error, CHAR[160] filename)

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)OH[LEOH1&SURJUDPPLQJ 
'(/(7('HOHWHILOH

3DUDPHWHUV

DELETE 'HOHWHWKHVSHFLILHGILOH
error (UURUYDULDEOHIRUUHWXUQ
1RHUURU
3DWKQRWDOORZHG
3DWKQRWIRXQG
)LOHQRWIRXQG
,QFRUUHFWILOHW\SH
)LOHLVLQXVH
1RUHVRXUFHVDYDLODEOH
2WKHUHUURU
filename 1DPHRIWKHILOHWREHGHOHWHG
7KHILOHQDPHFDQEHVSHFLILHGZLWKSDWKDQGILOHLGHQWLILHU3DWKQDPHV
PXVWEHDEVROXWHWKDWLVVWDUWZLWK,IWKHILOHQDPHGRHVQRWFRQWDLQ
DGRPDLQLGHQWLILHU B1B LWLVDGGHGDFFRUGLQJO\7KHILOHLGHQWLILHU
BSOXVFKDUDFWHUV HJB63) LVRSWLRQDO,IWKHUHLVQRLGHQWLILHU
WKHILOHQDPHLVDXWRPDWLFDOO\DGGHGB03),IWKHUHLVQRSDWKVSHFLILHGWKH
ILOHLVVDYHGLQWKHFXUUHQWGLUHFWRU\ GLUHFWRU\RIVHOHFWHGSURJUDP 7KH
ILOHQDPHOHQJWKFDQEHXSWRE\WHVWKHSDWKOHQJWKXSWRE\WHV
([DPSOH
3527),/(
B1B3527),/(
B1B3527),/(B03)
B1B03)B',5B1B3527),/(B03)

([DPSOH

N10 DEF INT ERROR


N15 STOPRE 3UHSURFHVVLQJVWRS
N20 DELETE (ERROR, GHOHWHVILOH7(67LQWKH
"/_N_SPF_DIR/_N_TEST1_SPF") VXEURXWLQHEUDQFK
N30 IF ERROR
N40 MSG ("Error with DELETE command:"
<<ERROR)
N50 M0
N60 ENDIF

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )OH[LEOH1&SURJUDPPLQJ
 5($'5HDGOLQHVLQWKHILOH

 5($'5HDGOLQHVLQWKHILOH

)XQFWLRQ
7KH5($'FRPPDQGUHDGVRQHRUVHYHUDOOLQHVLQWKHILOHVSHFLILHGDQGVWRUHVWKH
LQIRUPDWLRQUHDGLQDQDUUD\RIW\SH675,1*,QWKLVDUUD\HDFKUHDGOLQHRFFXSLHVDQDUUD\
HOHPHQW
7KHFXUUHQWO\VHWSURWHFWLRQOHYHOPXVWEHHTXDOWRRUJUHDWHUWKDQWKH5($'ULJKWRIWKHILOH
,IWKLVLVQRWWKHFDVHDFFHVVLVGHQLHGZLWKDQHUURUPHVVDJH HUURU  

3URJUDPPLQJ
READ(VAR INT error, STRING[160] file, INT line, INT number,
VAR STRING[255] result[])

3DUDPHWHU

READ 5HDGRQHRUPRUHOLQHVLQWKHVSHFLILHGILOHDQGVWRUHLQDQDUUD\HOHPHQWRIDQ
DUUD\
7KHLQIRUPDWLRQLVDYDLODEOHDV675,1*
error (UURUYDULDEOHIRUUHWXUQ FDOOE\UHIHUHQFHSDUDPHWHUW\SH,17 
1RHUURU
3DWKQRWDOORZHG
3DWKQRWIRXQG
)LOHQRWIRXQG
,QFRUUHFWILOHW\SH
,QVXIILFLHQWDFFHVVULJKWV
/LQHQRWSUHVHQW OLQHRUQXPEHUSDUDPHWHU
ODUJHUWKDQWKHQXPEHURIOLQHVLQWKHILOH 
$UUD\OHQJWKRIUHVXOWYDULDEOHUHVXOWLVWRRVPDOO
/LQHUDQJHWRRODUJH QXPEHUSDUDPHWHU
VHOHFWHGVRODUJHWKDWWKHUHDGZRXOGJREH\RQGWKHHQGRIWKHILOH 
file 1DPHSDWKRIWKHILOHWREHUHDG FDOOE\YDOXHSDUDPHWHURIW\SH675,1*ZLWKD
PD[OHQJWKRIE\WHV 7KHILOHPXVWEHVWRUHGLQWKHXVHUPHPRU\RIWKH
1&. SDVVLYHILOHV\VWHP 7KHILOHQDPHFDQEHSUHFHGHGE\WKHGRPDLQ
LGHQWLILHUB1B,IWKHGRPDLQLGHQWLILHULVPLVVLQJLWLVDGGHGFRUUHVSRQGLQJO\
7KHILOHLGHQWLILHU BS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HRIILOHLVRXWSXW7KHIROORZLQJW\SHVRIILOHDUHQRW
UHDGDEOHB%,1B(;(B2%-B/,%B%27B75&B$&&B&<&B1&.

([DPSOHV

N10 DEF INT ERROR HUURUYDULDEOH


N20 STRING[255] RESULT[5] UHVXOWYDULDEOH
...
N30 READ(ERROR, "TESTFILE", 1, 5, ILOHQDPHZLWKRXWGRPDLQ
RESULT) RUILOHLGHQWLILHU
...
N30 READ(ERROR, "TESTFILE_MPF", 1, 5, ILOHQDPHZLWKRXWGRPDLQ
RESULT) DQGZLWKILOHLGHQWLILHU
...
N30 READ(ERROR, "_N_TESTFILE_MPF", 1, 5, ILOHQDPHZLWKGRPDLQ
RESULT) DQGILOHLGHQWLILHU
...
N30 READ(ERROR, "/_N_CST_DIR/_N_TESTFILE_MPF", ILOHQDPHZLWKGRPDLQ
1, 5 RESULT) DQGILOHLGHQWLILHUDQGSDWKVSHFLILFDWLRQ
...
N40 IF ERROR <>0 HUURUHYDOXDWLRQ
N50 MSG("ERROR"<<ERROR<<" WITH READ COMMAND")
N60 M0
N70 ENDIF
...

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )OH[LEOH1&SURJUDPPLQJ
 ,6),/()LOHSUHVHQWLQWKH1&.XVHUPHPRU\

 ,6),/()LOHSUHVHQWLQWKH1&.XVHUPHPRU\

)XQFWLRQ
:LWKWKH,6),/(FRPPDQG\RXFKHFNZKHWKHUDILOHH[LVWVLQWKHXVHUPHPRU\RIWKH1&.
SDVVLYHILOHV\VWHP $VDUHVXOWHLWKHU758( ILOHH[LVWV RU)$/6( ILOHGRHVQRWH[LVW LV
UHWXUQHG

3URJUDPPLQJ
result=ISFILE(STRING[160]file)

3DUDPHWHUV

ISFILE &KHFNVZKHWKHUWKHILOHH[LVWVLQWKH1&.XVHUPHPRU\
file 1DPHSDWKRIWKHILOHWREHUHDG FDOOE\YDOXHSDUDPHWHURIW\SH675,1*
ZLWKDPD[OHQJWKRIE\WHV 
7KHILOHPXVWEHVWRUHGLQWKHXVHUPHPRU\RIWKH1&. SDVVLYHILOH
V\VWHP 7KHILOHQDPHFDQEHSUHFHGHGE\WKHGRPDLQLGHQWLILHUB1B,IWKH
GRPDLQLGHQWLILHULVPLVVLQJLWLVDGGHGFRUUHVSRQGLQJO\
7KHILOHLGHQWLILHU BSOXVFKDUDFWHUV HJB63) LVRSWLRQDO,IWKHUHLV
QRLGHQWLILHUWKHILOHQDPHLVDXWRPDWLFDOO\DGGHGB03)
,IWKHUHLVQRSDWKVSHFLILHGLQILOHWKHILOHLVVHDUFKHGIRULQWKHFXUUHQW
GLUHFWRU\ GLUHFWRU\RIVHOHFWHGSURJUDP ,IDSDWKLVVSHFLILHGLQILOHLW
PXVWVWDUWZLWKDVODVK DEVROXWHSDWKLQGLFDWLRQ 
result 9DULDEOHIRUVWRUDJHRIWKHUHVXOWRIW\SH%22/ 758(RU)$/6( 

([DPSOH

N10 DEF BOOL RESULT


N20 RESULT=ISFILE("TESTFILE")
N30 IF(RESULT==FALSE)
N40 MSG("FILE DOES NOT EXIST")
N50 M0
N60 ENDIF
...
or:
N30 IF(NOT ISFILE("TESTFILE"))
N40 MSG("FILE DOES NOT EXIST")
N50 M0
N60 ENDIF
...

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)OH[LEOH1&SURJUDPPLQJ 
),/('$7(7,0(6,=(67$7,1)2)LOHLQIRUPDWLRQ

 ),/('$7(7,0(6,=(67$7,1)2)LOHLQIRUPDWLRQ

)XQFWLRQ
7KH),/('$7(),/(7,0(),/(6,=(),/(67$7DQG),/(,1)2FRPPDQGVFDQEHXVHGWR
UHDGSDUWLFXODUSLHFHVRIILOHLQIRUPDWLRQVXFKDVGDWHWLPHFXUUHQWILOHVL]HILOHVWDWXVRUWKH
VXPRIWKLVLQIRUPDWLRQIURPWKHXVHUPHPRU\RIWKH1&. SDVVLYHILOHV\VWHP 
7KHFXUUHQWO\VHWSURWHFWLRQOHYHOPXVWEHHTXDOWRRUJUHDWH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HUHLV
QRLGHQWLILHUWKHILOHQDPHLVDXWRPDWLFDOO\DGGHGB03)
,IWKHUHLVQRSDWKVSHFLILHGLQILOHWKHILOHLVVHDUFKHGIRULQWKHFXUUHQW
GLUHFWRU\ GLUHFWRU\RIVHOHFWHGSURJUDP ,IDSDWKLVVSHFLILHGLQILOHLW
PXVWVWDUWZLWKDVODVK DEVROXWHSDWKLQGLFDWLRQ 
result 9DULDEOHZLWKWKHUHVXOWLQZKLFKWKHILOHLQIRUPDWLRQLVVDYHG
&DOOE\UHIHUHQFHSDUDPHWHU RID675,1*W\SHIRU
),/('$7(WKHOHQJWKPXVWEHIRUPDWLVGGPP\\
),/(7,0(WKHOHQJWKPXVWEHIRUPDWLVKKPPVV
),/(67$7WKHOHQJWKPXVWEHIRUPDWLVUZ[VG
),/(,1)2WKHOHQJWKPXVWEHIRUPDWLV
UZ[VGQQQQQQQQGGPP\\KKPPVV
&DOOE\UHIHUHQFHSDUDPHWHU RID,17W\SHIRU
),/(6,=(ILOHVL]HLVRXWSXWLQE\WHV
UZ[VG UHDGZULWHH[HFXWHVKRZGHOHWH 


([DPSOHV

N10 DEF INT ERROR HUURUYDULDEOH


N20 STRING[32] RESULT UHVXOWYDULDEOH
...
N30 FILEINFO(ERROR, "TESTFILE", RESULT) ILOHQDPHZLWKRXWGRPDLQDQGILOHLGHQWLILHU
...
N30 FILEINFO(ERROR, "TESTFILE_MPF", ILOHQDPHZLWKRXWGRPDLQDQGZLWKILOHLGHQWLILHU
RESULT)
...
N30 FILEINFO(ERROR,"_N_TESTFILE_MPF", ILOHQDPHZLWKGRPDLQDQGILOHLGHQWLILHU
RESULT)
...
N30 FILEINFO ILOHQDPHZLWKGRPDLQDQGILOHLGHQWLILHU
(ERROR,"/_N_MPF_DIR/_N_TESTFILE_MPF", DQGSDWKVSHFLILFDWLRQ
RESULT)
...
N40 IF ERROR <>0 HUURUHYDOXDWLRQ
N50 MSG("ERROR "<<ERROR<<"
WITH FILE INFO COMMAND")
N60 M0
N70 ENDIF
...
Returns in the RESULT event variable: "77777 12345678 26.05.00 13:51:30"

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)OH[LEOH1&SURJUDPPLQJ 
&+(&.680)RUPWKHFKHFNVXPRYHUDQDUUD\

 &+(&.680)RUPWKHFKHFNVXPRYHUDQDUUD\

)XQFWLRQ
:LWK&+(&.680\RXIRUPDFKHFNVXPRYHUDQDUUD\
$SSOLFDWLRQ
&KHFNWRVHHZKHWKHUWKHLQLWLDOFRQWRXUKDVFKDQJHGGXULQJVWRFNUHPRYDO

3URJUDPPLQJ
error=CHECKSUM(VAR STRING[16] chksum, STRING[32]array, INT first,
INT last)

3DUDPHWHU

CHECKSUM )RUPWKHFKHFNVXPRYHUDQDUUD\
error (UURUYDULDEOHIRUUHWXUQ
1RHUURU
6\PEROQRWIRXQG
1RDUUD\
,QGH[WRRODUJH
,QGH[WRRODUJH
,QYDOLGGDWDW\SH
&KHFNVXPRYHUIORZ
chksum &KHFNVXPRYHUWKHDUUD\DVD675,1* FDOOE\UHIHUHQFHSDUDPHWHURI
W\SH675,1*ZLWKDGHILQHGOHQJWKRI 
7KHFKHFNVXPLVLQGLFDWHGDVDFKDUDFWHUVWULQJRIKH[DGHFLPDO
QXPEHUV+RZHYHUQRIRUPDWFKDUDFWHUVDUHLQGLFDWHG
([DPSOH$)&(&
array 1XPEHURIWKHDUUD\RYHUZKLFKWKHFKHFNVXPLVWREHIRUPHG
FDOOE\YDOXHSDUDPHWHURIW\SH675,1*ZLWKDPD[OHQJWKRI 
3HUPLVVLEOHDUUD\V
RUGLPHQVLRQDODUUD\VRIWKHW\SHV
%22/&+$5,175($/675,1*
$UUD\VRIPDFKLQHGDWDDUHQRWSHUPLVVLEOH
first &ROXPQQXPEHURIVWDUWFROXPQ RSWLRQDO 
last &ROXPQQXPEHURIHQGFROXPQ RSWLRQDO 


 1RWH
7KHSDUDPHWHUVILUVWDQGODVWDUHRSWLRQDO,IQRFROXPQLQGLFHVDUHLQGLFDWHGWKHFKHFNVXP
LVIRUPHGRYHUWKHZKROHDUUD\
7KHUHVXOWRIWKHFKHFNVXPLVDOZD\VGHILQLWH,IDQDUUD\HOHPHQWLVFKDQJHGWKHUHVXOW
VWULQJZLOODOVREHFKDQJHG

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )OH[LEOH1&SURJUDPPLQJ
 5281'835RXQGXS

([DPSOH

N10 DEF INT ERROR


N20 DEF STRING[16] MY_CHECKSUM
N30 DEF INT MY_VAR[4,4]
N40 MY_VAR=...
N50 ERROR=CHECKSUM (CHECKSUM;"MY_VAR", 0, 2)
...
returns in MY_CHECKSUM the value "A6FC3404E534047C"

 5281'835RXQGXS

)XQFWLRQ
7KH5281'83IXQFWLRQUHWXUQVIRU
x SRVLWLYHLQSXWYDOXHV
WKHQH[WODUJHULQWHJHU
x QHJDWLYHLQSXWYDOXHV
WKHQH[WVPDOOHULQWHJHU
,IWKHLQSXWYDOXHLVDQLQWHJHUW\SHYDOXH DZKROHQXPEHU WKHYDOXHLVUHWXUQHGXQPRGLILHG

3URJUDPPLQJ
ROUNDUP(Variable Real)

3DUDPHWHUV

ROUNDUP 5RXQGVXSWRWKHQH[WODUJHULQWHJHU REVHUYLQJWKHVLJQ 


Variable ,QSXWYDOXHRIWKHW\SHUHDO
Real 9DULDEOHVW\SHIRUIUDFWLRQVFRQWDLQLQJGHFLPDOSRLQWV
5281'83LQWKH1&SDUWVSURJUDP

N10 X = ROUNDUP(3.5) Y = ROUNDUP(R2+2)


N15 R2 = ROUNDUP($AA_IM[Y])
N20 WHEN X = = 100 DO Y = ROUNDUP($AA_IM[X])

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)OH[LEOH1&SURJUDPPLQJ 
5281'835RXQGXS

([DPSOHV
ROUNDUP(3.1) SURGXFHV
ROUNDUP(3.6) SURGXFHV
ROUNDUP(-3.1) SURGXFHV
ROUNDUP(-3.6) SURGXFHV
ROUNDUP(3.0) SURG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RI
VXEURXWLQHZLWKRXWLQWHUUXSWLRQRIFRQWLQXRXVSDWKPRGHDQGZLWKRXWIXQFWLRQRXWSXWWRWKH
3/&

3URJUDPPLQJ
7KHSDUDPHWHUVUHOHYDQWIRUSDUDPHWHUWUDQVIHUPXVWEHOLVWHGDWWKHEHJLQQLQJRIWKH
VXEURXWLQHZLWKWKHLUW\SHDQGQDPH
3DUDPHWHUWUDQVIHUFDOOE\YDOXH
PROC PROGRAM_NAME(VARIABLE_TYPE1 VARIABLE1,VARIABLE_TYPE2
VARIABLE2,)
([DPSOH
PROC CONTOUR(REAL LENGTH, REAL WIDTH)
3DUDPHWHUWUDQVIHUFDOOE\UHIHUHQFHLGHQWLILFDWLRQZLWKNH\ZRUG9$5
PROC PROGRAM_NAME(VAR VARIABLE_TYPE1 VARIABLE1,VAR VARIABLE_
TYPE2 ,)
([DPSOH
PROC CONTOUR(VAR REAL LENGTH, VAR REAL WIDTH)
$UUD\WUDQVIHUZLWKFDOOE\UHIHUHQFHLGHQWLILFDWLRQZLWKNH\ZRUG9$5
PROC PROGRAM_NAME(VAR VARIABLE_TYPE1 ARRAY_NAME1[array size],
VAR VARIABLE_TYPE2 ARRAY_NAME2[array size],
VAR VARIABLE_TYPE3 ARRAY_NAME3[array size1, array size2],
VAR VARIABLE_TYPE4 ARRAY_NAME4[ ],
VAR VARIABLE_TYPE5 ARRAY_NAME5 [,array size])
([DPSOH
PROC PALLET (VAR INT ARRAY[,10])

3DUDPHWHUV

PROC )LUVWLQVWUXFWLRQLQDSURJUDP
PROGRAM NAME 6XEURXWLQHQDPHWKDWVKRXOGDFFHSWWKHUHOHYDQWYDOXHVRIWKHSDUDPHWHUV
VARIABLE_TYPE 9DULDEOHW\SHVZLWKVSHFLILFDWLRQRIWKHYDULDEOHYDOXHV
VARIABLE 6HYHUDOYDOXHVFDQEHVSHFLILHG
VAR .H\ZRUGIRUWKHW\SHRIWKHSDUDPHWHUWUDQVIHU
FIELDNAME (OHPHQWVRIDQDUUD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WUDQVIHU 352&9$5 

0DLQSURJUDP

9DOXH
DVVLJQPHQW
/(1*7+ 
:,'7+  6XESURJUDP
/(1*7+:,'7+

1HZYDOXH
DVVLJQPHQW
/(1*7+ 
:,'7+ 
1HZYDOXHV
YDOLG

/(1*7+:,'7+
1HZYDOXHVYDOLG

x 3DUDPHWHUWUDQVIHUZLWKGDWDH[FKDQJH FDOOE\UHIHUHQFH 
$Q\FKDQJHWRWKHSDUDPHWHUVLQWKHVXEURXWLQHDOVRFDXVHVWKHSDUDPHWHUWRFKDQJHLQWKH
PDLQSURJUDP VHH)LJ 

([DPSOHYDULDEOHDUUD\OHQJWKV

%_N_DRILLING_PLATE_MPF 0DLQSURJUDP
DEF REAL TABLE[100,2] 'HILQHSRVLWLRQWDEOH
EXTERN DRILLING_PATTERN (VAR REAL[,2],INT)
TABLE[0,0]=-17.5 'HILQHSRVLWLRQV

TABLE[99.1]=45
DRILLING_PATTERN(TABLE,100) 6XEURXWLQHFDOO
M30

([DPSOHFUHDWLQJDGULOOLQJSDWWHUQXVLQJDWUDQVIHUUHGYDULDEOHOHQJWKSRVLWLRQWDEOH

%_N_DRILLING_PATTERN_SPF 6XEURXWLQH
PROC DRILLING_PATTERN(VAR REAL ARRAY[,2],-> 3DUDPHWHUGHOLYHU\
-> INT NUMBER)
DEF INT COUNTER
STEP: G1 X=ARRAY[COUNTER,0]-> 0DFKLQLQJVHTXHQFH
-> Y=ARRAY[COUNTER,1] F100
Z=IC(-5)
Z=IC(5)
COUNT=COUNT+1

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
6XEURXWLQHV0DFURV 
6XEURXWLQHVZLWKSDUDPHWHUWUDQVIHU 352&9$5 

IF COUNT<NUMBER GOTOB STEP


RET 6XEURXWLQHHQG


,QWHUUXSWLRQRIFRQWLQXRXVSDWKPRGH
7RSUHYHQWFRQWLQXRXVSDWKPRGHIURPEHLQJLQWHUUXSWHG
QRWKDYHWKH6$9(DWWULEXWH)RUIXUWKHULQI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EURXWLQHLVLQWKHZRUNSLHFHRULQWKHJOREDOVXEURXWLQH
GLUHFWRU\<RXGRQRWKDYHWRGHFODUHF\FOHVDV EXTERN
,QFRPSOHWHSDUDPHWHUWUDQVIHU
,QDVXEURXWLQHFDOORQO\PDQGDWRU\YDOXHVDQGSDUDPHWHUVFDQEHRPLWWHG,QWKLVFDVH
]HURLQWKHVXEURXWLQH
WKHSDUDPHWHULQTXHVWLRQLVDVVLJQHGWKHYDOXH]
7KHFRPPDPXVWDOZD\VEHZULWWHQWRLQGLFDWHWKHVHTXHQFH,IWKHSDUDPHWHUVDUHDWWKH
HQGRIWKHVHTXHQFH\RXFDQRPLWWKHFRPPDDVZHOO

&DXWLRQ
 7KHFXUUHQWSDUDPHWHURIW\SH$;,6PXVWQRWEHRPLWWHG9$5SDUDPHWHUVPXVWEH
WUDQVIHUUHGFRPSOHWHO\

([DPSOH6XEURXWLQHZLWKSDUDPHWHUWUDQVIHUGHFODUDWLRQZLWK(;7(51
N10 EXTERN BORDER(REAL, REAL, REAL) 

N40 BORDER(15.3,20.2,5) 
N10 Declaration of the subroutine, N40 Subroutine call with
parameter transfer. 

0DLQSURJUDP

1(;7(51$/
%25'(5 5($/5($/5($/


1%25'(5 

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 6XEURXWLQHV0DFURV
 &DOOVXEURXWLQHV /RU(;7(51 

([DPSOH6XEURXWLQHFDOOZLWKSDUDPHWHUWUDQVIHU
N10 DEF REAL LENGTH,WIDTH,DEPTH 
N20 
N30 LENGTH=15.3 WIDTH=20.2 DEPTH=5 
N40 BORDER(LENGTH,WIDTH,DEPTH) 
RU
N40 BORDER(15.3,20.2,5) 

0DLQSURJUDP

1/(1*7+ :,'7+ '(37+ 


1%25'(5 /(1*7+:,'7+'(37+
RU
1%25'(5 

([DPSOHVXEURXWLQH
PROC SUB1 (INT VAR1, DOUBLE VAR2) 
IF $P_SUBPAR[1]==TRUE 
;Parameter VAR1 was programmed in the subroutine call 
ELSE 
;Parameter VAR1 was not programmed in the subroutine call 
;and initialized by the system with the default value 0
ENDIF 
IF $P_SUBPAR[2]==TRUE 
;Parameter VAR2 was programmed in the subroutine call 
ELSE 
;Parameter VAR2 was not programmed in the subroutine call 
;programmed and initialized by the system with the default value 0.0 
ENDIF 
;Parameter 3 is not defined 
IF $P_SUBPAR[3]==TRUE -> Alarm 17020 
M17 

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
6XEURXWLQHV0DFURV 
&DOOVXEURXWLQHV /RU(;7(51 

'HVFULSWLRQ

&DXWLRQ
 6XESURJUDPGHILQLWLRQFRUUHVSRQGVWRVXESURJUDPFDOO
%RWKWKHYDULDEOHW\SHVDQGWKHVHTXHQFHRIWUDQVIHUPXVWPDWFKWKHGHILQLWLRQVGHFODUHG
XQGHU352&LQWKHVXESURJUDPQDPH7KHSDUDPHWHUQDPHVFDQEHGLIIHUHQWLQWKHPDLQ
SURJUDPDQGVXESURJUDPV

'HILQLWLRQLQWKHVXESURJUDP
PROC BORDER(REAL LENGTH, REAL WIDTH, REAL DEPTH)
&DOOLQWKHPDLQSURJUDP
N30 BORDER(LENGTH, WIDTH, DEPTH)

,QFRPSOHWHSDUDPHWHUWUDQVIHU
%DFNWRWKHODVWH[DPSOH
N40 BORDER(15.3, ,5)
7KHPHDQYDOXHZDVRPLWWHGKHUH

0DLQSURJUDP

1/(1*7+ :,'7+ '(37+ 


1%25'(5 

:LWKLQFRPSOHWHSDUDPHWHUWUDQVIHULWLVSRVVLEOHWRWHOOE\WKHV\VWHPYDULDEOH
$P_SUBPAR[i]ZKHWKHUWKHWUDQVIHUSDUDPHWHUZDVSURJUDPPHGIRUVXESURJUDPVRUQRW
7KHV\VWHPYDULDEOHFRQWDLQVDVDUJXPHQW L WKHQXPEHURIWKHWUDQVIHUSDUDPHWHU
7KHV\VWHPYDULDEOH$P_SUBPARUHWXUQV
x 758(LIWKHWUDQVIHUSDUDPHWHUZDVSURJUDPPHG
x )$/6(LIQR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UL]HGVXEURXWLQHUHWXUQ 5(7 

 3DUDPHWHUL]HGVXEURXWLQHUHWXUQ 5(7 

)XQFWLRQ
8VXDOO\D5(7RU0HQGRIVXEURXWLQHUHWXUQVWRWKHFDOOLQJSURJUDPDQGH[HFXWLRQRIWKH
SDUWVSURJUDPFRQWLQXHVZLWKWKHOLQHVIROORZLQJWKHVXEURXWLQHFDOO+RZHYHUVRPH
DSSOLFDWLRQVPD\UHTXLUHSURJUDPUHVXPSWLRQDWDQRWKHUSRVLWLRQ
x &RQWLQXDWLRQRIH[HFXWLRQDIWHUFDOOXSRIWKHFXWWLQJF\FOHVLQ,62GLDOHFWPRGHDIWHUWKH
FRQWRXUGHILQLWLRQ
x 5HWXUQWRPDLQSURJUDPIURPDQ\VXEURXWLQHOHYHO HYHQDIWHU$68% IRUHUURUKDQGOLQJ
x 5HWXUQRYHUWZRRUPRUHSURJUDPOHYHOVIRUVSHFLDODSSOLFDWLRQVLQFRPSLOHF\FOHVDQGLQ
,62GLDOHFWPRGH

3URJUDPPLQJ
RET (<blocknumber/label>, <block after block with
blocknumber/label>,
<number of return levels>), <return to program start>)
RU
RET (<block_number/label>, < >, < >) 
RUVXEURXWLQHUHWXUQRYHUVHYHUDOOHYHOV
UHWXUQWRWKHVSHFLILHGQXPEHURIVXEURXWLQHOHYHOV 
RET (, , <number of return levels>, <return to program start>) 

3DUDPHWHUV
7KHSDUDPHWHUL]DEOHFRPPDQG5(7FDQIXOILOOWKHVHUHTXLUHPHQWVRIWKHFRQWLQXDWLRQRUWKH
UHWXUQZLWKSDUDPHWHUV
 EORFNBQXPEHUODEHO!
 EORFNDIWHUEORFNZLWKEORFNQXPEHUODEHO!
 QXPEHURIUHWXUQOHYHOV!
 UHWXUQWREHJRISURJUDP!

RET 6XEURXWLQHHQG
XVHLQVWHDGRI0 
<block_number/label> 3DUDPHWHU%ORFNQXPEHURUODEHODV
675,1* FRQVWDQWRUYDULDEOH RIWKHEORFN
DWZKLFKWRUHVXPHH[HFXWLRQ
([HFXWLRQLVUHVXPHGLQWKHFDOOLQJSURJUDP
DWWKHEORFNZLWKWKH%ORFNQXPEHUODEHO
<block after block with block number/label>, 3DUDPHWHURIW\SH,17(*(5
,IWKHYYDOXHLVJUHDWHUWKDQH[HFXWLRQLV
UHVXPHGDW%ORFNQXPEHUODEHO
,IWKHYYDOXHLVHTXDOWRWKHVXEURXWLQH
UHWXUQJRHVWRWKHEORFNZLWKEORFN
QXPEHUODEHO!

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 6XEURXWLQHV0DFURV
 3DUDPHWHUL]HGVXEURXWLQHUHWXUQ 5(7 

<no_of_return_levels>, 3DUDPHWHURIW\SH,17(*(5ZLWKWKH
SHUPLVVLEOHYYDOXHVWR
9DOXH 7KHSURJUDPLVUHVXPHGLQWKH
FXUUHQWSURJUDPOHYHO OLNH5(7ZLWKRXW
SDUDPHWHUV 
9DOXH 7KHSURJUDPLVUHVXPHGLQWKH
FXUUHQWSURJUDPOHYHOVNLSSLQJRQH
OHYHOHWF
<return to beg. of program>, 3DUDPHWHURIW\SH%22/
9DOXHRU
9DOXH ,IWKHUHWXUQJRHVWRWKHPDLQ
SURJUDPDQG,62GLDOHFWPRGHLVDFWLYH
WKHUHH[HFXWLRQZLOOEHUHVXPHGDWWKH
EHJLQQLQJRIWKHSURJUDP

([DPSOHRIHUURUKDQGOLQJ5HVXPSWLRQLQWKHPDLQSURJUDPDIWHU$683SURFHVVLQJ

N10010 CALL "UP1" 3URJUDPOHYHOPDLQSURJUDP


1352&83 3URJUDPOHYHO
1&$//83
1352&83 3URJUDPOHYHO
1352&$68% 3URJUDPOHYHO $68%H[HFXWLRQ 
5(7 1 3URJUDPOHYHO
15(7 13B67$&.  6XEURXWLQHUHWXUQ
N10900 5HVXPSWLRQLQPDLQSURJUDP
N10910 MCALL 'HDFWLYDWHPRGDOVXEURXWLQH
N10920 G0 G60 G40 M5 &RUUHFWIXUWKHUPRGDOVHWWLQJV


'HVFULSWLRQ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KHGDQGVXEURXWLQH/LVH[HFXWHG
N10 G0 X0 Y0
N20 MCALL L70
N30 L80

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 6XEURXWLQHV0DFURV
 0RGDOVXEURXWLQH 0&$// 

0DLQSURJUDP

1*;<
10&$/// 6XESURJUDP /
1;<

1;<

,QWKLVH[DPSOHWKHIROORZLQJ1&EORFNVZLWKSURJUDPPHGSDWKD[HVDUHLQVXEURXWLQH/
/LVFDOOHGE\/

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
6XEURXWLQHV0DFURV 
,QGLUHFWVXEURXWLQHFDOO &$// 

 ,QGLUHFWVXEURXWLQHFDOO &$// 

)XQFWLRQ
'HSHQGLQJRQWKHSUHYDLOLQJFRQGLWLRQVDWDSDUWLFXODUSRLQWLQWKHSURJUDPGLIIHUHQW
VXEURXWLQHVFDQEHFDOOHG7KHQDPHRIWKHVXEURXWLQHLVVWRUHGLQDYDULDEOHRIW\SH
675,1*7KHVXEURXWLQHFDOOLVLVVXHGZLWK&$//DQGWKHYDULDEOHQDPH

3URJUDPPLQJ
CALL <program name>

3DUDPHWHUV

CALL .H\ZRUGIRULQGLUHFWVXEURXWLQHFDOO
<program_name> 9DULDEOHRUFRQVWDQWRIW\SHVWULQJ
1DPHRIWKHSURJUDPFRQWDLQLQJWKHSURJUDPVHFWLRQWRUXQ


&DXWLRQ
 7KHLQGLUHFWVXEURXWLQHFDOOLVRQO\SRVVLEOHIRUVXEURXWLQHVZLWKRXWSDUDPHWHUWUDQVIHU
)RUGLUHFWFDOOLQJRIWKHVXEURXWLQHVWRUHWKHQDPHLQDVWULQJFRQVWDQW

([DPSOH
'LUHFWFDOOZLWKVWULQJFRQVWDQW
CALL "/_N_WKS_DIR/_N_SUBPROG_WPD/_N_PART1_SPF"
,QGLUHFWFDOOYLDYDULDEOH
DEF STRING[100] PROGNAME
PROGNAME="/_N_WKS_DIR/_N_SUBPROG_WPD/_N_PART1_SPF"
CALL PROGNAME
7KHVXEURXWLQH3DUWLVDVVLJQHGWKHYDULDEOH352*1$0(:LWK&$//DQGWKHSDWKQDPH
\RXFDQFDOOWKHVXEURXWLQHLQGLUHFWO\

 5HSHDWLQJSURJUDPVHFWLRQVZLWKLQGLUHFWSURJUDPPLQJ &$// 

)XQFWLRQ
&$//LVXVHGWRFDOOXSVXEURXWLQHVLQGLUHFWO\LQZKLFKWKHSURJUDPVHFWLRQUHSHWLWLRQV
GHILQHGZLWK%/2&.DUHUXQDFFRUGLQJWRWKHVWDUWODEHODQGHQGODEHO

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 6XEURXWLQHV0DFURV
 5HSHDWLQJSURJUDPVHFWLRQVZLWKLQGLUHFWSURJUDPPLQJ &$// 

3URJUDPPLQJ
CALL <program_name> BLOCK <start_label> TO <end_label>
CALL BLOCK <start_label> TO <end_label>

3DUDPHWHUV

CALL .H\ZRUGIRULQGLUHFWVXEURXWLQHFDOO
<program_name> (option) 9DULDEOHRUFRQVWDQWRIW\SHVWULQJQDPHRI
WKHSURJUDPFRQWDLQLQJWKHSURJUDPVHFWLRQ
WRUXQ
,IQRSURJUDPBQDPH!LVSURJUDPPHGWKH
SURJUDPVHFWLRQZLWKVWDUWBODEHO!
HQGBODEHO!LQWKHFXUUHQWSURJUDPLV
VHDUFKHGIRUDQGUXQ
BLOCK ... TO ... .H\ZRUGIRU
LQGLUHFWSURJUDPVHFWLRQUHSHWLWLRQ
<start_label> <end_label> 9DULDEOHRUFRQVWDQWRIW\SHVWULQJ
5HIHUVWRWKHEHJLQQLQJRUHQGRIWKH
SURJUDPVHFWLRQWRUXQ

([DPSOH

DEF STRING[20] STARTLABEL, ENDLABEL


STARTLABEL = "LABEL_1"
ENDLABEL = "LABEL_2"
...
CALL "CONTOUR_1" BLOCK STARTLABEL TO ENDLABEL ...
M17
PROC CONTOUR_1 ...
LABEL_1 %HJLQQLQJRISURJUDPVHFWLRQUHSHWLWLRQ
N1000 G1 ...
LABEL_2 (QGRISURJUDPVHFWLRQUHSHWLWLRQ


-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
6XEURXWLQHV0DFURV 
,QGLUHFWFDOORIDSURJUDPSURJUDPPHGLQ,62ODQJXDJH ,62&$// 

 ,QGLUHFWFDOORIDSURJUDPSURJUDPPHGLQ,62ODQJXDJH ,62&$// 

)XQFWLRQ
7KHLQGLUHFWSURJUDPFDOO,62&$//LVXVHGWRFDOOXSDSURJUDPLQ,62ODQJXDJH
7KH,62PRGHVHWLQWKHPDFKLQHGDWDLVDFWLYDWHG$WWKHHQGRIWKHSURJUDPWKHRULJLQDO
PRGHLVUHDFWLYDWHG,IQR,62PRGHLVVHWLQWKHPDFKLQHGDWDWKHVXEURXWLQHLVFDOOHGLQ
6LHPHQVPRGH
)RUIXUWKHULQIRUPDWLRQDERXWWKH,62PRGHVHH
)%)$,62'LDOHFWVIXQFWLRQDOGHVFULSWLRQ

3URJUDPPLQJ
ISOCALL <program_name>

3DUDPHWHUV

ISOCALL 6XEURXWLQHFDOOZLWKZKLFKWKH,62PRGHVHWLQWKHPDFKLQHGDWDLV
DFWLYDWHG
<program_name> 9DULDEOHRUFRQVWDQWRIW\SHVWULQJ
1DPHRIWKHSURJUDPLQ,62ODQJXDJH

([DPSOH&DOOLQJDFRQWRXUZLWKF\FOHSURJUDPPLQJIURP,62PRGH

%_N_0122_SPF &RQWRXUGHVFULSWLRQLQ,62PRGH
N1010 G1 X10 Z20 
N1020 X30 R5 
N1030 Z50 C10 
N1040 X50 
N1050 M99 
N0010 DEF STRING[5] PROGNAME = 0122 6LHPHQVSDUWVSURJUDP F\FOH 
... 
N2000 R11 = $AA_IW[X] 
N2010 ISOCALL PROGNAME 
N2020 R10 = R10+1 5XQSURJUDPVSILQ,62PRGH
N2300 ...


N2400 M30

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 6XEURXWLQHV0DFURV
 &DOOLQJVXEURXWLQHZLWKSDWKVSHFLILFDWLRQDQGSDUDPHWHUV 3&$// 

 &DOOLQJVXEURXWLQHZLWKSDWKVSHFLILFDWLRQDQGSDUDPHWHUV 3&$// 

)XQFWLRQ
:LWK3&$//\RXFDQFDOOVXEURXWLQHVZLWKWKHDEVROXWHSDWKDQGSDUDPHWHUWUDQVIHU

3URJUDPPLQJ
PCALL <path/program_name>(parameter 1, , parameter n)

3DUDPHWHUV

PCALL .H\ZRUGIRUVXEURXWLQHFDOOZLWKDEVROXWHSDWKQDPH
<path_name> $EVROXWHSDWKQDPHEHJLQQLQJZLWKLQFOXGLQJVXEURXWLQHQDPHV
,IQRDEVROXWHSDWKQDPHLVVSHFLILHG3&$//EHKDYHVOLNHDVWDQGDUG
VXEURXWLQHFDOOZLWKDSURJUDPLGHQWLILHU
7KHSURJUDPLGHQWLILHULVZULWWHQZLWKRXWWKHOHDGLQJB1BDQGZLWKRXWDQ
H[WHQVLRQ
,I\RXZDQWWKHSURJUDPQDPHWREHSURJUDPPHGZLWKWKHOHDGLQJB1B
DQGWKHH[WHQVLRQ\RXPXVWGHFODUHLWH[SOLFLWO\ZLWKWKHOHDGLQJB1BDQG
WKHH[WHQVLRQDV([WHUQ
Parameters 1 to n &XUUHQWSDUDPHWHUVLQDFFRUGDQFHZLWKWKH352&VWDWHPHQWRIWKH
VXEURXWLQH

([DPSOH
PCALL/_N_WKS_DIR/_N_SHAFT_WPD/SHAFT(parameter1, parameter2, ...)

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
6XEURXWLQHV0DFURV 
([WHQGVHDUFKSDWKIRUVXEURXWLQHFDOOVZLWK&$//3$7+

 ([WHQGVHDUFKSDWKIRUVXEURXWLQHFDOOVZLWK&$//3$7+

)XQFWLRQ
7KH&$//3$7+FRPPDQGLVXVHGWRH[WHQGWKHVHDUFKSDWKIRUVXEURXWLQHFDOOV7KDW
DOORZV\RXWRFDOOVXEURXWLQHVIURPDQRQVHOHFWHGZRUNSLHFHGLUHFWRU\ZLWKRXWVSHFLI\LQ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1B:67

N010 PROC ROUGHING


N020 G1 F1000
N030 X= ... Y= ... Z= ...
N040 ...
...
...
N999999 M17


([HFXWLRQIURPQHWZRUNGULYH
6\VWHPV6,180(5,.VROXWLRQOLQHSRZHUOLQHZLWK+0,VO+0,$GYDQFHG+0,(PEHGGHG
7KH&RQWRXUVSISURJUDPWREHUHORDGHGLVVWRUHGRQWKHQHWZRUNGULYHLQWKHGLUHFWRU\
??5??:RUNSLHFHV

...
N... EXTCALL("\\R4711\Workpieces\Contour2.spf")
...

([WHUQDOSURJUDPSDWK
7KHSDWKIRUWKHH[WHUQDOVXESURJUDPGLUHFWRU\FDQEHSUHVHWXVLQJVHWWLQJGDWD
6'6&B(;7B352*B3$7+
7RJHWKHUZLWKWKHVXESURJUDPSDWKRULGHQWLILHUVSHFLILHGZLWKWKHEXTCALLFDOOWKLVIRUPV
WKHHQWLUHSDWKIRUWKHSURJUDPWREHFDOOHG

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
6XEURXWLQHV0DFURV 
([HFXWHH[WHUQDOVXEURXWLQH (;7&$// 

(IIHFWV
(;7&$//FDOOZLWKDEVROXWHSDWKQDPH
,IWKHVXESURJUDPH[LVWVDWWKHVSHFLILHGSDWKLWZLOOEHH[HFXWHGIROORZLQJWKHEXTCALLFDOO
,ILWGRHVQRWH[LVWSURJUDPH[HFXWLRQLVFDQFHOOHG
(;7&$//FDOOZLWKUHODWLYHSDWKQDPHZLWKRXWSDWKQDPH
,QWKHHYHQWRIDQEXTCALLFDOOZLWKDUHODWLYHSDWKQDPHRUZLWKRXWDSDWKQDPH
WKHDYDLODEOHSURJUDPPHPRULHVDUHVHDUFKHGDVIROORZV
x ,IDSDWKQDPHLVSUHVHWLQ6'WKHGDWDVSHFLILHGLQWKHEXTCALLFDOO
SURJUDPQDPHRUZLWKUHODWLYHSDWKQDPH LVVHDUFKHGIRUILUVWVWDUWLQJIURPWKLVSDWK
7KHDEVROXWHSDWKUHVXOWVIURPOLQNLQJWKH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HVLQJOHEORFNVXSSUHVVLRQLQWKHSURJUDP

N10 G1 X100 F1000 


N20 SBLOF 
N30 Y20 'HDFWLYDWHVLQJOHEORFN
N40 M100 
N50 R10=90 
N60 SBLON 
N70 M110 5HDFWLYDWHVLQJOHEORFN
N80 ...

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 6XEURXWLQHV0DFURV
 6XSSUHVVLQGLYLGXDOEORFN 6%/2)6%/21 

7KHDUHDEHWZHHQ1DQG1LVH[HFXWHGDVRQHVWHSLQVLQJOHEORFNPRGH

([DPSOHF\FOHLVWRDFWOLNHDFRPPDQGIRUDXVHU
0DLQSURJUDP

N10 G1 X10 G90 F200


N20 X-4 Y6
N30 CYCLE1
N40 G1 X0
N50 M30
Program cycle:1
N100 PROC CYCLE1 DISPLOF SBLOF 6XSSUHVVVLQJOHEORFN
N110 R10=3*SIN(R20)+5
N120 IF (R11 <= 0)
N130 SETAL(61000)
N140 ENDIF
N150 G1 G91 Z=R10 F=R11
N160 M17

&<&/(LVSURFHVVHGIRUDQDFWLYHVLQJOHEORFNLHWKH6WDUWNH\PXVWEHSUHVVHGRQFHIRU
PDFKLQLQJZLWK&<&/(

([DPSOHDQ$683ZKLFKLVVWDUWHGE\WKH3/&LQRUGHUWRDFWLYDWHDPRGLILHG]HURRIIVHWDQGWRRO
RIIVHWVLVWREHH[HFXWHGLQYLVLEO\

N100 PROC ZO SBLOF DISPLOF


N110 CASE $P_UIFRNUM OF 0 GOTOF _G500
-->1 GOTOF _G54 2 GOTOF _G55 3
-->GOTOF _G56 4 GOTOF _G57
-->DEFAULT GOTOF END
N120 _G54: G54 D=$P_TOOL T=$P_TOOLNO
N130 RET
N140 _G54: G55 D=$P_TOOL T=$P_TOOLNO
N150 RET
N160 _G56: G56 D=$P_TOOL T=$P_TOOLNO
N170 RET
N180 _G57: G57 D=$P_TOOL T=$P_TOOLNO
N190 RET
N200 END: D=$P_TOOL T=$P_TOOLNO
N210 RET

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
6XEURXWLQHV0DFURV 
6XSSUHVVLQGLYLGXDOEORFN 6%/2)6%/21 

([DPSOHXVH0',*125(B6,1*/(%/2&.B0$6.ELW WRSUHYHQWVWRSSLQJ
,QVLQJOHEORFNW\SH6%/ VWRSDWHDFKSDUWVSURJUDPOLQH LQWKH6%/21VWDWHPHQW

;SBL2 is active
;$MN_IGNORE_SINGLEBLOCK_MASK = 'H1000' ,QWKH0'VHWELW 
N10 G0 X0 6
6WRSDWWKLVSDUWVSURJUDPOLQH
N20 X10 6
6WRSDWWKLVSDUWVSURJUDPOLQH
N30 CYCLE 7UDYHUVLQJEORFNJHQHUDWHGE\WKHF\FOH
PROC CYCLE SBLOF 6XSSUHVVVLQJOHEORFNVWRS
N100 R0 = 1
N110 SBLON %HFDXVHRI0'ELW S
SUHYHQWV
VWRSSLQJ
V
N120 X1 6
6WRSDWWKLVSDUWVSURJUDPOLQH
N140 SBLOF
N150 R0 = 2
RET
N50 G90 X20 6
6WRSDWWKLVSDUWVSURJUDPOLQH
M30

([DPSOHVLQJOHEORFNVXSSUHVVLRQIRUSURJUDPQHVWLQJ

6LQJOHEORFNLVDFWLYH
N10 X0 F1000 6
6WRSDWWKLVEORFN
N20 UP1(0)
352&83 ,17B15 6%/2) 6LQJOHEORFN2))
1;
183  
352&83 ,17B15 
1;
16%/21 6LQJOHEORFN21
1; 6
6WRSDWWKLVEORFN
183  
352&83 ,17B15 
16%/2) 6LQJOHEORFN2))
1;
16%/21 6LQJOHEORFN21
1; 6
6WRSDWWKLVEORFN
16%/2) 6LQJOHEORFN2))
1;
10 6%/2)DFWLYH
1; 6
6WRSDWWKLVEORFN
6%/21DFWLYH
10 6
6WRSDWWKLVEORFN
6%/21DFWLYH
1;

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 6XEURXWLQHV0DFURV
 6XSSUHVVLQGLYLGXDOEORFN 6%/2)6%/21 

10 6
6WRSDWWKLVUHWXUQEORFN
6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OOHQJWK 

0DFKLQLQJW\SH 

6\QWD[GHVFULSWLRQIRUWKHXFFRPILOHXVHUF\FOHGHVFULSWLRQ
+HDGHUOLQHIRUHDFKF\FOH
DVLQWKHFRYFRPILOHSUHFHGHGE\
//C <number> (<cycle_name>) comment_text 
([DPSOH
//C25(MY_CYCLE_1) usercycle_ 
/LQHIRUGHVFULSWLRQIRUHDFKSDUDPHWHU
(<data_type_id> / <minimum_value> <maximum_value>
/ <preset_value> /
'DWDW\SHLGHQWLILHU

5 IRUUHDO
, IRULQWHJHU
& IRUFKDUDFWHU FKDUDFWHU 
6 IRUVWULQJ

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
6XEURXWLQHV0DFURV 
0DFURWHFKQLTXH '(),1($6 

0LQLPXPYDOXHPD[LPXPYDOXH FDQEHRPLWWHG 
/LPLWDWLRQVRIWKHHQWHUHGYDOXHVZKLFKDUHFKHFNHGDWLQSXWYDOXHVRXWVLGHWKLVUDQJH
FDQQRWEHHQWHUHG,WLVSRVVLEOHWRVSHFLI\DQHQXPHUDWLRQRIYDOXHVZKLFKFDQEHRSHUDWHG
YLDWKHWRJJOHNH\WKH\DUHOLVWHGSUHFHGHGE\ RWKHUYDOXHVDUHWKHQQRWSHUPLVVLEOH
([DPSOH
(I/*123456/1/Machining type) 
7KHUHDUHQROLPLWVIRUVWULQJDQGFKDUDFWHUW\SHV
'HIDXOWYDOXH FDQEHRPLWWHG 
9DOXHZKLFKLVWKHGHIDXOWYDOXHLQWKHFRUUHVSRQGLQJVFUHHQZKHQWKHF\FOHLVFDOOHGLWFDQ
EHFKDQJHGYLDRSHUDWRULQSXW
&RPPHQW
7H[WRIXSWRFKDUDFWHUVZKLFKLVGLVSOD\HGLQIURQWRIWKHSDUDPHWHULQSXWILHOGLQWKHFDOO
VFUHHQIRUWKHF\FOH

 0DFURWHFKQLTXH '(),1($6 

)XQFWLRQ
$PDFURLVDVHTXHQFHRILQGLYLGXDOVWDWHPHQWVZKLFKKDYH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9 6SLQGOHVWRSFRRODQWRII
DEFINE M6 AS L6 &DOOWRROFKDQJHSURJUDP
DEFINE G80 AS MCALL 'HVHOHFWGULOOLQJF\FOH
M30

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
)LOHDQG3URJUDP0DQDJHPHQW 
 3URJUDPPHPRU\

)XQFWLRQ
)LOHVDQGSURJUDPV HJPDLQSURJUDPVDQGVXESURJUDPVPDFURGHILQLWLRQV DUH
SHUVLVWHQWO\VDYHGLQWKHSURJUDPPHPRU\ SDVVLYHILOHV\VWHP 
5HIHUHQFHV
)%)XQFWLRQ0DQXDOIRU([WHQGHG)XQFWLRQV0HPRU\&RQILJXUDWLRQ 6 
$QXPEHURIILOHW\SHVDUHDOVRVWRUHGKHUHWHPSRUDULO\DQGWKHVHFDQEHWUDQVIHUUHGWRWKH
ZRUNLQJPHPRU\DVUHTXLUHG HJIRULQLWLDOL]DWLRQSXUSRVHVRQPDFKLQLQJRIDVSHFLILF
ZRUNSLHFH 

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)LOHDQG3URJUDP0DQDJHPHQW 
3URJUDPPHPRU\

3URJUDPPHPRU\

B1B'()B',5 B1B&67B',5 B1B&0$B',5 B1B&86B',5 B1B63)B',5 B1B03)B',5 B1B:.6B',5 B1B&20B',5

B1B60$&B'() B1B/B63) B1B*/2%B63) B1B03)B03)


B1B00$&B'() B1BB63) B1BB63) B1B029B03)
B1B80$&B'() B1BB03)
B1B6*8'B'() B1B
B1B0*8'B'()
B1B8*8'B'()
B1B*8'B'()

B1B*8'B'()
B1B32&.(7B63)
B1B6+$)7B:3' B1B03)B:3' 
B1BB63)

B1B6+$)7B03) B1B03)B03)
B1B3$57B03) B1B/B63)
B1B3$57B63) B1BB
B1B3$57B63)
B1B6+$)7B,1,
B1B6+$)7B6($
B1B3$57B,1,
%ODFNQDPHSUHGHILQHG B1B3$57B8)5
2UDQJHQDPHVSHFLILHGE\WKHXVHU B1B3$57B&20
B1B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DO)&%3%$
 )LOHDQG3URJUDP0DQDJHPHQW
 :RUNLQJPHPRU\

:KHQWKHFRQWUROLVVWDUWHGXSLQLWLDOO\DVHWRIGDWDLVDXWRPDWLFDOO\ORDGHGWRHQVXUHSURSHU
RSHUDWLRQRIWKHFRQWURO

([DPSOHSURFHGXUHIRUPXOWLFKDQQHOFRQWUROV
&+$1'$7$ FKDQQHOQXPEHU IRUPXOWLSOHFKDQQHOVLVSHUPLWWHGRQO\LQWKH
N_INITIAL_INIILOH
N_INITIAL_INILVWKHLQVWDOODWLRQILOHZLWKZKLFKDOOGDWDRIWKHFRQWUROLVLQLWLDOL]HG
%_N_INITIAL_INI
CHANDATA(1)
;Channel 1 machine axis assignment
$MC_AXCONF_MACHAX_USED[0]=1
$MC_AXCONF_MACHAX_USED[1]=2
$MC_AXCONF_MACHAX_USED[2]=3
CHANDATA(2)
;Machine axis assignment channel 2
$MC_AXCONF_MACHAX_USED[0]=4
$MC_AXCONF_MACHAX_USED[1]=5
CHANDATA(1)
;Axial machine data
;Exact stop window coarse:
$MA_STOP_LIMIT_COARSE[AX1]=0.2 ;Axis 1
$MA_STOP_LIMIT_COARSE[AX2]=0.2 ;Axis 2
;Exact stop window fine:
$MA_STOP_LIMIT_FINE[AX1]=0.01 ;axis 1
$MA_STOP_LIMIT_FINE[AX1]=0.01 ;axis 2

&DXWLRQ
 &+$1'$7$VWDWHPHQW
,QWKHSDUWVSURJUDPWKH&+$1'$7$VWDWHPHQWPD\RQO\EHXVHGIRUWKHFKDQQHORQZKLFK
WKH1&SURJUDPLVUXQQLQJLHWKHVWDWHPHQWFDQEHXVHGWRSURWHFW1&SURJUDPVIURP
EHLQJH[HFXWHGDFFLGHQWDOO\RQDGLIIHUHQWFKDQQHO
3URJUDPSURFHVVLQJLVDERUWHGLIDQHUURURFFXUV

 1RWH
,1,ILOHVLQMREOLVWVGRQRWFRQWDLQDQ\&+$1'$7$VWDWHPHQWV

6DYLQJWKHLQLWLDOL]DWLRQSURJUDPV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DO)&%3%$
 )LOHDQG3URJUDP0DQDJHPHQW
 'HILQLQJXVHUGDWD

3DUDPHWHUV

range 5DQJHLGHQWLILHVWKHYDULDEOHDVD*8'YDULDEOH
DQGGHILQHVLWVYDOLGLW\VFRSH
1&.1&.ZLGH
&+$1FKDQQHOZLGH
preprocessing_stop 2SWLRQDODWWULEXWHSUHSURFHVVLQJVWRS
6<153UHSURFHVVVWRSZKLOHUHDGLQJ
6<1:3UHSURFHVVVWRSZKLOHZULWLQJ
6<15:3UHSURFHVVVWRSZKLOHUHDGLQJZULWLQJ
Type 'DWDW\SH
%22/
5($/
,17
$;,6
)5$0(
675,1*
&+$5
name 9DULDEOHQDPH
[.., ...] 2SWLRQDOUXQOLPLWVIRUDUUD\YDULDEOHV
Value 2SWLRQDOLQLWLDOL]DWLRQYDOXHVHYHUDOYDOXHVIRU
DUUD\VHDFKVHSDUDWHGZLWKDFRPPDRU5(3
Z 6(7 Z:  ZZ 
,QLWLDOL]DWLRQYDOXHVDUHQRWSRVVLEOHIRUW\SH
)UDPH

([DPSOHGHILQLWLRQILOHJOREDOGDWD 6LHPHQV 

%_N_SGUD_DEF
;$PATH=/_N_DEF_DIR
DEF NCK REAL RTP 5HWUDFWLRQSODQH
DEF CHAN INT SDIS 6DIHW\FOHDUDQFH
M30

([DPSOHGHILQLWLRQILOHJOREDOGDWD PDFKLQHPDQXIDFWXUHU 

%_N_MGUD_DEF
;$PATH=/_N_DEF_DIR
;Global data definitions of the machine manufacturer

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)LOHDQG3URJUDP0DQDJHPHQW 
'HILQLQJXVHUGDWD

DEF NCK SYNRW INT QUANTITY ,PSOLFLWSUHSURFHVVVWRSZKLOHUHDGLQJZULWLQJ


6SHFLILFGDWDSUHVHQWLQWKHFRQWURO
$FFHVVIURPDOOFKDQQHOV
DEF CHAN INT TOOLTABLE[100] 7RROWDEOHIRUFKDQQHOVSHF9LHZ
RIWKHWRROQXPEHUDWPDJD]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VGHILQHG9RFDEXODU\ZRUGVPXVWEHSURJUDPPHGLQD
VHSDUDWHEORFN

3DUDPHWHUV

Protection level: $FFHVVSURWHFWLRQ $


$FFHVV3
3URWHFWLRQ 
APW n IRUZULWLQJ :
:ULWH 
APR n 5HDG 
IRUUHDGLQJ 5
n 3URWHFWLRQOHYHOQ
3URWHFWLRQOHYHOQIURPRU KLJKHVWOHYHO 
WRRU ORZHVWOHYHO 
Meaning of the protection levels n: 
0 or 10 6,(0(16
1 or 11 2(0B+,*+
2 or 12 2(0B/2:
3 or 13 (QGXVHU
4 or 14 .H\VZLWFK
... 
7 or 17 .H\VZLWFK
APW 0-7, APR 0-7 7KHVHYDOXHVDUHSHUPLVVLEOHLQ*8'PRGXOHV
The read and write protection acts on the DQGLQSURWHFWLRQOHYHOVIRULQGLYLGXDOYDULDEOHV
user interface and in the NC program or in LQWKH5('()LQVWUXFWLRQ
the MDA operation. 
APW 10-17, APR 10-17: 7KLVYDOXHVDUHRQO\SHUPLVVLEOHIRUPRGXOH
The read and write protection acts here on
VSHFLILF*8'SURWHFWLRQOHYHO
the user interface.


 1RWH
7RSURWHFWDFRPSOHWHILOHWKHFRPPDQGVPXVWEHSODFHGEHIRUHWKHILUVWGHILQLWLRQVLQWKH
5('()LQVWUXFWLRQRIWKHUHOHYDQWGDWDVHHVHFWLRQ
ILOH,QRWKHUFDVHVWKH\JRLQWRWKH5
3URWHFWLRQOHYHOVIRU1&FRPPDQGV

([DPSOHGHILQLWLRQILOHZLWKZULWHDFFHVVSURWHFWLRQ
0DFKLQHPDQXIDFWXUHU UHDG NH\VZLWFKRQWKHXVHULQWHUIDFH 

%_N_GUD6_DEF

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )LOHDQG3URJUDP0DQDJHPHQW
 3URWHFWLRQOHYHOVIRUXVHUGDWD0'6'DQG1&FRPPDQGV

;$PATH=/_N_DEF_DIR
APR 15 APW 12 3URWHFWLRQOHYHOVIRUDOOIROORZLQJYDULDE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ZLOOEHVDYHGWKH
QHZGHILQLWLRQVZLOOEHDFWLYDWHGDQGWKHVDYHGGDWDZLOOEHUHORDGHG
 $ERUW 7KHQHZGHILQLWLRQVZLOOEHDFWLYDWHGWKHROGGDWDZLOOEHORVW
 $ERUW 7KHFKDQJHVLQWKHGHILQLWLRQILOHZLOOEHUHMHFWHGWKHDVVRFLDWHGGDWD
EORFNLVQRWFKDQJHG


 &KDQJHWKHSURWHFWLRQGDWDIRUWKHPDFKLQHDQGVHWWLQJGDWD 5('()0'6' 

)XQFWLRQ
7KHXVHUFDQFFKDQJHWKHSURWHFWLRQOHYHOV2QO\SURWHFWLRQOHYHOVRIORZHUSULRULW\FDQEH
DVVLJQHGWRWKHPDFKLQHGDWDVHWWLQJGDWDFDQDOVREHDVVLJQHGSURWHFWLRQOHYHOVRIKLJKHU
SULRULW\

3URJUDPPLQJ
REDEF Machine data/setting data protection level

3DUDPHWHUV

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )LOHDQG3URJUDP0DQDJHPHQW
 3URWHFWLRQOHYHOVIRUXVHUGDWD0'6'DQG1&FRPPDQGV

REDEF 5HGHILQLWLRQ 5
5('()LQLWLRQ HJ
6HWWKHPDFKLQHDQGVHWWLQJGDWD
Machine data / setting data 0DFKLQHGDWDRUVHWWLQJGDWDWRZKLFKD
SURWHFWLRQOHYHOLVWREHDVVLJQHG
Protection level: $FFHVVSURWHFWLRQ $
$FFHVV3
3URWHFWLRQ 
APW n IRUZULWLQJ :
:ULWH 
APR n 5HDG 
IRUUHDGLQJ 5
n 3URWHFWLRQOHYHOQ
IURPRU KLJKHVWOHYHO 
WR ORZHVWOHYHO 
5HVHWWLQJPDFKLQHVHWWLQJGDWD
7RXQGRDFKDQJHWRWKHSURWHFWLRQOHYHOVWKHRULJLQDOSURWHFWLRQOHYHOVPXVWEHZULWWHQ
EDFNDJDLQ
5('()H[WHQVLRQV
)RUIXUWKHULQIRUPDWLRQDERXWWKHRSHUDWLRQRIWKHRE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UWVSURJUDPRUV\QFKURQRXVDFWLRQVRQWKHV\VWHPYDULDEOH
$3:YDOXH
REDEF V\VWHPYDULDEOH $
RUFKDQJHWKHZULWHRUUHDGDFFHVVWRPDFKLQHDQGVHWWLQJGDWDDVSUHYLRXVO\
$3:YDOXH
REDEF PDFKLQHGDWDVHWWLQJGDWD $
$35YDOXH
REDEF PDFKLQHGDWDVHWWLQJGDWD $

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )LOHDQG3URJUDP0DQDJHPHQW
 3URWHFWLRQOHYHOVIRUXVHUGDWD0'6'DQG1&FRPPDQGV

3DUDPHWHUV
7KHREDEFFRPPDQGDFWVJOREDOO\IRUDOOFKDQQHOVDQGPRGHJURXSV

REDEF (IIHFWDQGDSSOLFDWLRQRIWKH5('()FRPPDQG
NC language element /DQJXDJHHOHPHQWWRZKLFKDSURWHFWLRQOHYHOLVWREH
DVVLJQHGIRUH[HFXWLRQ
3UHGHILQHGVXEURXWLQHVIXQFWLRQV
 VHHOLVWZLWKVDPHQDPH 
'2VWDWHPHQWNH\ZRUGIRUV\QFKURQL]HGDFWLRQV
*IXQFWLRQV *IXQFWLRQVSUHSDUDWRU\IXQFWLRQV 
3URJUDPLGHQWLILHUIRUF\FOH
7KHF\FOHPXVWEHVWRUHGLQRQHRIWKHF\FOHGLUHFWRULHVDQG
FRQWDLQD352&VWDWHPHQW
System variables 6\VWHPYDULDEOHWRZKLFKDSURWHFWLRQOHYHOLVWREHDVVLJQHG
IRUZULWHDFFHVV5HDGDFFHVVLVDOZD\VSRVVLEOH VHH/LVW
RIV\VWHPYDULDEOHV 
Machine data/setting data 0DFKLQHGDWDRUVHWWLQJGDWDWRZKLFKDSURWHFWLRQOHYHOLVWR
EHDVVLJQHGIRUUHDGZULWHDFFHVV
APX 9RFDEXODU\ZRUGIRUDFFHVVSURWHFWLRQ
APW, APR ([HFXWH
:ULWHUHDG
Value 1XPHULFDOYDOXHRIWKHSURWHFWLYHOHYHO WR 
IUR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&ODQJXDJHHOHPHQWV

3URJUDPPLQJ
REDEF NC language element attribute value
RU
REDEF name QRIXUWKHUSDUDPHWHUGHWDLOV 

3DUDPHWHUV

NC language element 7KLVLQFOXGHV


*8'
5SDUDPHWHUV
0DFKLQHGDWDVHWWLQJGDWD
6\QFKURQRXVYDULDEOHV $&B3$5$0$&B0$5.(5$&B7,0(5 
6\QFKURQRXVYDULDEOHVWKDWFDQEHZULWWHQIURPSDUWVSURJUDPV VHH3*$
8VHUIUDPHV *HWF 
0DJD]LQHWRROFRQILJXUDWLRQV
name 7KHVHWWLQJVIRU$3;$35$3:DUHVHWWRGHIDXOWYDOXHVDQG,1,32
,1,5(,1,&)35/2&DUHUHVHWDJDLQ
Attribute 3HUPLVVLEOHIRU
,QLWLDOL]DWLRQV 
,1,32 *8'5SDUDPHWHUVV\QFKURQRXVYDUV
,1,5( *8'5SDUDPHWHUVV\QFKURQRXVYDUV
,1,&) *8'5SDUDPHWHUVV\QFKURQRXVYDUV
35/2& 6HWWLQJGDWD
6\QFKURQL]DWLRQ 3HUPLVVLEOHIRU 6HWWLQJDGHIDXOWYDOXH
6<15 *8' 3UHSURFHVVVWRSZKLOHUHDGLQJ
6<1: *8' 3UHSURFHVVVWRSZKLOHZULWLQJ
6<15: *8' 3UHSURFHVVVWRSZKLOHUHDGLQJDQG
$FFHVV 3HUPLVVLEOHIRU ZULWLQJ
DXWKRUL]DWLRQ  
$3: 0DFKLQHVHWWLQJGDWD 
$35 0DFKLQHVHWWLQJGDWD $FFHVVULJKWGXULQJZULWH
$FFHVVULJKWGXULQJUHDG
)RUPDFKLQHDQGVHWWLQJGDWD\RXFDQ
RYHUZULWHWKHSUHVHWDFFHVVDXWKRUL]DWLRQ
VXEVHTXHQWO\7KHSHUPLVVLEOHYDOXHV
UDQJHIURP


 6LHPHQVSDVVZRUG WR


 NH\VZLWFKVHWWLQJ 
2SWLRQDOSDUDPHWHUV

Value (optional) 2SWLRQDOSDUDPHWHUVIRUDWWULEXWHV,1,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6(706
 6$B63,1'B0,1B9(/2B* *
 6$B63,1'B0$;B9(/2B* *
 6$B63,1'B0$;B9(/2B/,06 /,06
 6$B$66,*1B)(('B3(5B5(9B6285&( )35$21
 6$B:25.$5($B/,0,7B3/86 *
 6$B:25.$5($B/,0,7B0,186 *
 6$B),;('B6723B72548( );67
 6$B),;('B6723B:,1'2: );6:
 6$B26&,//B5(9(56(B326 263
 6$B26&,//B5(9(56(B326 263
 6$B26&,//B':(//B7,0( 267
 6$B26&,//B':(//B7,0( 267
 6$B26&,//B9(/2 )$
 6$B26&,//B180B63$5.B&<&/(6 2616&
 6$B26&,//B(1'B326 26(
 6$B26&,//B&75/B0$6. 26&75/
 6$B26&,//B,6B$&7,9( 26
 6$B26&,//B67$57B326 26%

7KH3*$/LVWRIWKHV\VWHPYDULDEOHVFRQWDLQVWKHOLVWLQJRIWKHV\VWHPYDULDEOHV$OO
V\VWHPYDULDEOHVWKDWDUHPDUNHG: ZULWH RU:6 ZULWHZLWKSUHSURFHVVVWRS LQFROXPQ
SDUWVSURJUDPFDQEHLQLWLDOL]HGZLWKWKH5(6(7LQVWUXFWLRQ

([DPSOH

Reset behavior with GUD:


/_N_DEF_DIR/_N_SGUD_DEF
DEF NCK INT _MYGUD1 'HILQLWLRQV
DEF NCK INT _MYGUD2 = 2
DEF NCK INT _MYGUD3 = 3
Initialization on operator panel front reset/end of parts program:
DEF _MYGUD2 INIRE ,QLWLDOL]DWLRQ
M17

7KLVVHWVB0<*8'EDFNWRRQRSHUDWRUSDQHOIURQWUHVHWHQGRISDUWVSURJUDP
ZKHUHDVB0<*8'DQGB0<*8'UHWDLQWKHLUYDOXH

([DPSOHPRGDOVSHHGOLPLWDWLRQLQWKHSDUWVSURJUDP VHWWLQJGDWD 

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)LOHDQG3URJUDP0DQDJHPHQW 
5('()&KDQJLQJWKHDWWULEXWHVRIWKH1&ODQJXDJHHOHPHQWV

/_N_DEF_DIR/_N_SGUD_DEF
REDEF $SA_SPIND_MAX_VELO_LIMS PRLOC 6HWWLQJGDWDIRUOLPLWVSHHG
M17

/_N_MPF_DIR/_N_MY_MPF
N10 SETMS (3)
N20 G96 S100 LIMS=2500
...
M30

/HWWKHOLPLWVSHHGGHILQHGLQVHWWLQJGDWD 6$B63,1'B0$;B9(/2B/,06 VSHHGOLPLWDWLRQ


EHUSP%HFDXVHDKLJKHUVSHHGFDQEHSHUPLWWHGLQDVHWXSDQGFRPSOHWHO\WHVWHG
SDUWVSURJUDP/,06 LVSURJUDPPHGKHUH$IWHUWKHHQGRIWKHSURJUDPWKHYDOXH
FRQILJXUHGLQWKHVHWWLQJGDWDWDNHVHIIHFWKHUHDJDLQ

5HVHWVHWWLQJVWRGHIDXOWYDOXHVDQGGHOHWHLQLWLDOL]DWLRQVDJDLQ

New $WWULEXWH 5HVHWGHIDXOWYDOXHLQLWLDOL]DWLRQV


definition
REDEF 1&ODQJXDJHHOHPHQW $3; 
REDEF 0DFKLQHGDWDVHWWLQJGDWD 5HVHW$3: $35 35/2&
REDEF 6\QFKURQL]DWLRQYDULDEOH 5HVHW$3: ,1,5(,1,32,1,&)
REDEF *8'/8' 5HVHW,1,5(,1,32,1,&)
Example
REDEF MASLON APX 2
REDEF SYG RS INIRE APW3
REDEF R[ ] INIRE
REDEF MASLON 6HW$3;WR
REDEF SYG RS 6HW$3:WRDQG,1,5(GHOHWHG
REDEF R[ ] ,1,5(GHOHWHG

5HVWULFWLRQV
x 7KHFFKDQJHWRWKHDWWULEXWHVRI1&REMHFWVFDQRQO\EHPDGHD DIWHUGHILQLWLRQRIWKHREMHFW
,QSDUWLFXODULWLVQHFHVVDU\WRSD\DWWHQWLRQWRWKHDEFREDEFVHTXHQFHIRU*8'
6HWWLQJGDWDV\VWHPYDULDEOHVDUHLPSOLFLWO\FUHDWHGEHIRUHWKHGHILQLWLRQILOHVDUH
SURFHVVHG 7KHV\PEROPXVWDOZD\VEHGHILQHGILUVW LPSOLFLWO\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LWLRQRIWKHSURWHFWLRQ]RQHV &3527'()13527'() 

)XQFWLRQ
<RXFDQXVHSURWHFWLRQ]RQHVWRSURWHFWYDULRXVHOHPHQWVRQWKHPDFKLQHWKHLUFRPSRQHQWV
DQGWKHZRUNSLHFHDJDLQVWLQFRUUHFWPRYHPHQWV
7RRORULHQWHGSURWHFWLRQ]RQHV
)RUSDUWVWKDWEHORQJWRWKHWRRO HJWRROWRROKROGHU 
:RUNSLHFHRULHQWHGSURWHFWLRQ]RQHV
)RUSDUWVWKDWEHORQJWRWKHZRUNSLHFH HJSDUWVRIWKHZRUNSLHFHFODPSLQJWDEOHFODPSLQJ
VKRHVSLQGOHFKXFNWDLOVWRFN 


7RROUHODWHG < 7RROUHODWHG


SURWHFWLRQ]RQH SURWHFWLRQ]RQH

%

=
;

:RUNSLHFHUHODWHG
SURWHFWLRQ]RQH

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
3URWHFWLRQ]RQHV 
'HILQLWLRQRIWKHSURWHFWLRQ]RQHV &3527'()13527'() 

3URJUDPPLQJ
DEF INT NOT_USED
CPROTDEF(n,t,applim,appplus,appminus)
NPROTDEF(n,t,applim,applus,appminus)
EXECUTE(NOT_USED)

3DUDPHWHUV

DEF INT NOT_USED 'HILQHORFDOYDULDEOHGDWDW\SHLQWHJHU VHH0RWLRQV\QFKURQRXVDFWLRQ


VHFWLRQ 
CPROTDEF 'HILQHFKDQQHOVSHFLILFSURWHFWLRQ]RQHV IRU1&8RQO\ 
NPROTDEF 'HILQLQJPDFKLQHVSHFLILFSURWHFWLRQ]RQHV
EXECUTE (QGGHILQLWLRQ
n 1XPEHURIGHILQHGSURWHFWLRQ]RQH
t 758( 7
7RROUHODWHGSURWHFWLRQ]RQH
ZRUNSLHFHSURWHFWLRQ]RQH
)$/6( Z
applim 7\SHRIOLPLWDWLRQLQWKHWKLUGGLPHQVLRQ
 1ROLPLW
 /LPLWLQSRVLWLYHGLUHFWLRQ
 /LPLWLQQHJDWLYH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RID+HOSYDULDEOH


Definition of protection zones 6HWRULHQWDWLRQ
G17

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
3URWHFWLRQ]RQHV 
$FWLYDWLQJGHDFWLYDWLQJSURWHFWLRQ]RQHV &352713527 

NPROTDEF(1,FALSE,3,10,10) 3URWHFWLRQ]RQHQ6%
G01 X0 Y10
X40
Y10
X0
Y10
EXECUTE(PROTECTB)

NPROTDEF(2,FALSE,3,5,5) 3URWHFWLRQ]RQHQ6%
G01 X40 Y5
X70
Y5
X40
Y5
EXECUTE(PROTECTB)

CPROTDEF(1,TRUE,3,0,100) 3URWHFWLRQ]RQHF6%
G01 X20 Y20
X20
Y20
X20
Y20
EXECUTE(PROTECTB)

CPROTDEF(2,TRUE,3,100,150) 3URWHFWLRQ]RQHF6%
G01 X0 Y10
G03 X0 Y10 J10
X0 Y10 J10
EXECUTE(PROTECTB)

CPROTDEF(3,TRUE,3,150,170) 3URWHFWLRQ]RQHF6%
G01 X0 Y27,5
G03 X0 Y27,5 J27,5
X0 Y27,5 J27,5
EXECUTE(PROTECTB)
Activation of protection zones:
NPROT(1,2,120,60,80) $FWLYDWHSURWHFWLRQ]RQHQ6%ZLWKRIIVHW
NPROT(2.2,120,60,80) $FWLYDWHSURWHFWLRQ]RQHQ6%ZLWKRIIVHW
CPROT(1,2,0,0,0) $FWLYDWHSURWHFWLRQ]RQHF6%ZLWKRIIVHW
CPROT(2,2,0,0,0) $FWLYDWHSURWHFWLRQ]RQHF6%ZLWKRIIVHW
CPROT(3,2,0,0,0) $FWLYDWHSURWHFWLRQ]RQHF6%ZLWKRIIVHW

$FWLYDWLRQVWDWXV
$SURWHFWLRQ]RQHLVJHQHUDOO\DFWLYDWHGLQWKHSDUWVSURJUDPZLWKVWDWXV 

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 3URWHFWLRQ]RQHV
 $FWLYDWLQJGHDFWLYDWLQJSURWHFWLRQ]RQHV &352713527 

7KHVWDWXVLV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HV&DQG&
DQGWKH11&.SURWHFWLRQ]RQH&LVDFLUFXODUDFWLYHWRROUHODWHGSURWHFWLRQ]RQHZLWK
PPUDGLXV&LVDVTXDUHSUHDFWLYDWHGDQGZRUNSLHFHUHODWHGSURWHFWLRQ]RQHZLWKVLGH
OHQJWKPPDQG1LVDUHFWDQJXODUDFWLYHSURWHFWLRQ]RQHZLWKVLGHOHQJWKVPPDQG
PP,QWKHIROORZLQJ1&LQLWLDOO\WKHSURWHFWLRQ]RQHVDQGWKHRSHUDWLQJUDQJHOLPLWVDUH
GHILQHGDVLQGLFDWHGDQGWKH&$/&326,IXQFWLRQLVWKHQFDOOHGZLWKYDULRXVSDUDPHWHUV
7KHHYHQWVRIHDFK&$/&326,FDOODUHVXPPDUL]HGLQWKHWDEOHDWWKHHQGRIWKHH[DPSOH

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 3URWHFWLRQ]RQHV
 &KHFNLQJIRUSURWHFWLRQ]RQHYLRODWLRQZRUNLQJDUHDOLPLWDWLRQDQGVRIWZDUHOLPLWV

<
6RIWZDUHOLPLWV

& SURDFWLYH

11

1

1



1

&
  

:RUNLQJDUHDOLPLWDWLRQ

N10 def real _STARTPOS[3] 


N20 def real _MOVDIST[3]
N30 def real _DLIMIT[5]
N40 def real _MAXDIST[3]
N50 def int _SB
N60 def int _STATUS
N70 cprotdef(2, true, 0) 7RROUHODWHGSURWHFWLRQ]RQH
N80 g17 g1 xy0
N90 g3 i2 x2
N100 ix
N110 execute(_SB)
N120 cprotdef(4, false, 0) ZRUNSLHFHUHODWHGSURWHFWLRQ]RQH
N130 g17 g1 x0 y15
N140 x10
N150 y25
N160 x0
N170 y15
N180 execute(_SB)

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
3URWHFWLRQ]RQHV 
&KHFNLQJIRUSURWHFWLRQ]RQHYLRODWLRQZRUNLQJDUHDOLPLWDWLRQDQGVRIWZDUHOLPLWV

N190 nprotdef(3, false, 0) ZRUNSLHFHHODWHGSURWHFWLRQ]RQH


N200 g17 g1 x10 y5
N210 x25
N220 y15
N230 x10
N240 y5
N250 execute(_SB)
N260 cprot(2,2,0,0,0) DFWLYDWHGHDFWLYDWH
N270 cprot(4,1,0,0,0) SURWHFWLRQ]RQHV
N280 nprot(3,2,0,0,0)
N290 g25 XX=YY= GHILQHZRUNLQJDUHDOLPLWDWLRQV
N300 g26 xx= 20 yy= 21
N310 _STARTPOS[0] = 0.
N320 _STARTPOS[1] = 0.
N330 _STARTPOS[2] = 0.
N340 _MOVDIST[0] = 35. 
N350 _MOVDIST[1] = 20.
N360 _MOVDIST[2] = 0.
N370 _DLIMIT[0] = 0. 
N380 _DLIMIT[1] = 0.
N390 _DLIMIT[2] = 0.
N400 _DLIMIT[3] = 0.
N410 _DLIMIT[4] = 0.
; various function calls
N420 _STATUS = calcposi(_STARTPOS,_MOVDIST,_DLIMIT,_MAXDIST)
N430 _STATUS = calcposi(_STARTPOS,_MOVDIST,_DLIMIT,_MAXDIST,,3)
N440 _STATUS = calcposi(_STARTPOS,_MOVDIST,_DLIMIT,_MAXDIST,,1)
N450 _STARTPOS[0] = 5. RWKHUVWDUWLQJSRLQW
N460 _STARTPOS[1] = 17.
N470 _STARTPOS[2] = 0.
N480 _MOVDIST[0] = 0. RWKHUGHVWLQDWLRQ
N490 _MOVDIST[1] =.
N500 _MOVDIST[2] = 0.
; various function calls
N510 _STATUS = calcposi(_STARTPOS,_MOVDIST,_DLIMIT,_MAXDIST,,14)
N520 _STATUS = calcposi(_STARTPOS,_MOVDIST,_DLIMIT,_MAXDIST,,6)
N530 _DLIMIT[1] = 2.
N540 _STATUS = calcposi(_STARTPOS,_MOVDIST,_DLIMIT,_MAXDIST,,6)
N550 _STARTPOS[0] = 27.
N560 _STARTPOS[1] = 17.1
N570 _STARTPOS[2] = 0.
N580 _MOVDIST[0] =. 
N590 _MOVDIST[1] = 0.
N600 _MOVDIST[2] = 0.

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 3URWHFWLRQ]RQHV
 &KHFNLQJIRUSURWHFWLRQ]RQHYLRODWLRQZRUNLQJDUHDOLPLWDWLRQDQGVRIWZDUHOLPLWV

N610 _DLIMIT[3] = 2.
N620 _STATUS = calcposi(_STARTPOS,_MOVDIST,_DLIMIT,_MAXDIST,,12)
N630 _STARTPOS[0] = 0.
N640 _STARTPOS[1] = 0.
N650 _STARTPOS[2] = 0.
N660 _MOVDIST[0] = 0.
N670 _MOVDIST[1] = 30.
N680 _MOVDIST[2] = 0.
N690 trans x10
N700 arot z45
N710 _STATUS = calcposi(_STARTPOS,_MOVDIST,_DLIMIT,_MAXDIST)
N720 M30

5HVXOWVRIWKHWHVWVLQWKHH[DPSOH

%ORFNQR B67$786 B0$;',67 B0$;',67 &RPPHQWV


1 >@ ;  >@ < 
    3URWHFWLRQ]RQH1YLRODWHG
    1RSURWHFWLRQ]RQHPRQLWRULQJZRUNLQJ
DUHDOLPLWDWLRQYLRODWHG
    1RZRQO\PRQLWRULQJRIWKHVRIWZDUH
OLPLWVDFWLYH
    6WDUWSRLQWYLRODWHVSURWHFWLRQ]RQH&
    3UHDFWLYDWHGSURWHFWLRQ]RQH&QRW
PRQLWRUHG'HILQHGSDWKFDQEH
WUDYHUVHGFRPSOHWHO\
    %HFDXVHB'/,0,7>@ WKHWUDYHUVH
SDWKLVUHVWULFWHGE\WKHZRUNLQJDUHD
OLPLWDWLRQ
    'LVWDQFHIURP&LQWRWDOPPGXHWR
&DQGB'/,0,7>@'LVWDQFH&1RI
PPGRHVQRWOHDGWROLPLWDWLRQRIWKH
WUDYHUVHSDWK
    )UDPHZLWKWUDQVODWLRQDQGURWDWLRQ
DFWLYH7KHSHUPLVVLEOHWUDYHUVDOSDWKLQ
B029',67DSSOLHVLQWKHWUDQVODWHGDQG
URWDWHGFRRUGLQDWHV\VWHP :&6 


6SHFLDOFDVHVDQGIXUWKHUGHWDLOV
$OOSDWKGDWDDUHDOZD\VHQWHUHGDVUDGLLHYH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
$OOZHLJKWV
 'LIIHUHQWZHLJKWV








;

     

$OOZHLJKWV 'LIIHUHQWZHLJKWV &KHFNSRO\JRQ


1*;<)* 1*;<)* 1*;<)*
1%63/,1( 1%63/,1( 1RPLWWHG
1;< 1;<3:  1;<
1;< 1;< 1;<
1;< 1;<3:  1;<
1;< 1;< 1;<
1;< 1;< 1;<

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 6SHFLDO0RWLRQ&RPPDQGV
 6SOLQHLQWHUSRODWLRQ $63/,1(%63/,1(&63/,1(%$872%1$7%7$1 

([DPSOH&VSOLQH]HURFXUYDWXUHDWVWDUWDQGHQG

<










;

        

N10 G1 X0 Y0 F300
N15 X10
N20 BNAT ENAT &VSOLQH]HURFXUYDWXUHDWVWDUWDQGHQG
N30 CSPLINE X20 Y10
N40 X30
N50 X40 Y5
N60 X50 Y15
N70 X55 Y7
N80 X60 Y20
N90 X65 Y20
N100 X70 Y0
N110 X80 Y10
N120 X90 Y0
N130 M30

$6SOLQH
7KH$VSOLQH $NLPDVSOLQH SDVVHVH[DFWO\WKURXJKWKHLQWHUPHGLDWHSRLQWV:KLOHLW
SURGXFHVYLUWXDOO\QRXQGHVLUDEOHRVFLOODWLRQVLWGRHVQRWFUHDWHDFRQWLQXRXVFXUYHLQWKH
LQWHUSRODWLRQSRLQWV7KHDNLPDVSOLQHLVORFDOLHDFKDQJHWRDQLQWHUSRODWLRQSRLQWDIIHFWV
RQO\XSWRVL[DGMDFHQWSRLQWV7KHSULPDU\DSSOLFDWLRQIRUWKLVVSOLQHW\SHLVWKHUHIRUHWKH
LQWHUSRODWLRQRIGLJLWL]HGSRLQWV$SRO\QRPLDORIWKLUGGHJUHHLVXVHGIRULQWHUSRODWLRQ

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
6SHFLDO0RWLRQ&RPPDQGV 
6SOLQHLQWHUSRODWLRQ $63/,1(%63/,1(&63/,1(%$872%1$7%7$1 

$VSOLQH DNLPDVSOL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UZKLFKDVLPSOHV\QWD[LVVXIILFLHQWDUHFRPSUHVVHGHJ
N19 X0.103 Y0. Z0.
N20 X0.102 Y-0.018
N21 X0.097 Y-0.036
N22 X0.089 Y-0.052
N23 X0.078 Y-0.067
7UDYHUVHEORFNVZLWKH[WHQGHGDGGUHVVHVVXFKDV& RU$ $&  DUHDOVR
FRPSUHVVHG

([DPSOH&203&$'

G00 X30 Y6 Z40


G1 F10000 G642
SOFT
COMPCAD &RPSUHVVRULQWHUIDFHRSWLPL]DWLRQ21
STOPFIFO
N24050 Z32.499
N24051 X41.365 Z32.500
N24052 X43.115 Z32.497
N24053 X43.365 Z32.477
N24054 X43.556 Z32.449
N24055 X43.818 Z32.387
N24056 X44.076 Z32.300
...
COMPOF &RPSUHVVRU2))
G00 Z50
M30

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 6SHFLDO0RWLRQ&RPPDQGV
 &RPSUHVVRU &2032)21&203&859&203&$' 

5HTXLUHPHQWV
0DFKLQHPDQXIDFWXUHU
7KUHHVHWVRIPDFKLQHGDWDDUHSURYLGHGIRUWKHFRPSUHVVRUIXQFWLRQ
x 0&B&2035(66B%/2&.B3$7+B/,0,7
$PD[LPXPSDWKOHQJWKLVVHW$OOWKHEORFNVDORQJWKLVSDWKDUHVXLWDEOHIRUFRPSUHVVLRQ
/RQJHUEORFNVDUHQRWFRPSUHVVHG
x 0$B&2035(66B326B72/
$WROHUDQFHFDQEHVHWIRUHDFKD[LV7KLVYDOXHVSHFLILHVWKHPD[LPXPGHYLDWLRQRIWKH
JHQHUDWHGVSOLQHFXUYHIURPWKHSURJUDPPHGHQGSRLQWV7KHKLJKHUWKHYDOXHVWKHPRUH
EORFNVFDQEHFRPSUHVVHG
x 0&B&2035(66B9(/2B72/
7KHPD[LPXPSHUPLVVLEOHSDWKIHHGGHYLDWLRQZLWKDFWLYHFRPSUHVVRUFDQEHSUHVHWLQ
FRQMXQFWLRQZLWK)/,1DQG)&8%
&203&$'
x 01B00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\QRPLDOIRUERWKD[LV
JURXSV
([DPSOHV
POLYPATH ("VECT") 
2QO\WKHRULHQWDWLRQD[HVDUHVHOHFWHGIRUWKHSRO\QRPLDOLQWHUSRODWLRQDOORWKHUD[HVDUH
WUDYHUVHGOLQHDUO\
POLPATH ( ) 
'HDFWLYDWHVWKHSRO\QRPLDOLQWHUSRODWLRQIRUDOOD[HV

([DPSOH

N10 G1 X Y Z F600
N11 POLY PO[X]=(1,2.5,0.7) -> 3RO\QRPLDOLQWHUSRODWLRQ21
-> PO[Y]=(0.3,1,3.2) PL=1.5
N12 PO[X]=(0,2.5,1.7) PO[Y]=(2.3,1.7) PL=3

N20 M8 H126
N25 X70 PO[Y]=(9.3,1,7.67) PL=5 0L[HGVHWWLQJVIRUD[HV
N27 PO[X]=(10.2.5) PO[Y]=(2.3) 1R3/YDOXHSURJUDPPHG3/ DSSOLHV
N30 G1 X Y Z. 3RO\QRPLDOLQWHUSRODWLRQ2))

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 6SHFLDO0RWLRQ&RPPDQGV
 3RO\QRPLDOLQWHUSRODWLRQ 32/<32/<3$7+ 

([DPSOHRIDSSOLFDEOHSRO\QRPLDOV\QWD[ZLWK32

Polynomial syntax used previously remains 1HZSRO\QRPLDOV\QWD[ 6:DQGKLJKHU 


valid
PO[axis identifier]=(.. , ..) $[LVLGHQWLILHU 32  
PO[PHI]=(.. , ..) 3+, 32  
PO[PSI]=(.. , ..) 36, 32  
PO[THT]=(.. , ..) 7+7 32  
PO[]=(.. , ..) 32  
PO[variable]=IC(.. , ..) YDULDEOH 32,&  

([DPSOHRIDFXUYHLQWKH;<SODQH

<

 (QGSRLQW

S
;
 (QGSRLQW


([DPSOH
 1;<*
132/<32><@
  32>;@
 3/ 

     3/ S

N9 X0 Y0 G90 F100
N10 POLY PO[Y]=(2) PO[X]=(4,0.25) PL=4

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
6SHFLDO0RWLRQ&RP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HSUREH
Measurement 1XPEHURI),)2 FLUFXODWLQJVWRUDJH 
memory

([DPSOHRIPHDVXULQJZLWKGHOHWHGLVWDQFHWRJRLQPRGH
HYDOXDWLRQLQFKURQRORJLFDOVHTXHQFH 
D ZLWKPHDVXULQJV\VWHP

...
N100 MEASA[X] = (1,1,-1) G01 X100 F100 0HDVXUHPHQWLQPRGHZLWKDFWLYH
PHDVXULQJV\VWHP:DLWIRUPHDVXULQJVLJQDO
ZLWKULVLQJIDOOLQJHGJHIURPSUREHRQWUDYHO
SDWKWR; 
N110 STOPRE 3UHSURFHVVLQJVWRS
N120 IF $AC_MEA[1] == FALSE gotof END &KHFNVXFFHVVRIPHDVXUHPHQW
N130 R10 = $AA_MM1[X] 6WRUHPHDVXUHGYDOXHDFTXLUHGRQILUVW
SURJUDPPHGWULJJHUHYHQW ULVLQJHGJH 
N140 R11 = $AA_MM2[X] 6WRUHPHDVXUHGYDOXHDFTXLUHGRQVHFRQG
SURJUDPPHGWULJJHUHYHQW IDOOLQJHGJH 
N150 END:

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
6SHFLDO0RWLRQ&RPPDQGV 
([WHQGHGPHDVXULQJIXQFWLRQ 0($6$0($:$0($&  RSWLRQ 

([DPSOHRIPHDVXULQJZLWKGHOHWHGLVWDQFHWRJRLQPRGH
E ZLWKPHDVXULQJV\VWHPV

...
N200 MEASA[X] = (31,1-1) G01 X100 F100 0HDVXUHPHQWLQPRGHZLWKERWKPHDVXULQJ
V\VWHPV:DLWIRUPHDVXULQJVLJQDO
ZLWKULVLQJIDOOLQJHGJHIURPSUREHRQWUDYHO
SDWKWR; 
N210 STOPRE 3UHSURFHVVLQJVWRS
N220 IF $AC_MEA[1] == FALSE gotof END &KHFNVXFFHVVRIPHDVXUHPHQW
N230 R10 = $AA_MM1[X] 6DYHPHDVXUHGYDOXHRIWKHPHDVXULQJ
V\VWHPIRUULVLQJHGJH
N240 R11 = $AA_MM2[X] 6DYHPHDVXUHGYDOXHRIWKHPHDVXULQJ
V\VWHPIRUULVLQJHGJH
N250 R12 = $AA_MM3[X] 6DYHPHDVXUHGYDOXHRIWKHPHDVXULQJ
V\VWHPIRUIDOOLQJHGJH
N260 R13 = $AA_MM4[X] 6DYHPHDVXUHGYDOXHRIWKHPHDVXULQJ
V\VWHPIRUIDOOLQJHGJH
N270 END:

([DPSOHRIPHDVXULQJZLWKGHOHWHGLVWDQFHWRJRLQPRGH
HYDOXDWLRQLQSURJUDPPHGVHTXHQFH 

...
N100 MEASA[X] = (2,1,-1,2,-2) G01 X100 F100 0HDVXUHPHQWLQPRGHZLWKDFWLYH
PHDVXULQJV\VWHP:DLWIRUPHDVXULQJVLJQDO
LQWKHIROORZLQJRUGHU5LVLQJHGJHRI
SUREHIDOOLQJHGJHRISUREHULVLQJHGJH
RISUREHIDOOLQJHGJHRISUREHRQWUDYHO
SDWKWR; 
N110 STOPRE 3UHSURFHVVLQJVWRS
N120 IF $AC_MEA[1] == FALSE gotof &KHFNVXFFHVVRIPHDVXUHPHQW
ZLWKSUREH
PROBE2
N130 R10 = $AA_MM1[X] 6WRUHPHDVXUHGYDOXHDFTXLUHGRQILUVW
SURJUDPPHGWULJJHUHYHQW
 ULVLQJHGJHSUREH 
N140 R11 = $AA_MM2[X] 6WRUHPHDVXUHGYDOXHDFTXLUHGRQVHFRQG
SURJUDPPHGWULJJHUHYHQW
 ULVLQJHGJHSUREH 
N150 PROBE2:
N160 IF $AC_MEA[2] == FALSE gotof END &KHFNVXFFHVVRIPHDVXUHPHQWZLWKSUREH

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 6SHFLDO0RWLRQ&RPPDQGV
 ([WHQGHGPHDVXULQJIXQFWLRQ 0($6$0($:$0($&  RSWLRQ 

N170 R12 = $AA_MM3[X] 6WRUHPHDVXUHGYDOXHDFTXLUHGRQWKLUG


SURJUDPPHGWULJJHUHYHQW
 ULVLQJHGJHSUREH 
N180 R13 = $AA_MM4[X] 6WRUHPHDVXUHGYDOXHDFTXLUHGRQIRXUWK
SURJUDPPHGWULJJHUHYHQW
 ULVLQJHGJHSUREH 
N190 END:

([DPSOHRIFRQWLQXRXVPHDVXULQJLQPRGH
HYDOXDWLRQLQFKURQRORJLFDOVHTXHQFH 
D 0HDVXUHPHQWRIXSWRPHDVXUHGYDOXHV

...
N110 DEF REAL MEASVALUE[100]
N120 DEF INT loop = 0
N130 MEAC [X] = (1,1,-1) G01 X1000 F100 0HDVXUHLQPRGHZLWKDFWLYHPHDVXULQJ
V\VWHPVWRUHPHDVXUHGYDOXHVXQGHU
$&B),)2ZDLWIRUPHDVXULQJVLJQDOZLWK
IDOOLQJHGJHIURPSUREHRQWUDYHOSDWKWR
; 
N135 STOPRE
N140 MEAC[X] = (0) 7HUPLQDWHPHDVXUHPHQWZKHQ
D[LVSRVLWLRQLVUHDFKHG
N150 R1 = $AC_FIFO1[4] 6WRUHQXPEHURIDFFXPXODWHGPHDVXUHG
YDOXHVLQSDUDPHWHU5
N160 FOR loop = 0 TO R1-1
N170 MEASVALUE[loop] = $AC_FIFO1[0] 5HDGPHDVXUHGYDOXHVIURP$&B),)2
DQGVWRUH
N180 ENDFOR

([DPSOHRIFRQWLQXRXVPHDVXULQJLQPRGH
HYDOXDWLRQLQFKURQRORJLFDOVHTXHQFH 
E 0HDVXULQJZLWKGHOHWLRQRIGLVWDQFHWRJRDIWHUPHDVXUHGYDOXHV

...
N10 WHEN $AC_FIFO1[4]>=10 DO 'HOHWHGLVWDQFHWRJR
MEAC[x]=(0) DELDTG (x)
N20 MEAC[x]=(1,1,1,-1) G01 X100 F500
N30 MEAC [X]=(0)
N40 R1 = $AC_FIFO1[4] 1XPEHURIPHDVXUHGYDOXHV
...

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
6SHFLDO0RWLRQ&RPPDQGV 
([WHQGHGPHDVXULQJIXQFWLRQ 0($6$0($:$0($&  RSWLRQ 

'HVFULSWLRQ
7KHPHDVXUHPHQWVFDQEHSURJU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54...G599RU
x \RXKDYHWRGHVFULEH$P_BFRAMEZLWK$P_UBFR

=%.6 =%16

; %16
3B%)5$0(3B8%)5

; %.6

3B,)5$0(
&XUUHQWVHWWDEOHIUDPHYDULDEOHWKDWHVWDEOLVKHVWKHUHIHUHQFHEHWZHHQWKHEDVLFRULJLQ
V\VWHP %26 DQGWKHVHWWDEOH]HURV\VWHP 6=6 
x $P_IFRAMEFRUUHVSRQGVWR$P_UIFR[$P_IFRNUM]
x $IWHUG54LVSURJUDPPHGIRUH[DPSOH$P_IFRAMEFRQWDLQVWKHWUDQVODWLRQURWDWLRQ
VFDOLQJDQGPLUURULQJGHILQHGE\*

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)UDPHV 
&RRUGLQDWHWUDQVIRUPDWLRQYLDIUDPHYDULDEOHV

= (16

= %16
<
(16
<%16

;
(16

; %16

3B3)5$0(
&XUUHQWSURJUDPPDEOHIUDPHYDULDEOHWKDWHVWDEOLVKHVWKHUHIHUHQFHEHWZHHQWKHVHWWDEOH
]HURV\VWHP 6=6 DQGWKHZRUNSLHFHFRRUGLQDWHV\VWHP :&6 
$P_PFRAME FRQWDLQVWKHUHVXOWLQJIUDPHWKDWUHVXOWV
x IURPWKHSURJUDPPLQJRI TRANS/ATRANS ROT/AROT SCALE/ASCALE
MIRROR/AMIRROR RU
x IURPWKHDVVLJQPHQWRI CTRANS CROT CMIRROR CSCALE WRWKHSURJUDPPHG
)5$0(

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )UDPHV
 &RRUGLQDWHWUDQVIRUPDWLRQYLDIUDPHYDULDEOHV

= :.6
= (16

= %16
<
(16
< %16
<
:.6

; :.6

; (16

; %16

3B$&7)5$0(
&XUUHQWUHVXOWLQJFRPSOHWHIUDPHWKDWUHVXOWVIURPFKDLQLQJ
x WKHFXUUHQWEDVLFIUDPHYDULDEOH $P_BFRAME
x WKHFXUUHQWO\VHWWDEOHIUDPHYDULDEOH $P_IFRAME ZL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DP
([FHSWLRQSURJUDPPLQJRIDVHWWDEOHIUDPHZLWKG54 G55 ... 

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)UDPHV 
)UDPHYDULDEOHVDVVLJQLQJYDOXHVWRIUDPHV

 )UDPHYDULDEOHVDVVLJQLQJYDOXHVWRIUDPHV

 $VVLJQLQJGLUHFWYDOXHV D[LVYDOXHDQJOHVFDOH 

)XQFWLRQ
<RXFDQGLUHFWO\DVVLJQYDOXHVWRIUDPHVRUIUDPHYDULDEOHVLQWKH1&SURJUDP

3URJUDPPLQJ
$P_PFRAME=CTRANS (X, axis value, Y, axis value, Z, axis value, )
RU
$P_PFRAME=CROT (X, angle, Y, angle, Z, angle, )
RU
$P_UIFR[..]=CROT (X, angle, Y, angle, Z, angle, )
RU
$P_PFRAME=CSCALE (X, scale, Y, scale, Z, scale, )
RU
$P_PFRAME=CMIRROR (X, Y, Z)
3URJUDPPLQJ3B%)5$0(LVFDUULHGRXWDQDORJWR3B3)5$0(

3DUDPHWHUV

CTRANS 7UDQVODWLRQRIVSHFLILHGD[HV
CROT 5RWDWLRQDURXQGVSHFLILHGD[HV
CSCALE 6FDOHFKDQJHRQVSHFLILHGD[HV
CMIRROR 'LUHFWLRQUHYHUVDORQVSHFLILHGD[LV
X Y Z 2IIVHWYDOXHLQWKHGLUHFWLRQRIWKHVSHFLILHGJHRPHWU\D[LV
Axis value $VVLJQLQJWKHD[LVYDOXHRIWKHRIIVHW
Angle $VVLJQLQJWKHDQJOHRIURWDWLRQDURXQGWKHVSHFLILHGD[HV
Scale &KDQJLQJWKHVFDOH

([DPSOH
7UDQVODWLRQURWDWLRQDQGPLUURULQJDUHDFWLYDWHGE\YDOXHDVVLJQPHQWWRWKHFXUUHQW
SURJUDPPDEOHIUDPH

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )UDPHV
 )UDPHYDULDEOHVDVVLJQLQJYDOXHVWRIUDPHV

= 

<


<
<

;
= ;

<
 &75$16
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RIIVHWV &),1(&75$16 

)XQFWLRQ
)LQHRIIVHW
$ILQHRIIVHWRIWKHEDVLFIUDPHVDQGRIDOORWKHUVHWWDEOHIUDPHVFDQEHSURJUDPPHGZLWK
FRPPDQGCFINE (X, ..,Y, ...)
)LQHRIIVHWFDQRQO\WDNHSODFHLI0'00B)5$0(B),1(B75$16 
&RDUVHRIIVHW
7KHFRDUVHRIIVHWLVGHILQHGZLWKCTRANS(...)

6FDOLQJ
0LUURULQJ
5RWDWLRQ
)LQHRIIVHW

&RDUVHRIIVHW

)UDPHVWUXFWXUHZLWKILQHRIIVHW

&RDUVHDQGILQHRIIVHWDGGXSWRWKHWRWDORIIVHW

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )UDPHV
 &RDUVHDQGILQHRIIVHWV &),1(&75$16 

3URJUDPPLQJ

$P_UBFR=CTRANS(x, 10) : CFINE(x, 0.1) &KDLQLQJRIRIIVHW


: CROT(x, 45) 
ILQHRIIVHWDQGURWDWLRQ
$P_UIFR[1]=CFINE(x, 0.5 y, 1.0, z, 7KHFRPSOHWHIUDPHZLOOEH
0.1) 
RYHUZULWWHQZLWK&),1(
LQFOXGLQJWKHFRDUVHRIIVHW

$FFHVVWRWKHLQGLYLGXDOFRPSRQHQWVRIWKHILQHRIIVHWLVDFKLHYHGWKURXJKFRPSRQHQW
VSHFLILFDWLRQ), 7UDQVODWLRQ)LQH 

DEF REAL FINEX  'HILQLWLRQRIWKH),1(;YDULDEOH


FINEX=$P_UIFR[$P_UIFNUM, x, FI]  )HWFKLQJWKHILQHRIIVHW
XVLQJWKH),1(;YDULDEOH
FINEX=$P_UIFR[3, x, FI]$P  )HWFKLQJWKHILQHRIIVHW
RIWKH;D[LVLQWKHUGIUDPH
XVLQJWKH),1(;YDULDEOH

3DUDPHWHUV

CFINE(x, value, y, value, z, value) )LQHRIIVHWIRUPXOWLSOHD[HV$GGLWLYHRIIVHW


WUDQVODWLRQ 
CTRANS(x, value, y, value, z, value) &RDU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H

 1RWH
7KHIUDPHFUHDWHGE\MEAFRAMEFDQEHWUDQVIRUPHGE\WKHADDFRAMEIXQFWLRQLQWRDQRWKHU
IUDPHLQWKHIUDPHFKDLQDVIURP6:
([DPSOHFKDLQLQJRIIUDPHVFRQFDWHQDWLRQZLWK$'')5$0(
)XUWKHULQIRUPDWLRQIRUWKHSDUDPHWHUVIRU ADDFRAME(FRAME STRING VHH
)%)XQFWLRQ0DQXDO%DVLF)XQFWLRQV$[HV&RRUGLQDWH6\VWHPV)UDPHV . )5$0(
&KDLQLQJ

([DPSOH
; parts program 1
;
DEF FRAME CORR_FRAME
;
;6HWWLQJPHDVXULQJSRLQWV
DEF REAL IDEAL_POINT[3,3] = SET(10.0,0.0,0.0, 0.0,10.0,0.0,
0.0,0.0,10.0)
DEF REAL MEAS_POINT[3,3] = SET
(10.1,0.2,-0.2, -0.2,10.2,0.1, -0.2,0.2, ,9); for test
DEF REAL FIT_QUALITY = 0
;
DEF REAL ROT_FRAME_LIMIT = 5 ;permits PD[GHJUHHURWDWLRQ
;of the parts position
DEF REAL FIT_QUALITY_LIMIT = 3 ;permits PD[PPRIIVHW between
;the ideal and the measured triangle
DEF REAL SHOW_MCS_POS1[3]
DEF REAL SHOW_MCS_POS2[3]
DEF REAL SHOW_MCS_POS3[3]
;=======================================================
;
N100 G01 G90 F5000
N110 X0 Y0 Z0
;
N200 CORR_FRAME=MEAFRAME(IDEAL_POINT,MEAS_POINT,FIT_QUALITY)
;
N230 IF FIT_QUALITY < 0
SETAL(65000)
GOTOF NO_FRAME

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 )UDPHV
 )UDPHFDOFXODWLRQIURPWKUHHPHDVXULQJSRLQWVLQVSDFH 0($)5$0( 

ENDIF
,
N240 IF FIT_QUALITY > FIT_QUALITY_LIMIT
SETAL(65010)
GOTOF NO_FRAME
ENDIF
;
N250 IF CORR_FRAME[X,RT] > ROT_FRAME_LIMIT ;limitation of the VW53<
DQJOH
SETAL(65020)
GOTOF NO_FRAME
ENDIF
;
N260 IF CORR_FRAME[Y,RT] > ROT_FRAME_LIMIT ;limitation of the QG
53<
DQJOH
SETAL(65021)
GOTOF NO_FRAME
ENDIF
;
N270 IF CORR_FRAME[Z,RT] > ROT_FRAME_LIMIT ;limitation of the UG53<
DQJOH
SETAL(65022)
GOTOF NO_FRAME
ENDIF
;
N300 $P_IFRAME=CORR_FRAME ;DFWLYDWHWKHSUREHIUDPHYLDDVHWWDEOHIUDPH
;
;FKHFNWKHIUDPHE\SRVLWLRQLQJWKHJHRPHWU\D[HVDWWKHLGHDOSRLQWV
;
N400 X=IDEAL_POINT[0,0] Y=IDEAL_POINT[0,1] Z=IDEAL_POINT[0,2]
N410 SHOW_MCS_POS1[0]=$AA_IM[X]
N410 SHOW_MCS_POS1[1]=$AA_IM[X]
N430 SHOW_MCS_POS1[2]=$AA_IM[Z]
;
N500 X=IDEAL_POINT[1,0] Y=IDEAL_POINT[1,1] Z=IDEAL_POINT[1,2]
N510 SHOW_MCS_POS2[0]=$AA_IM[X]
N520 SHOW_MCS_POS2[1]=$AA_IM[Y]
N530 SHOW_MCS_POS2[2]=$AA_IM[Z]
;
N600 X=IDEAL_POINT[2,0] Y=IDEAL_POINT[2,1] Z=IDEAL_POINT[2,2]
N610 SHOW_MCS_POS3[0]=$AA_IM[X]
N620 SHOW_MCS_POS3[1]=$AA_IM[Y]
N630 SHOW_MCS_POS3[2]=$AA_IM[Z]
;

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
)UDPHV 
1&8JOREDOIUDPHV

N700 G500 ;'HDFWLYDWHVHWWDEOHIUDPHEHFDXVH]HURIUDPH


SUHVHW QRYDOXHVHW 
;
NO_FRAME:
M0
M30

([DPSOHRIFRQFDWHQDWLQJIUDPHV
&KDLQLQJRI0($)5$0(IRURIIVHWV
7KHMEAFRAME( )IXQFWLRQSURYLGHVDQRIIVHWIUDPH,IWKLVRIIVHWIUDPHLVFRQFDWHQDWHG
ZLWKDV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QVSDFH7KH
&DUWHVLDQFRRUGLQDWHVDUHFRQYHUWHGIURPWKHEDVLFFRRUGLQDWHV\VWHPWRWKHPDFKLQH
FRRUGLQDWHV\VWHPDQGUHODWHWRWKHJHRPHWU\D[HV7KHVHGHVFULEHWKHRSHUDWLQJSRLQW
9LUWXDOURWDU\D[HVGHVFULEHWKHRULHQWDWLRQVRIWKHWRROLQVSDFHDQGDUHSURJUDPPHGZLWK
75$25,
,QWKHFDVHRINLQHPDWLFWUDQVIRUPDWLRQSRVLWLRQVFDQEHSURJUDPPHGLQWKH&DUWHVLDQ
FRRUGLQDWHV\VWHP7KHFRQWUROPDSVWKH&DUWHVLDQFRRUGLQDWHV\VWHPWUDYHUVLQJ
PRYHPHQWVSURJUDPPHGZLWK75$160,775$&</DQG75$$1*WRWKHWUDYHUVLQJ
PRYHPHQWVRIWKHUHDOPDFKLQHD[HV

3URJUDPPLQJ
7KUHHIRXUDQGILYHD[LVWUDQVIRUPDWLRQV 75$25, 
7KHRULHQWDWLRQWUDQVIRUPDWLRQGHFODUHGLVDFWLYDWHGZLWKWKH75$25,FRPPDQGDQGWKH
WKUHHSRVVLEOHSDUDPHWHUVIRUWUDQVIRUPDWLRQQXPEHURULHQWDWLRQYHFWRUDQGURWDU\D[LV
RIIVHWV
TRAORI(transformation number, orientation vector, rotary axis
offsets)
.LQHPDWLFWUDQVIRUPDWLRQV
TRANSMIT(transformation number)GHFODUHGWUDQVIRUPDWLRQVDUHH[DPSOHVRI
NLQHPDWLFWUDQVIRUPDWLRQ
TRACYL(working diameter, transformation number)
TRAANG(angle of offset axis, transformation number)
'HDFWLYDWHDFWLYHWUDQVIRUPDWLRQ
TRAFOOFFDQEHXVHGWRGHDFWLYDWHWKHFXUUHQWO\DFWLYHWUDQVIRUPDWLRQ

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
7UDQVIRUPDWLRQV 
*HQHUDOSURJUDPPLQJRIWUDQVIRUPDWLRQW\SHV

2ULHQWDWLRQW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6(7
%\SURJUDPPLQJ25,5(6(7 $%& WKHRULHQWDWLRQD[HVDUHPRYHGLQOLQHDUDQG
V\QFKURQRXVPRWLRQIURPWKHLUFXUUHQWSRVLWLRQWRWKHVSHFLILHGLQLWLDOVHWWLQJSRVLWLRQ
,IDQLQLWLDOVHWWLQJSRVLWLRQLVQRWSURJUDPPHGIRUDQD[LVDGHILQHGSRVLWLRQIURPWKH
DVVRFLDWHGPDFKLQHGDWD0&B75$)2B527B$;B2))6(7BLVXVHG$Q\DFWLYHIUDPHV
RIURXQGD[OHVZKLFKPD\EHSUHVHQWDUHLJQRUHG

 1RWH
2QO\LIDQRULHQWDWLRQWUDQVIRUPDWLRQLVDFWLYHZLWK75$25,  FDQDQLQLWLDOVHWWLQJIRUWKH
WRRORULHQWDWLRQUHJDUGOHVVRINLQHPDWLFVEHSURJUDPPHGZLWKRXWDODUPXVLQJ
25,5(6(7  

([DPSOHV

1. Example of machine kinematics CA (channel axis names C, A)


ORIRESET(90, 45) &DWGHJUHHV$DWGHJUHHV
ORIRESET(, 30) &DW0&B75$)2B527B$;B2))6(7B>@$DWGHJUHHV
ORIRESET( ) &DW0&B75$)2B527B$;B2))6(7B>@
$DW0&B75$)2B527B$;B2))6(7B>@
2. Example of machine kinematics CAC (channel axis names C, A, B)
ORIRESET(90, 45, 90) &DWGHJUHHV$DWGHJUHHV%DWGHJUHHV
ORIRESET( ) &DW0&B75$)2B527B$;B2))6(7B>@
$DW0&B75$)2B527B$;B2))6(7B>@
%DW0&B75$)2B527B$;B2))6(7B>@

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 7UDQVIRUPDWLRQV
 7KUHHIRXUDQGILYHD[LVWUDQVIRUPDWLRQ 75$25, 

3URJUDPPLQJ/($'7,/7DQG7+(7$URWDWLRQV
,QUHVSHFWRIWKUHHWRILYHD[LVWUDQVIRUPDWLRQWRRORULHQWDWLRQURWDWLRQVDUHSURJUDPPHGZLWK
WKH/($'DQG7,/7DQJOHV
,Q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FWLRQ0DQXDO6SHFLDO)XQFWLRQVWR$[LV7UDQVIRUPDWLRQ ) 
6LQJXODU3RLQWVDQG+RZWR'HDOZLWK7KHPVHFWLRQ

 -RESODQQLQJ
 3URJUDPPLQJ0DQXDO)&%3%$
 7UDQVIRUPDWLRQV
 7KUHHIRXUDQGILYHD[LVWUDQVIRUPDWLRQ 75$25, 

 3URJUDPPLQJWKHRULHQWDWLRQD[HV 25,$;(625,9(&725,(8/(525,53< 

)XQFWLRQ
7KHRULHQWDWLRQD[HVIXQFWLRQGHVFULEHVWKHRULHQWDWLRQRIWKHWRROLQVSDFHDQGLVDFKLHYHG
E\SURJUDPPLQJWKHRIIVHWIRUWKHURWDU\D[HV$QDGGLWLRQDOWKLUGGHJUHHRIIUHHGRPFDQEH
DFKLHYHGE\DOVRURWDWLQJWKHWRRODERXWLWVHOI,QWKLVFDVHWKHWRROLVRULHQWHGLQVSDFHYLDD
WKLUGURWDU\D[LVIRUZKLFKD[LVWUDQVIRUPDWLRQLVUHTXLUHG7KHURWDWLRQRIWKHWRRODERXW
LWVHOILVGHILQHGXVLQJWKH7+(7$DQJOHRIURWDWLRQLQDFFRUGDQFHZLWKWKHW\SHRI
LQWHUSRODWLRQRIWKHURWDWLRQYHFWRUV VHH5RWDWLRQVRIWKHWRRORULHQWDWLRQ 25,527$7577
25,527&7+(7$  

3URJUDPPLQJ
$[LVLGHQWLILHUV$%DQG&DUHXVHGWRSURJUDPWKHRULHQWDWLRQD[HV

N... ORIAXES RU ORIVECT  /LQHDURUODUJHUDGLXVFLUFXODU


N... G1 X Y Z A B C LQWHUSRODWLRQ
RU RU
N... ORIPLANE RULHQWDWLRQLQWHUSRODWLRQRIWKHSODQH
RU RU
N ... ORIEULER RU ORIRPY and/or 2ULHQWDWLRQDQJOH(XOHU53<DQJOH
ORIRPY2
N... G1 X Y Z A2= B2= C2= $QJOHSURJUDPPLQJRIYLUWXDOD[HV
RU RU
N... ORIVIRT1 RU ORIVIRT2  GHILQLWLRQRU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WRUHQGRULHQWDWLRQDOLQHDUODUJHUDGLXV
FLUFXODULQWHUSRODWLRQRIWKHRULHQWDWLRQLVH[HFXWHGLQWKHSODQHWKDWLVGHILQHGE\WKHVWDUW
DQGHQGYHFWRU

([WHQGHGRULHQWDWLRQLQWHUSRODWLRQRQWKHSHULSKHUDOVXUIDFHRIDWDSHU
N... ORICONCW RU ORICONCCW  ,QWHUSRODWLRQRQWKHRXWVLGHRIDWDSHU
N... A6= B6= C6= A3= B3= C3= ZLWK
or GLUHFWLRQYHFWRULQWKH
N... ORICONTO
FORFNZLVHFRXQWHUFORFNZLVHGLUHFWLRQRI
N... G1 X Y Z A6= B6= C6=
WKHWDSHUDQGHQGRULHQWDWLRQRU
RU
N... ORICONIO WDQJHQWLDOWUDQVLWLRQDQG
N... G1 X Y Z A7= B7= C7= VSHFLILFDWLRQRIHQGRULHQWDWLRQ
N... PO[PHI]=(a2, a3, a4, a5) RU
N... PO[PSI]=(b2, b3, b4, b5) VSHFLILFDWLRQRIHQGRULHQWDWLRQDQG
LQWHUPHGLDWHRULHQWDWLRQRQWKHRXWVLGHRI
WKHWDSHUZLWK
SRO\QRPLDOVIRUDQJOHRIURWDWLRQDQG
SRO\QRPLDOVIRURSHQLQJDQJOH

3DUDPHWHUV

ORIPLANE ,QWHUSRODWLRQLQWKHSODQH ODUJHUDGLXVFLUFXODULQWHUSRODWLRQ 


ORICONCW ,QWHUSRODWLRQRQWKHSHULSKHUDOVXUIDFHRIDWDSHULQWKHFORFNZLVH
GLUHFWLRQ
ORICONCCW ,QWHUSRODWLRQRQWKHSHULSKHUDOVXUIDFHRIDWDSHULQWKH
FRXQWHUFORFNZLVHGLUHFWLRQ
ORICONTO ,QWHUSRODWLRQRQWKHSHULSKHUDOVXUIDFHRIDWDSHUZLWKWDQJHQWLDO
WUDQVLWLRQ
A6= B6= C6= 3URJUDPPLQJRIDURWDU\D[LVRIWKHWDSHU QRUPDOL]HGYHFWRU 
NUT=angle 2SHQLQJDQJOHRIWD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QO\LILQWHUSRODWLRQW\SHORIROTALVDFWLYHFDQWKHDQJOHRIURWDWLRQRUURWDWLRQYHFWRUEH
SURJUDPPHGLQDOOIRXUPRGHVDVIROORZV
 'LUHFWO\DVURWDU\D[LVSRVLWLRQVA, B, C
 (XOHUDQJOHV LQGHJUHHV ZLWKA2, B2, C2
 53<DQJOHV LQGHJUHHV ZLWKA2, B2, C2
 'LUHFWLRQYHFWRUYLD A3, B3, C3 DQJOHRIURWDWLRQXVLQJ THETA=value 
,IORIROTRRUORIROTTLVDFWLYHWKHDQJOHRIURWDWLRQFDQRQO\EHSURJUDPPHGGLUHFWO\ZLWK
THETA
$URWDWLRQFDQDOVREHSURJUDPPHGLQDVHSDUDWHEORFNZLWKRXWDQRULHQWDWLRQFKDQJHWDNLQJ
SODFH,QWKLVFDVHORIROTRDQGORIROTTDUHLUUHOHYDQW,QWKLVFDVHWKHDQJOHRIURWDWLRQ
LVDOZD\VLQWHUSUHWHGZLWKUHIHUHQFHWRWKHDEVROXWHGLUHFWLRQ ORIROTA 

N... ORIROTA 'HILQHWKHLQWHUSRODWLRQRIWKHURWDWLRQYHFWRU


RU
N... ORIROTR
RU
N... ORIROTT
RU
N... ORIROTC
N... A3= B3= C3= THETA=value 'HILQHWKHURWDWLRQRIWKHRULHQWDWLRQYHFWRU
N... PO[THT]=(d, d, d, d) ,QWHUSRODWHDQJOHRIURWDWLRQZLWKDWKRUGHU
SRO\QRPLDO

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
7UDQVIRUPDWLRQV 
5RWDWLRQVRIWKHWRRORULHQWDWLRQ 25,527$25,52757725,527&7+(7$ 

3DUDPHWHUV

ORIROTA $QJOHRIURWDWLRQWRDQDEVROXWHGLUHFWLRQRIURWDWLRQ
ORIROTR $QJOHRIURWDWLRQUHODWLYHWRWKHSODQHEHWZHHQWKHVWDUWDQGHQG
RULHQWDWLRQ
ORIROTT $QJOHRIURWDWLRQDVDWDQJHQWLDOURWDWLRQYHFWRUW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WLYHRULHQWDWLRQWUDQVIRUPDWLRQ75$25,
7KHWRRORULHQWDWLRQFDQEHSURJUDPPHGLQGHSHQGHQWO\RIWKHNLQHPDWLFV
D[LVWRD[LVWUDQVIRUPDWLRQWKHIROORZLQJDSSOLHV
2QDPDFKLQHZLWK

N... TRAORI 
A3=... B3=... C3=... 'LUHFWLRQYHFWRU
A2=... B2=... C2=...
(XOHUDQJOHRU53<DQJOH

2QDPDFKLQHZ ZLWKD[LVWUDQVIRUPDWLRQWKHURWDWLRQRIWKHWRROFDQEHSURJUDPPHGLQ
DGGLWLRQWRWKHWRRORULHQWDWLRQ

N... X... Y... Z... A3=... B3=... C3=... THETA=... F=... RU
N... X... Y... Z... A2=... B2=... C2=... THETA=... F=...
,IWKHWRRORULHQWDWLRQLVVSHFLILHGYLDURWDU\D[LVSRVLWLRQVHJDV

N... X... Y... Z... A=... B=... THETA=... F=...


WKHFRPSUHVVLRQLVLQWHUSUHWHGGLIIHUHQWO\GHSHQGLQJRQZKHWKHUODUJHUDGLXVFLUFXODU
LQWHUSRODWLRQLVSHUIRUPHGRUQRW,IODUJHUDGLXVFLUFXODULQWHUSRODWLRQLVQRWSHUIRUPHGWKH
FRPSUHVVHGRULHQWDWLRQFKDQJHLVUHSUHVHQWHGE\D[LDOSRO\QRPLDOVIRUWKHURWDU\D[HV

3DUDPHWHUV
7KHSDUDPHWHUDVVLJQPHQWVWKDWSUHYLRXVO\DSSOLHGWRWKHFRPSUHVVRUFDQDOVREHXVHGIRU
URWDU\D[LVSRVLWLRQV

TRAORI $FWLYDWHRULHQWDWLRQWUDQVIRUPDWLRQ
COMPON &RPSUHVVRU21
G1 /LQHDULQWHUSRODWLRQ
X= Y= Z= /LQHDUD[LVDGGUHVVHV
A= B= C= 5RWDU\D[LVSRVLWLRQVGLUHFWSURJUDPPLQJ
A2= B2= C2= 5RWDU\D[LVDGGUHVVHVLQ(XOHUDQJOHVRU53<DQJOHV
A3= B3= C3= 5RWDU\D[LVDGGUHVVHVD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HO\UHFRYHUHG
TOFFOF 7RRO2
2IIVHW2
21 UHVHWRQOLQHWRROOHQJWKRIIVHW 
7KHUHOHYDQWRIIVHWYDOXHVDUHUHVHWDQGDSUHSURFHVVLQJVWRSLVLQLWLDWHG
X, Y, Z 'LUHFWLRQRIFRPSHQVDWLRQIRUWKHRIIVHWYDOXHLQGLFDWHGIRU72))21

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
7UDQVIRUPDWLRQV 
2QOLQHWRROOHQJWKFRPSHQVDWLRQ 72))2172))2) 

([DPSOHRIWRROOHQJWKRIIVHWVHOHFWLRQ

MD 21190: TOFF_MODE =1 $EVROXWHYDOXHVDUHDSSURDFKHG


MD 21194: TOFF_VELO[0] =1000
MD 21196: TOFF_VELO[1] =1000
MD 21194: TOFF_VELO[2] =1000
MD 21196: TOFF_ACCEL[0] =1
MD 21196: TOFF_ACCEL[1] =1
MD 21196: TOFF_ACCEL[2] =1
N5 DEF REAL XOFFSET
N10 TRAORI(1) 7UDQVIRUPDWLRQ21
N20 TOFFON(Z) $FWLYDWLRQRIRQOLQHWRROOHQJWKRIIVHW
IRUWKH=WRROGLUHFWLRQ
N30 WHEN TRUE DO $AA_TOFF[Z] = 10 )RUWKH=WRROGLUHFWLRQDWRRO
G4 F5 OHQJWKRIIVHWRILVLQWHUSRODWHG
...
N100 XOFFSET = $AA_TOFF_VAL[X] $VVLJQFXUUHQWRIIVHWLQ;GLUHFWLRQ
N120 TOFFON(X, -XOFFSET) IRUWKH;WRROGLUHFWLRQWKHWRRO
G4 F5 OHQJWKRIIVHWZLOOEHUHWXUQHGWRDJDLQ

([DPSOHRIWRROOHQJWKRIIVHWGHVHOHFWLRQ

N10 TRAORI(1) 7UDQVIRUPDWLRQ21


N20 TOFFON(X) $FWLYDWLQJWKH=WRROGLUHFWLRQ
N30 WHEN TRUE DO $AA_TOFF[X] = 10 )RUWKH;WRROGLUHFWLRQDWRRO
G4 F5 OHQJWKRIIVHWRILVLQWHUSRODWH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RQVLVDFWLYDWHGLQWKHUHOHYDQWFKDQQHO HJ TRACYL TRAANG TRAORI 

([DPSOH

<

N10 T1 D1 G54 G17 G90 F5000 G94 7RROVHOHFWLRQ


N20 G0 X20 Z10 SPOS=45 $SSURDFKVWDUWSRVLWLRQ
N30 TRANSMIT $FWLYDWH75$160,7IXQFWLRQ
N40 ROT RPL=45 6HWIUDPH
N50 ATRANS X2 Y10

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
7UDQVIRUPDWLRQV 
.LQHPDWLFWUDQVIRUPDWLRQ

N60 G1 X10 Y10 G41 OFFN=1 6TXDUHURXJKLQJDOORZDQFHPP


N70 X10
N80 Y10
N90 X10
N100 Y10
N110 G0 Z20 G40 OFFN=0 &KDQJHWRRO
N120 T2 D1 X15 Y15
N130 Z10 G41
N140 G1 X10 Y10 6TXDUHILQLVKLQJ
N150 X10
N160 Y10
N170 X10
N180 Y10
N190 Z20 G40 'HVHOHFWIUDPH
N200 TRANS
N210 TRAFOOF
N220 G0 X20 Z10 SPOS=45 $SSURDFKVWDUWSRVLWLRQ
N230 M30

'HVFULSWLRQ
3ROH
7KHUHDUHWZRZD\VRISDVVLQJWKURXJKWKHSROH
x 7UDYHUVDODORQJOLQHDUD[LV
x 7UDYHUVHWRWKHSROHURWDWHWKHURWDU\D[LVDWWKHSROHDQGWUDYHOLQJDZD\IURPWKHSROH
0DNHWKHVHOHFWLRQXVLQJ0'DQG
75$160,7ZLWKDGGLWLRQDO<OLQHDUD[LV WUDQVIRUPDWLRQW\SH 
7KLVWUDQVIRUPDWLRQYDULDQWRIWKHSRODUWUDQVIRUPDWLRQPDNHVXVHRIWKHUHGXQGDQF\IRUD
PDFKLQHZLWKDQRWKHUOLQHDUD[LVLQRUGHUWRSHUIRUPDQLPSURYHGWRROFRPSHQVDWLRQ7KH
IROORZLQJFRQGLWLRQVWKHQDSSO\WRWKHVHFRQGOLQHDUD[LV
x $VPDOOHUZRUNLQJDUHDDQG
x 7KHVHFRQ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RQV
UXQVLJQLILFDQWO\GLIIHUHQWDVIRU&3DQGDUHUHSUHVHQWHGLQWKHDVVRFLDWHG
SURJUDPPLQJH[DPSOHV
STAT= 5HVROYLQJWKHQRQXQLTXHQHVVZLWKUHJDUGWRWKHSROH
TU= 78LVQRWUHOHYDQWIRU373ZLWK75$160,7

([DPSOHRIFLUFXPQDYLJDWLRQRIWKHSROHZLWK373DQG75$160,7

\
373
&3  1*;<


1;<



      [








N001 G0 X30 Z0 F10000 T1 D1 G90 ,QLWLDOVHWWLQJDEVROXWHGLPHQVLRQ


N002 SPOS=0
N003 TRANSMIT 75$160,7WUDQVIRUPDWLRQ
N010 PTPG0 $XWRPDWLFIRUHDFK*EORFN
373DQGWKHQ&3DJDLQ
N020 G0 X30 Y20
N030 X-30 Y-20
N120 G1 X30 Y20
N110 X30 Y0
M30

-RESODQQLQJ
3URJUDPPLQJ0DQXDO)&%3%$ 
7UDQVIRUPDWLRQV 
&DUWHVLDQ373WUDYHO

([DPSOHRIWKHUHWUDFWLRQIURPWKHSROHZLWK373DQG75$160,7

PTP
30
CP

N070 X20 Y2 20

10 N060 X0 Y0

-30 -20 -10 10 20 30

-10

-20

-30 N050 X10 Y0

N001 G0 X90 Z0 F10000 T1 D1 G90 ,QLWLDOVHWWLQJ


N002 SPOS=0
N003 TRANSMIT 75$160,7WUDQVIRUPDWLRQ
N010 PTPG0 $XWRPDWLFIRUHDFK*EORFN
373DQGWKHQ&3DJDLQ
N020 G0 X90 Y60
N030 X-90 Y-60
N040 X-30 Y-20
N050 X10 Y0
N060 X0 Y0
N070 X-20 Y2
N170 G1 X0 Y0
N160 X10 Y0
N150 X-30 Y-20
M30

'HVFULSWLRQ
373DQG373*
PTPG0 LVFRQVLGHUHGIRUDOOWUDQVIRUPDWLRQVWKDWFDQSURFHVV PTP PTPG0 LVQRWUHOHYDQW
LVDOORWKHUFDVHV
*EORFNVDUHSURFHVVHGLQ&3PRGH
7KHVHOHFWLRQRI PTP RU PTPG0 LVSHUI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