Difference between revisions of "IT SETUP TOOL GET MATCHING BLOCK"

From Macros Wiki
Jump to: navigation, search
(Created page with "{{Up}} {{Command|syntax=IT_SETUP_TOOL_GET_MATCHING_BLOCK <toolgroup> <station> <index> <block make> <block name> |description=:Get a one of...")
 
Line 12: Line 12:
  
 
===Example===
 
===Example===
:IT_SETUP_TOOL_GET_NUM_MATCHING_BLOCK, 4, a$, b$
+
:IT_SETUP_TOOL_GET_NUM_MATCHING_BLOCKS, 4, iNumBlocks
 +
:FOR i=1 TO iNumBlocks
 +
:&nbsp;&nbsp; IT_SETUP_TOOL_GET_MATCHING_BLOCK 4, i, a$, b$
 +
:&nbsp;&nbsp; MESSAGE "Matching block %i of %iNumBlocks. Make = %a$, name = %b$"
 +
:NEXT i
 +
[[Category:IT_Setup_Data]
 
[[Category:IT_Setup_Data]]
 
[[Category:IT_Setup_Data]]

Revision as of 17:59, 16 April 2015

Up

Command

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


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

Parameters

<toolgroup>
Toolgroup number
<station>
Station number
<sindex>
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_TOOL_GET_NUM_MATCHING_BLOCKS, 4, iNumBlocks
FOR i=1 TO iNumBlocks
   IT_SETUP_TOOL_GET_MATCHING_BLOCK 4, i, a$, b$
   MESSAGE "Matching block %i of %iNumBlocks. Make = %a$, name = %b$"
NEXT i

[[Category:IT_Setup_Data]