Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

ITnc 530 control, Engraving Cycle 225


Tinhman
 Share

Recommended Posts

I needed a prefix in front of my serial # so there's a little more code than it would be for just a plain serial #. I used two files. One .tab file to store my incrementing # in and the .h file with the cycle and other call info.

 

This will produce the text "PREFIX-1", "PREFIX-2", etc., etc...... along a radius arc.

 

The .H file is:

 

0 BEGIN PGM SERIAL-TEST INCH

1 BLK FORM 0.1 Z X-1 Y-1 Z-1

2 BLK FORM 0.2 X+1 Y+1 Z+0

3 TOOL CALL 136 Z S3000

4 L X+0 Y+0 R0 FMAX M3

5 L Z+2 FMAX M8

6 ;

7 FN 26: TABOPEN Serial.Tab

8 FN 28: TABREAD Q198 =1 /"CURRENT"

9 QS198 = "PREFIX-"

10 QS199 = TOCHAR( DAT+Q198 DECIMALS0 )

11 QS199 = QS198 || QS199

12 CYCL DEF 225 ENGRAVING ~

QS500= QS199 ;ENGRAVING TEXT ~

Q513=+0.2 ;CHARACTER HEIGHT ~

Q514=+0.05 ;SPACE FACTOR ~

Q515=+0 ;FONT ~

Q516=+1 ;TEXT ARRANGEMENT ~

Q374=+90 ;ANGLE OF ROTATION ~

Q517=+0.5 ;CIRCLE RADIUS ~

Q207=+50 ;FEED RATE FOR MILLNG ~

Q201=-0.008 ;DEPTH ~

Q206=+20 ;FEED RATE FOR PLNGNG ~

Q200=+0.1 ;SET-UP CLEARANCE ~

Q203=+0 ;SURFACE COORDINATE ~

Q204=+2 ;2ND SET-UP CLEARANCE

13 L X+0 Y+0 FMAX M99

14 FN 20: WAIT FOR SYNC

15 Q198 = Q198 + 1

16 FN 26: TABOPEN Serial.Tab

17 FN 27: TABWRITE 1 /"CURRENT" = Q198

18 ;

19 M9 M5

20 END PGM SERIAL-TEST INCH

 

 

This is the .TAB file:

 

BEGIN SERIAL .TAB

#STRUCTBEGIN

NAME = CURRENT

TYPE = N

WIDTH = 31

DEC = 0

DIA-ENGLISH = Designation of machine element?

DIA-GERMAN = Bezeichnung Maschinenelement?

DIA-CZECH = Designation of machine element?

DIA-FRENCH = Designation of machine element?

DIA-ITALIAN = Designation of machine element?

DIA-SPANISH = Designation of machine element?

DIA-PORTUGUE = Designation of machine element?

DIA-SWEDISH = Designation of machine element?

DIA-DANISH = Designation of machine element?

DIA-FINNISH = Designation of machine element?

DIA-DUTCH = Designation of machine element?

DIA-POLISH = Designation of machine element?

DIA-HUNGARIA = Designation of machine element?

#STRUCTEND

NR CURRENT

0

1 1

2

3

4

5

6

7

8

9

10

[END]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...