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:

Dynamic Offset Output (G54.2P#)


Recommended Posts

I am looking for some help on some post logic for outputting my dynamic work offsets for my ToyodaFH550SX. I currently have 8 dynamic offsets avalible on my machine and they are used in conjunction with the standard offsets (G54.1P#) of which I have 48 avalible.

 

output:

G54.2P# (where # could be 1-8)

G54.1P# (where # could be 1-48) See below

 

N30316510(SAFE START THIS LINE)

G0 G17 G20 G40 G80 G90

( TOOL 303165 - .1501 REAMER )

T303165

M6

S1200 M3

G90 G54.2P1

G54.1P20

G0 G90 B0

G90 G0 X-.287 Y-.789

G43H1 Z3.75

M8

Can this be done in the same way the HSM option is using the Misc. INT or Reals are for Hish Speed Machining accuracy, because i use this function too and it works pretty good when I need G05.1 Q1 R# output in my code.

 

This is getting away from the WCS workoffset asignment though and not sure that is what I want.

 

Thought a string table might be a possibility as well if i used the workoffset asignment in the WCS I could use a logical numbering sequence to get the desired offset output.

 

Any Direction on this would be greatly appriciated.

 

Thanks

Link to comment
Share on other sites

I am looking for some help on some post logic for outputting my dynamic work offsets for my ToyodaFH550SX. I currently have 8 dynamic offsets avalible on my machine and they are used in conjunction with the standard offsets (G54.1P#) of which I have 48 avalible.

 

output:

G54.2P# (where # could be 1-8)

G54.1P# (where # could be 1-48) See below

 

N30316510(SAFE START THIS LINE)

G0 G17 G20 G40 G80 G90

( TOOL 303165 - .1501 REAMER )

T303165

M6

S1200 M3

G90 G54.2P1

G54.1P20

G0 G90 B0

G90 G0 X-.287 Y-.789

G43H1 Z3.75

M8

Can this be done in the same way the HSM option is using the Misc. INT or Reals are for Hish Speed Machining accuracy, because i use this function too and it works pretty good when I need G05.1 Q1 R# output in my code.

 

This is getting away from the WCS workoffset asignment though and not sure that is what I want.

 

Thought a string table might be a possibility as well if i used the workoffset asignment in the WCS I could use a logical numbering sequence to get the desired offset output.

 

Any Direction on this would be greatly appriciated.

 

Thanks

 

Try so -

Only it is necessary to enter :

55 = G54.2 P1

56 = G54.2 P2

57 = G54.2 P3

58 = G54.2 P4

 

1 = G54.1 P1

2 = G54.1 P2

3 = G54.1 P3

4 = G54.1 P4

post-52541-0-98664800-1396082991_thumb.jpg

post-52541-0-56391800-1396085835_thumb.jpg

Link to comment
Share on other sites

Here is what I came up with.

 

Thanks you response got me started.

 

Output When 8812 is in work offset

 

N235220

T235220

M06

(3 CLAP DICO PCD)

G00 G17 G90 G54.2 P8

G54.1 P12

S6500 M03

X-4.5553 Y5.2999

 

Post Code:

else,

if workofs$ > 8100 & workofs$ < 8149,

[

g_wcs = one

*g_wcs, e$

p_wcs = workofs$ - 8100

"G54.1", *p_wcs, e$

]

else,

if workofs$ > 8200 & workofs$ < 8249,

[

g_wcs = two

*g_wcs, e$

p_wcs = workofs$ - 8200

"G54.1", *p_wcs, e$

]

else,

if workofs$ > 8300 & workofs$ < 8349,

[

g_wcs = three

*g_wcs, e$

p_wcs = workofs$ - 8300

"G54.1", *p_wcs, e$

]

else,

if workofs$ > 8400 & workofs$ < 8449,

[

g_wcs = four

*g_wcs, e$

p_wcs = workofs$ - 8400

"G54.1", *p_wcs, e$

]

else,

if workofs$ > 8500 & workofs$ < 8549,

[

g_wcs = five

*g_wcs, e$

p_wcs = workofs$ - 8500

"G54.1", *p_wcs, e$

]

else,

if workofs$ > 8600 & workofs$ < 8649,

[

g_wcs = six

*g_wcs, e$

p_wcs = workofs$ - 8600

"G54.1", *p_wcs, e$

]

else,

if workofs$ > 8700 & workofs$ < 8749,

[

g_wcs = seven

*g_wcs, e$

p_wcs = workofs$ - 8700

"G54.1", *p_wcs, e$

]

else,

if workofs$ > 8800 & workofs$ < 8849,

[

g_wcs = eight

*g_wcs, e$

p_wcs = workofs$ - 8800

"G54.1", *p_wcs, e$

]

]

]

force_wcs = sav_frc_wcs

!workofs$

]

 

This is the same logic I use in my GibbsCAM post and it may seem a little weird but I have 2 Toyodas on an FMS with cell controller with 24 pallets and 500+ tool on each machine. The cell controller has a funny way of asigning work offsets and this numbering logic sort of follows that logic. In our cell controller offset 81 writes to the dynamic P1 offset (G54.2P1) so 81-88 can be used to output dynamic G54.2P1-8 and it uses 11-59 to output G54.1P1-48. These offsets are stacked (both are used) where the major offset from table center to part location is in the dynamic register and the fine adjustment are entered into the standard G54.1P# offset register. So in the CAM system I decided to use a sequencing logic where any workoffset number 8101 - 8848 can be used to output any of the avalible work offsets to the code.

 

Example:

 

G54.2P2

G54.1P16

 

would be output when work offset register is 8216

 

or

 

G54.2P8

G54.1P1

 

would be output when work offset register is 8801

  • Like 1
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...