First time here?
Back again?


 
 

After each tool change block in my program, how can I preload the next tool?

CATEGORY: PROGRAMMING
TYPE: GENERAL
IMS VERSION: ALL
PLATFORM: ALL

You can set this within the Tool Change dialog.
You can also use the IMSpost macro command CLREAD to read ahead in your APT/CL file to read the next tool value, then output this value after the current tool change block.
For example,
LOADTL/* { current macro statements }
A = CLREAD(LOADTL/*, 1, 1, 0)
IF (A > 0)
NEXT_TOOL = CLREADN. 1
OUTPUT(REGISTER.T.NAME, NEXT_TOOL)

Back to Frequently Asked Questions