IT SETUP STATION GET MATCHING BLOCK

From Macros Wiki
Jump to: navigation, search

Up

Command

IT_SETUP_STATION_GET_MATCHING_BLOCK <toolgroup> <station> <index> <block make> <block name>


Get a one of the blocks that match the filters used for a tool position

Parameters

<toolgroup>
Toolgroup number
<station>
Station number
<index>
Index to the list of matching blocks (1=first matching block)
<block make>
String variable for the block make
<block name>
String variable for the block name

Example

IT_SETUP_STATION_GET_NUM_MATCHING_BLOCKS, 1, 21, iNumBlocks
FOR i=1 TO iNumBlocks
   IT_SETUP_STATION_GET_MATCHING_BLOCK 1, 21, i, a$, b$
   MESSAGE "Matching block %i of %iNumBlocks. Make = %a$, name = %b$"
NEXT i