Jump to content
OMRON Forums

Using T variable in motion program


Tom Rathbun

Recommended Posts

it is possible to use the READ command to send parameters to subroutines.  For example  G04 X10.5 can be used to create a Dwell by creating a program 1000 with a line 4000.  G04 in the main program jumps to the that subprogram line then using a READ(X) command that will assign D27=10.5 then do a DWELL(D27*1000) to create a 10.5 second dwell.   This is Great but I want to use a T value but the default function  of T is to call subprogram 1004.  This works OK when you are using T to define a Tool Pocket but not so well when T defines a Tool Number between 1-999. It is not practical to create a subprogram with entries for all 1000 possible tool numbers when practically only 10-20 of them will ever be used.

  Long windup to ask the question, is it possible to use the READ(T) command to get a value from a program line like   T183G06?  I want to use G06 to command the Tool Change and extract the 187 and use it to look up the Tool Length and the Pocket that stores Tool Number 187.   I have not had success trying this.  

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.


×
×
  • Create New...